/* =====================================================================
   front-tools.css — product deep-dive pages
   (escape-room-maker, puzzle-types, learning-codes, classroom-escape-room,
    advent-calendar-maker, printables). Uses the landing.css tokens.
   ===================================================================== */

/* ---------- Hero ---------- */
.ft-hero { padding-bottom: 150px; }
.ft-hero-plum {
  background:
    radial-gradient(900px 480px at 0% 0%, #4B2A63 0%, rgba(75,42,99,0) 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(180,35,53,.45) 0%, rgba(180,35,53,0) 60%),
    linear-gradient(180deg, #2A1B3D 0%, #1F1530 100%);
}
.ft-hero-night {
  background:
    radial-gradient(900px 480px at 10% -10%, #1F4E79 0%, rgba(31,78,121,0) 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(30,122,85,.45) 0%, rgba(30,122,85,0) 60%),
    linear-gradient(180deg, #102A43 0%, #0B2033 100%);
}
.ft-hero-berry {
  background:
    radial-gradient(900px 480px at 0% 0%, #8E1A2A 0%, rgba(142,26,42,0) 60%),
    radial-gradient(800px 500px at 100% 100%, rgba(242,193,78,.25) 0%, rgba(242,193,78,0) 60%),
    linear-gradient(180deg, #5E0F1C 0%, #470B15 100%);
}
.ft-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ft-blobs span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: ftBlob 16s ease-in-out infinite alternate; will-change: transform; }
.ft-blobs .b1 { width: 420px; height: 420px; right: 4%; top: 6%; background: radial-gradient(circle, rgba(242,193,78,.45), transparent 70%); }
.ft-blobs .b2 { width: 360px; height: 360px; left: -80px; bottom: 40px; background: radial-gradient(circle, rgba(63,182,127,.4), transparent 70%); animation-duration: 19s; }
.ft-blobs .b3 { width: 300px; height: 300px; left: 42%; top: -60px; background: radial-gradient(circle, rgba(255,107,125,.32), transparent 70%); animation-duration: 22s; }
@keyframes ftBlob { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,30px,0) scale(1.15); } }
.ft-hero-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: #CFE0D6; font-size: 14px; }
.ft-hero-chips li { display: inline-flex; align-items: center; gap: 7px; }
.ft-hero-chips i { color: var(--gold); }
.ft-hero-visual { position: relative; animation: heroIn .9s .15s var(--ease) both; }

/* ---------- Browser frame with a real screenshot ---------- */
.ft-browser {
  position: relative; margin: 0; border-radius: 16px; overflow: visible; background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 60px rgba(8,30,22,.28);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .4s;
}
.ft-browser[data-tilt] { --ry: -4deg; --rx: 2deg; }
.ft-browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F3EEE5; border-bottom: 1px solid var(--border); border-radius: 16px 16px 0 0; }
.ft-dots { display: inline-flex; gap: 6px; }
.ft-dots i { width: 10px; height: 10px; border-radius: 50%; background: #E5675F; }
.ft-dots i:nth-child(2) { background: #F2C14E; }
.ft-dots i:nth-child(3) { background: #3FB67F; }
.ft-url { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-url i { color: var(--green); font-size: 10px; }
.ft-browser-body { border-radius: 0 0 16px 16px; overflow: hidden; background: var(--cream); }
.ft-shot { display: block; width: 100%; height: auto; }
.ft-float-chip {
  position: absolute; left: -14px; bottom: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: #fff; color: var(--pine); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lift);
  animation: ftFloat 5s ease-in-out infinite;
}
.ft-float-chip i { color: var(--cranberry); }
@keyframes ftFloat { 50% { transform: translateY(-8px); } }
.section-white .ft-browser, .ft-plain-shadow { box-shadow: 0 2px 4px rgba(15,61,46,.05), 0 18px 44px rgba(15,61,46,.16); }

/* ---------- Light-glow hover cards ---------- */
.ft-glow { position: relative; isolation: isolate; transition: translate .35s var(--ease), scale .35s var(--ease), rotate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .6s var(--ease), transform .6s var(--ease); }
.ft-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(242,193,78,.22), transparent 60%);
}
.ft-glow:hover { translate: 0 -6px; box-shadow: var(--shadow-lift), 0 0 0 1px rgba(242,193,78,.35); }
.ft-glow:hover::before { opacity: 1; }

/* ---------- Section heads ---------- */
.ft-head-left { margin-left: 0; text-align: left; }
.section-pine .eyebrow { color: var(--gold); }
.section-pine .section-title { color: #fff; }
.section-pine .section-lead { color: #CFE0D6; }
.ft-sec-tight { padding: 72px 0; }

/* =====================================================================
   ESCAPE ROOM MAKER
   ===================================================================== */
.ft-stepper { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.ft-steps-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--header-h) + 20px); }
.ft-step-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--border); background: #fff;
  border-radius: 16px; padding: 12px 14px; font: inherit; color: var(--text); cursor: pointer; position: relative; overflow: hidden;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.ft-step-tab:hover { border-color: var(--gold); transform: translateX(4px); }
.ft-step-tab .n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; background: var(--mint); color: var(--pine); transition: background .25s, color .25s; }
.ft-step-tab b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--pine); font-size: 16px; }
.ft-step-tab small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ft-step-tab[aria-selected="true"] { background: var(--pine); border-color: var(--pine); }
.ft-step-tab[aria-selected="true"] .n { background: var(--gold); color: var(--pine); }
.ft-step-tab[aria-selected="true"] b { color: #fff; }
.ft-step-tab[aria-selected="true"] small { color: #CFE0D6; }
.ft-step-tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
.ft-step-tab[aria-selected="true"] .bar { animation: ftBar var(--dur, 7s) linear forwards; }
.ft-stepper.is-paused .ft-step-tab .bar { animation-play-state: paused; }
@keyframes ftBar { to { width: 100%; } }
.ft-step-panel { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-soft); }
.ft-step-panel[hidden] { display: none; }
.ft-step-panel.is-in { animation: ftPanelIn .5s var(--ease) both; }
@keyframes ftPanelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ft-step-panel h3 { font-size: 26px; margin-bottom: 8px; }
.ft-step-panel > p { color: var(--muted); }
.ft-step-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: start; margin-top: 18px; }
.ft-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ft-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--pine); }
.ft-opt i { color: var(--cranberry); }
.ft-mini-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.ft-step-panel .ft-browser { box-shadow: 0 2px 4px rgba(15,61,46,.05), 0 14px 34px rgba(15,61,46,.15); }

/* Exploded pack */
.ft-pack { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: pg; }
.ft-page {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px 16px;
  aspect-ratio: 8.5 / 11; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(15,61,46,.05), 0 10px 24px rgba(15,61,46,.08);
  rotate: var(--r, 0deg);
}
.ft-page:nth-child(odd) { --r: -1.2deg; }
.ft-page:nth-child(3n) { --r: 1.4deg; }
.ft-page:hover { rotate: 0deg; translate: 0 -8px; scale: 1.03; }
.ft-page .pg { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 700; color: var(--muted); }
.ft-page .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--rose); color: var(--cranberry); margin-bottom: 12px; }
.ft-page:nth-child(3n+2) .ico { background: var(--mint); color: var(--green); }
.ft-page:nth-child(3n) .ico { background: var(--gold-tint); color: #A8770F; }
.ft-page h3 { font-size: 16px; margin-bottom: 4px; }
.ft-page p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ft-page .lines { margin-top: auto; display: grid; gap: 5px; }
.ft-page .lines span { height: 5px; border-radius: 3px; background: #EFE8DC; }
.ft-page .lines span:nth-child(2) { width: 70%; }
.ft-page.is-multi { box-shadow: 4px 4px 0 -1px #fff, 4px 4px 0 0 var(--border), 8px 8px 0 -1px #fff, 8px 8px 0 0 var(--border), 0 10px 24px rgba(15,61,46,.08); }
.ft-page.is-opt { border-style: dashed; background: var(--cream); }
.ft-page.is-opt[data-off] { opacity: .45; }

.ft-calc { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin: 0 auto 36px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 16px 22px; max-width: 860px; box-shadow: var(--shadow-soft); }
.ft-seg { display: inline-flex; background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.ft-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--pine); cursor: pointer; }
.ft-seg button[aria-pressed="true"] { background: var(--pine); color: #fff; }
.ft-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--pine); cursor: pointer; }
.ft-switch input { width: 42px; height: 24px; appearance: none; -webkit-appearance: none; border-radius: 99px; background: #D9D2C4; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.ft-switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ft-switch input:checked { background: var(--green); }
.ft-switch input:checked::after { transform: translateX(18px); }
.ft-calc-out { display: flex; gap: 22px; }
.ft-calc-out div { text-align: center; }
.ft-calc-out b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--cranberry); line-height: 1; }
.ft-calc-out span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Flip-book preview */
.ft-flip { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center; }
.ft-flip-tabs { display: grid; gap: 10px; }
.ft-flip-tab { text-align: left; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 14px; padding: 14px 16px; font: inherit; cursor: pointer; transition: background .25s, border-color .25s; }
.ft-flip-tab b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.ft-flip-tab small { color: #CFE0D6; font-size: 13px; }
.ft-flip-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--pine); }
.ft-flip-tab[aria-selected="true"] small { color: var(--pine); }
.ft-flip-stage { position: relative; }
.ft-flip-stage .ft-browser[hidden] { display: none; }

/* Play modes */
.ft-modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ft-mode { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px 18px; text-align: center; }
.ft-mode .ico { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--c, var(--pine)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c, #0F3D2E) 35%, transparent); }
.ft-mode h3 { font-size: 18px; margin-bottom: 6px; }
.ft-mode p { font-size: 13.5px; color: var(--muted); }

/* Numbered tips on dark */
.ft-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: tip; }
.ft-tip { position: relative; padding: 26px 22px 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); counter-increment: tip; }
.ft-tip::before { content: counter(tip, decimal-leading-zero); font-family: var(--font-head); font-size: 42px; line-height: 1; color: var(--gold); opacity: .9; display: block; margin-bottom: 10px; }
.ft-tip h3 { font-size: 18px; color: #fff; margin-bottom: 6px; }
.ft-tip p { color: #CFE0D6; font-size: 14.5px; }

/* =====================================================================
   PUZZLE TYPES
   ===================================================================== */
.ft-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; margin: 0 auto; }
.ft-mosaic figure { margin: 0; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.3); rotate: var(--r, 0deg); transition: rotate .4s var(--ease), scale .4s var(--ease); }
.ft-mosaic figure:nth-child(1) { --r: -3deg; }
.ft-mosaic figure:nth-child(2) { --r: 2deg; margin-top: 28px; }
.ft-mosaic figure:nth-child(3) { --r: 2.5deg; margin-top: -28px; }
.ft-mosaic figure:nth-child(4) { --r: -2deg; }
.ft-mosaic figure:hover { rotate: 0deg; scale: 1.04; }
.ft-mosaic img { border-radius: 10px; display: block; width: 100%; height: auto; }

.ft-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.ft-filter button { border: 1px solid var(--border); background: #fff; color: var(--pine); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .2s, color .2s, border-color .2s; }
.ft-filter button span { font-size: 12px; background: var(--cream); border-radius: 99px; padding: 1px 8px; color: var(--muted); }
.ft-filter button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.ft-filter button[aria-pressed="true"] span { background: rgba(255,255,255,.18); color: #fff; }
.ft-pz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ft-pz { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.ft-pz[hidden] { display: none; }
.ft-pz-art { background: #FAF6EF; padding: 12px; border-bottom: 1px solid var(--border); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.ft-pz-art img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; transition: transform .5s var(--ease); }
.ft-pz:hover .ft-pz-art img { transform: scale(1.06); }
.ft-pz-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ft-pz-body h3 { font-size: 18px; margin: 0; }
.ft-pz-body p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.ft-pz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.ft-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--mint); color: var(--green); }
.ft-tag.k-word { background: var(--rose); color: var(--cranberry); }
.ft-tag.k-math { background: #E8EFF7; color: var(--blue); }
.ft-tag.k-look { background: var(--gold-tint); color: #8F650C; }
.ft-tag.k-draw { background: #F1EAF6; color: #6A3A80; }
.ft-tag.k-little { background: var(--cream); color: var(--pine); border: 1px solid var(--border); }

.ft-howdigit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.ft-hd { text-align: center; padding: 0 22px; position: relative; }
.ft-hd + .ft-hd::before { content: "\F138"; font-family: "bootstrap-icons"; position: absolute; left: -14px; top: 34px; font-size: 26px; color: var(--gold); }
.ft-hd .big { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; font-size: 34px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: var(--gold); }
.ft-hd h3 { color: #fff; font-size: 19px; margin-bottom: 6px; }
.ft-hd p { color: #CFE0D6; font-size: 14.5px; }

.ft-level-table { width: 100%; border-collapse: separate; border-spacing: 8px; }
.ft-level-table th { font-size: 13px; color: var(--muted); font-weight: 700; text-align: center; }
.ft-level-table th[scope="row"] { text-align: left; color: var(--pine); font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.ft-level-table td { text-align: center; border-radius: 14px; padding: 14px 8px; font-weight: 700; font-size: 14px; }
.ft-lv-0 { background: var(--mint); color: var(--green); }
.ft-lv-1 { background: var(--gold-tint); color: #8F650C; }
.ft-lv-2 { background: var(--rose); color: var(--cranberry); }
.ft-lv-dots { display: block; letter-spacing: 3px; font-size: 12px; margin-top: 2px; }
.ft-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Toys */
.ft-toys { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ft-toy { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-soft); }
.ft-toy h3 { font-size: 22px; margin-bottom: 4px; }
.ft-toy > p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.ft-mini-clues { display: grid; gap: 10px; margin-bottom: 18px; }
.ft-mini-clue { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.ft-mini-clue .no { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--pine); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ft-mini-clue .q { flex: 1; min-width: 0; }
.ft-mini-clue .q b { color: var(--pine); }
.ft-stars { color: #C9921B; letter-spacing: 2px; }
.ft-lock { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-radius: 20px; background: linear-gradient(180deg, #164C3A, #0F3D2E); position: relative; }
.ft-lock-ico { font-size: 30px; color: var(--gold); width: 44px; text-align: center; transition: transform .4s var(--ease); }
.ft-dial { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ft-dial button { width: 40px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; font-size: 14px; }
.ft-dial button:hover { background: rgba(255,255,255,.26); }
.ft-dial output { width: 46px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--pine); box-shadow: inset 0 -4px 0 #E9E1D3; }
.ft-lock.is-open { background: linear-gradient(180deg, #2E8B63, #1E7A55); }
.ft-lock.is-open .ft-lock-ico { transform: rotate(-12deg) scale(1.15); }
.ft-lock.is-shake { animation: ftShake .45s; }
@keyframes ftShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.ft-toy-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.ft-msg { font-weight: 600; font-size: 14px; min-height: 22px; }
.ft-msg.ok { color: var(--green); }
.ft-msg.no { color: var(--cranberry); }
.ft-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #fff; color: var(--pine); border-radius: 12px; padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.ft-btn:hover { border-color: var(--pine); }
.ft-btn.is-main { background: var(--cranberry); border-color: var(--cranberry); color: #fff; }
.ft-btn.is-main:hover { background: var(--cranberry-dark); }
.ft-cipher-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; margin-bottom: 16px; }
.ft-ck { text-align: center; background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 4px 0 2px; font-size: 11px; font-weight: 700; color: var(--pine); }
.ft-ck svg { width: 18px; height: 18px; display: block; margin: 0 auto 2px; fill: var(--cranberry); stroke: var(--cranberry); }
.ft-cipher-msg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
.ft-cm { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ft-cm svg { width: 30px; height: 30px; fill: var(--pine); stroke: var(--pine); }
.ft-cm input { width: 38px; height: 40px; text-align: center; border: 2px solid var(--border); border-radius: 10px; font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--pine); background: #fff; }
.ft-cm input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(242,193,78,.35); }
.ft-cm input.ok { border-color: var(--green); background: var(--mint); }
.ft-cm input.no { border-color: var(--cranberry); background: var(--rose); }

/* =====================================================================
   LEARNING CODES
   ===================================================================== */
.ft-taskcard { background: #fff; border-radius: 22px; padding: 22px; color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.3); max-width: 480px; margin: 0 auto; position: relative; }
.ft-taskcard .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cranberry); }
.ft-taskcard .q { font-family: var(--font-head); font-size: clamp(26px, 4vw, 38px); color: var(--pine); margin: 6px 0 10px; line-height: 1.15; }
.ft-taskcard .words { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ft-taskcard .words span { padding: 5px 10px; border-radius: 10px; background: var(--cream); border: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.ft-taskcard .dots { font-size: 26px; color: #C9921B; letter-spacing: 4px; margin-bottom: 8px; }
.ft-taskcard .lockrow { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--border); padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ft-taskcard .box { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--font-head); font-size: 26px; color: var(--cranberry); background: var(--gold-tint); }
.ft-taskcard .box.is-hidden { color: transparent; }
.ft-taskcard.is-pop { animation: ftPop .45s var(--ease); }
@keyframes ftPop { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }

.ft-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.ft-flow-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.ft-flow-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--mint); color: var(--green); margin-bottom: 12px; }
.ft-flow-card h3 { font-size: 19px; margin-bottom: 6px; }
.ft-flow-card p { font-size: 14.5px; color: var(--muted); }
.ft-flow-arrow { display: grid; place-items: center; font-size: 30px; color: var(--gold); }
.ft-eq { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-head); font-size: 20px; color: var(--pine); background: var(--cream); padding: 6px 12px; border-radius: 12px; }
.ft-eq b { color: var(--cranberry); }

.ft-gen { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.ft-gen-ctrls { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 22px; }
.ft-gen-ctrls .ft-mini-h { color: #A9C8B8; margin-top: 0; }
.ft-gen-ctrls .ft-mini-h + .ft-chips { margin-bottom: 16px; }
.ft-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-chips button { border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s; }
.ft-chips button:hover { background: rgba(255,255,255,.1); }
.ft-chips button[aria-pressed="true"] { background: var(--gold); color: var(--pine); border-color: var(--gold); }
.ft-chips.on-light button { border-color: var(--border); color: var(--pine); background: #fff; }
.ft-chips.on-light button[aria-pressed="true"] { background: var(--pine); color: #fff; border-color: var(--pine); }

.ft-matrix { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; font-size: 13.5px; }
.ft-matrix th, .ft-matrix td { padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ft-matrix thead th { background: var(--pine); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; text-align: left; }
.ft-matrix tbody th { background: var(--cream); color: var(--pine); font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.ft-matrix tbody tr:last-child > * { border-bottom: 0; }
.ft-matrix td code { display: inline-block; margin-top: 4px; background: var(--gold-tint); color: #8F650C; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-family: var(--font-body); font-weight: 700; }
.ft-matrix tbody tr { transition: background .2s; }
.ft-matrix tbody tr:hover td { background: #FFFCF4; }

.ft-wordtabs { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.ft-wordtabs [role="tablist"] { display: flex; flex-direction: column; gap: 6px; }
.ft-wordtabs [role="tab"] { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 600; color: var(--pine); cursor: pointer; }
.ft-wordtabs [role="tab"][aria-selected="true"] { background: var(--cranberry); color: #fff; border-color: var(--cranberry); }
.ft-wordpanel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.ft-wordpanel h3 { font-size: 17px; margin: 0 0 8px; }
.ft-wordpanel h3:not(:first-child) { margin-top: 18px; }
.ft-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-cloud span { padding: 5px 11px; border-radius: 99px; background: var(--cream); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); }
.ft-cloud.k-red span { background: var(--rose); border-color: #F4D3D7; }
.ft-cloud.k-green span { background: var(--mint); border-color: #CFE3D6; }

/* =====================================================================
   CLASSROOM
   ===================================================================== */
.ft-board { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.ft-board-ctrl { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-soft); }
.ft-board-ctrl label { font-weight: 700; color: var(--pine); font-size: 14px; display: block; margin-bottom: 6px; }
.ft-board-ctrl textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; min-height: 150px; background: var(--cream); }
.ft-board-ctrl textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.3); }
.ft-board-ctrl .ft-mini-h { margin-top: 16px; }
.ft-teams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ft-team { background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; animation: ftPanelIn .45s var(--ease) both; }
.ft-team-h { background: var(--c); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.ft-team-h small { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; opacity: .9; }
.ft-team-b { padding: 14px 16px 16px; }
.ft-kids { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ft-kids span { background: var(--cream); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.ft-order { display: flex; flex-wrap: wrap; gap: 5px; }
.ft-order span { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--border); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--pine); }
.ft-order span.gold { border-color: var(--gold); background: var(--gold-tint); }
.ft-order span.first { background: var(--c); color: #fff; border-color: var(--c); }
.ft-code { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ft-code b { font-family: var(--font-head); color: var(--pine); font-size: 18px; letter-spacing: 2px; }

.ft-timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft-phase { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 24px; position: relative; }
.ft-phase-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ft-phase-h .ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--c); }
.ft-phase-h h3 { margin: 0; font-size: 21px; }
.ft-phase-h small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.ft-phase ol { counter-reset: s; display: grid; gap: 10px; }
.ft-phase li { counter-increment: s; position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.5; }
.ft-phase li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--cream); border: 1px solid var(--border); font-size: 12px; font-weight: 700; display: grid; place-items: center; color: var(--pine); }
.ft-phase li b { color: var(--pine); }

.ft-printplan { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ft-ptable { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.ft-ptable th, .ft-ptable td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14.5px; text-align: left; }
.ft-ptable thead th { background: var(--cream); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ft-ptable td:last-child { text-align: right; font-family: var(--font-head); font-size: 18px; color: var(--cranberry); white-space: nowrap; }
.ft-ptable tfoot td { font-weight: 700; color: var(--pine); background: var(--gold-tint); border-bottom: 0; }
.ft-range { width: 100%; accent-color: var(--cranberry); }
.ft-range-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ft-range-row label { width: 120px; font-weight: 700; color: var(--pine); font-size: 14px; }
.ft-range-row output { width: 40px; text-align: right; font-family: var(--font-head); font-size: 20px; color: var(--cranberry); }

.ft-shots2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.ft-shots2 .ft-cap { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ft-shots2 .ft-cap b { color: var(--pine); }

/* =====================================================================
   ADVENT
   ===================================================================== */
.ft-doors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; perspective: 900px; }
.ft-door {
  aspect-ratio: 1 / 1.1; border-radius: 12px; position: relative; border: 0; padding: 0; cursor: pointer; background: transparent;
  transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.ft-door .f, .ft-door .b { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-family: var(--font-head); font-weight: 600; }
.ft-door .f { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 20px; }
.ft-door .b { transform: rotateY(180deg); background: #fff; color: var(--pine); font-size: 13px; padding: 4px; text-align: center; line-height: 1.1; }
.ft-door .b i { display: block; font-size: 18px; color: var(--cranberry); }
.ft-door.has-letter .f { background: rgba(242,193,78,.22); border-color: rgba(242,193,78,.55); }
.ft-door.has-letter .b { background: var(--gold); font-size: 24px; }
.ft-door.is-final .f { background: var(--cranberry); border-color: var(--cranberry); }
.ft-door.is-open { transform: rotateY(180deg); }
.ft-door:focus-visible { outline: 3px solid var(--gold); }

.ft-spread { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; }
.ft-spread-ctrl { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-soft); }
.ft-spread-ctrl input[type="text"] { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 18px; color: var(--pine); background: var(--cream); }
.ft-spread-ctrl input[type="text"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.3); }
.ft-spread-ctrl label { font-weight: 700; color: var(--pine); font-size: 14px; display: block; margin-bottom: 6px; }
.ft-spread-note { margin-top: 14px; font-size: 14px; color: var(--muted); background: var(--gold-tint); border: 1px dashed #E9CF8A; border-radius: 14px; padding: 12px 14px; }
.ft-cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ft-day { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 10px 8px; min-height: 84px; position: relative; display: flex; flex-direction: column; transition: background .3s, border-color .3s; }
.ft-day .d { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--cranberry); line-height: 1; }
.ft-day .t { margin-top: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ft-day .l { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; background: var(--gold); color: var(--pine); font-weight: 800; display: grid; place-items: center; animation: ftPop .4s var(--ease) both; }
.ft-day.is-letter { background: var(--gold-tint); border-color: #EBCB78; }
.ft-day.is-final { background: var(--cranberry); border-color: var(--cranberry); }
.ft-day.is-final .d, .ft-day.is-final .t { color: #fff; }
.ft-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.ft-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--border); background: #fff; }
.ft-legend .lg-l { background: var(--gold-tint); border-color: #EBCB78; }
.ft-legend .lg-f { background: var(--cranberry); border-color: var(--cranberry); }
.ft-reveal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ft-reveal span { width: 34px; height: 38px; border-radius: 9px; background: var(--gold); color: var(--pine); font-weight: 800; display: grid; place-items: center; font-size: 18px; }

.ft-anatomy { display: grid; grid-template-columns: 1fr 360px 1fr; gap: 26px; align-items: center; }
.ft-anatomy .shotcard { background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lift); rotate: -1.5deg; transition: rotate .4s var(--ease); }
.ft-anatomy .shotcard:hover { rotate: 0deg; }
.ft-anatomy .shotcard img { border-radius: 12px; }
.ft-callouts { display: grid; gap: 18px; }
.ft-callout { display: flex; gap: 12px; align-items: flex-start; }
.ft-callout .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cranberry); color: #fff; font-weight: 700; display: grid; place-items: center; }
.ft-callout h3 { font-size: 17px; margin: 2px 0 4px; }
.ft-callout p { font-size: 14px; color: var(--muted); }
.ft-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ft-age { border-radius: 22px; padding: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.ft-age h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.ft-age > p { color: #CFE0D6; font-size: 14px; margin-bottom: 14px; }
.ft-age ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-age li { background: rgba(255,255,255,.12); color: #fff; border-radius: 99px; padding: 5px 11px; font-size: 13.5px; font-weight: 600; }
.ft-age li i { color: var(--gold); margin-right: 4px; }

.ft-printsteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ft-ps { text-align: center; padding: 8px; }
.ft-ps .ico { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: #fff; border: 1px solid var(--border); color: var(--cranberry); box-shadow: var(--shadow-soft); }
.ft-ps h3 { font-size: 17px; margin-bottom: 4px; }
.ft-ps p { font-size: 14px; color: var(--muted); }

/* =====================================================================
   PRINTABLES
   ===================================================================== */
.ft-subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(251,247,240,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.ft-subnav ul { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.ft-subnav ul::-webkit-scrollbar { display: none; }
.ft-subnav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--pine); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.ft-subnav a:hover { background: #fff; border-color: var(--border); }
.ft-subnav a.is-active { background: var(--pine); color: #fff; }
.ft-shelf { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.ft-shelf.is-rev > :first-child { order: 2; }
.ft-shelf-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cranberry); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.ft-shelf h2 { font-size: clamp(28px, 1.2rem + 1.6vw, 40px); margin: 8px 0 12px; }
.ft-shelf > div > p { color: var(--muted); font-size: 16.5px; }
.ft-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.ft-stat { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; min-width: 110px; }
.section-white .ft-stat { background: var(--cream); }
.ft-stat b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--cranberry); line-height: 1.05; }
.ft-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ft-chiplist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ft-chiplist span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--pine); }
.section-white .ft-chiplist span { background: var(--cream); }
.ft-chiplist i { color: var(--green); }
.ft-bars { display: grid; gap: 8px; margin-top: 16px; }
.ft-barrow { display: grid; grid-template-columns: 190px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--pine); }
.ft-barrow .track { height: 12px; border-radius: 99px; background: #EFE8DC; overflow: hidden; }
.ft-barrow .fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--cranberry), #E5675F); transition: width 1.2s var(--ease); }
.ft-barrow:nth-child(even) .fill { background: linear-gradient(90deg, var(--green), #3FB67F); }
.is-visible .ft-barrow .fill { width: var(--w); }
.ft-barrow output { text-align: right; font-family: var(--font-head); color: var(--cranberry); }

/* ---------- More pages ---------- */
.ft-more { padding-top: 72px; padding-bottom: 72px; }
.ft-more-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ft-more-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--text); position: relative; transition: translate .3s var(--ease), box-shadow .3s, border-color .3s, opacity .6s var(--ease), transform .6s var(--ease); }
.ft-more-card:hover { translate: 0 -5px; box-shadow: var(--shadow-lift); border-color: var(--gold); color: var(--text); }
.ft-more-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 19px; }
.ft-more-card b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--pine); font-size: 16px; }
.ft-more-card small { color: var(--muted); font-size: 13px; }
.ft-more-go { position: absolute; top: 18px; right: 16px; color: var(--cranberry); transition: transform .3s; }
.ft-more-card:hover .ft-more-go { transform: translateX(4px); }

/* Grid children may shrink below their content (long URLs, nowrap chips) */
.ft-stepper > *, .ft-step-grid > *, .ft-flip > *, .ft-gen > *, .ft-board > *, .ft-spread > *, .ft-printplan > *, .ft-shots2 > *, .ft-shelf > *, .ft-toys > *, .ft-wordtabs > *, .ft-anatomy > *, .ft-teams > *, .ft-pz-grid > *, .ft-pack > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .ft-pack { grid-template-columns: repeat(4, 1fr); }
  .ft-pz-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-modes { grid-template-columns: repeat(3, 1fr); }
  .ft-more-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-anatomy { grid-template-columns: 1fr 320px; }
  .ft-anatomy .ft-callouts:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
  .ft-hero { padding-bottom: 120px; }
  .ft-stepper, .ft-step-grid, .ft-flip, .ft-gen, .ft-board, .ft-spread, .ft-printplan, .ft-shots2, .ft-shelf, .ft-toys, .ft-wordtabs { grid-template-columns: 1fr; }
  .ft-shelf.is-rev > :first-child { order: 0; }
  .ft-steps-tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .ft-steps-tabs::-webkit-scrollbar { display: none; }
  .ft-step-tab { flex: none; width: auto; }
  .ft-step-tab small { display: none; }
  .ft-wordtabs [role="tablist"] { flex-direction: row; flex-wrap: wrap; }
  .ft-tips, .ft-timeline, .ft-ages { grid-template-columns: 1fr; }
  .ft-flow { grid-template-columns: 1fr; }
  .ft-flow-arrow { transform: rotate(90deg); }
  .ft-howdigit { grid-template-columns: 1fr; gap: 30px; }
  .ft-hd + .ft-hd::before { left: 50%; top: -28px; transform: translateX(-50%) rotate(90deg); }
  .ft-printsteps { grid-template-columns: 1fr 1fr; }
  .ft-anatomy { grid-template-columns: 1fr; }
  .ft-anatomy .shotcard { max-width: 380px; margin: 0 auto; }
  .ft-anatomy .ft-callouts:last-child { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .ft-pack { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ft-pz-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ft-pz-body { padding: 12px; }
  .ft-pz-body p { display: none; }
  .ft-modes { grid-template-columns: 1fr 1fr; }
  .ft-more-grid { grid-template-columns: 1fr 1fr; }
  .ft-teams { grid-template-columns: 1fr; }
  .ft-cal { grid-template-columns: repeat(4, 1fr); }
  .ft-doors { grid-template-columns: repeat(4, 1fr); }
  .ft-barrow { grid-template-columns: 130px 1fr 34px; font-size: 13px; }
  .ft-step-panel { padding: 18px; }
  .ft-float-chip { left: 8px; bottom: 10px; font-size: 12.5px; }
  .ft-browser[data-tilt] { --ry: 0deg; --rx: 0deg; }
}
@media (max-width: 420px) {
  .ft-pack, .ft-modes, .ft-more-grid, .ft-printsteps { grid-template-columns: 1fr; }
  .ft-page { aspect-ratio: auto; min-height: 150px; }
  .ft-cal { grid-template-columns: repeat(3, 1fr); }
  .ft-dial output { width: 40px; height: 50px; font-size: 26px; }
  .ft-dial button { width: 34px; }
  .ft-lock { gap: 6px; padding: 14px 8px; }
  .ft-lock-ico { width: 30px; font-size: 24px; }
  .ft-calc-out b { font-size: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ft-blobs span, .ft-float-chip, .ft-step-tab .bar, .ft-team, .ft-day .l, .ft-taskcard.is-pop, .ft-step-panel.is-in { animation: none !important; }
  .ft-browser, .ft-glow, .ft-page, .ft-mosaic figure, .ft-door, .ft-pz-art img, .ft-more-card, .ft-barrow .fill { transition: none !important; }
  .ft-browser[data-tilt] { --ry: 0deg; --rx: 0deg; }
  .ft-glow:hover, .ft-page:hover, .ft-more-card:hover { translate: none; scale: none; }
}
