@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700;900&family=IM+Fell+English+SC&family=Noto+Serif+Hebrew:wght@400;500;600;700;900&display=swap');

:root{--font-body:"Frank Ruhl Libre",serif;--font-title-hebrew:"Noto Serif Hebrew","Frank Ruhl Libre",serif;--font-white-title:"Noto Serif Hebrew","Frank Ruhl Libre",serif;--font-title-english:"IM Fell English SC","Noto Serif Hebrew",serif;--bg:#0c120e;--bg2:#101913;--text:#f6f1e7;--muted:#b9c6bd;--accent:#d7ff70;--accent2:#ffb36b;--line:rgba(255,255,255,.1);--shadow:0 28px 70px rgba(0,0,0,.38);--max:1240px}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Frank Ruhl Libre", serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(215,255,112,.13), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(255,179,107,.09), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 34px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,13,10,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  color: #18160b;
  font-size: 29px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(215,255,112,.18);
}

.brand span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong {
  font-size: 23px;
  letter-spacing: .05em;
}

.brand small,
.nav a,
.lead,
.section-head p,
.split p,
.card p,
.profile-card li,
.tool-list span,
.footer,
.tool-card p,
.story-block p {
  color: var(--muted);
}

.brand small {
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 15px;
  transition: .2s;
}

.nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  padding: 44px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.scrub-card,
.profile-card,
.card,
.tool-card,
.video-panel,
.story-hero,
.story-block {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 34px;
  padding: 46px;
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(215,255,112,.09);
  border: 1px solid rgba(215,255,112,.24);
  color: var(--accent);
  font-size: 14px;
  margin: 0 0 18px;
}

.hero h1,
.story-hero h1 {
  font-size: clamp(58px, 8vw, 108px);
  line-height: .9;
  letter-spacing: -.06em;
  margin: 0 0 24px;
}

.story-hero h1 {
  font-size: clamp(38px, 5vw, 72px);
}

.hero h1 span {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 38px rgba(215,255,112,.18);
}

.lead {
  font-size: 18px;
  margin: 0;
  max-width: 58ch;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  padding: 0 21px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: .2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #151309;
}

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

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.quick-facts div {
  padding: 16px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.quick-facts b {
  display: block;
  color: #fff;
}

.quick-facts span {
  font-size: 14px;
  color: var(--muted);
}

.scrub-card {
  border-radius: 34px;
  padding: 18px;
  overflow: hidden;
}

.scrub-stage {
  height: 650px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  outline: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.14), transparent 28%),
    linear-gradient(180deg, #31251e, #111711);
  touch-action: none;
}

.scrub-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrub-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.03), transparent 46%, rgba(0,0,0,.25));
  mix-blend-mode: multiply;
}

.section {
  padding: 88px 0;
}

.dark {
  background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(0,0,0,.13));
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 28px;
  align-items: center;
}

.split h2,
.section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -.04em;
}

.split p,
.section-head p,
.tool-card p,
.story-block p {
  font-size: 18px;
  margin: 0 0 16px;
}

.profile-card {
  border-radius: 28px;
  overflow: hidden;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1b1713;
}

.profile-card div {
  padding: 24px;
}

.profile-card h3,
.card h3,
.tool-card h3,
.story-block h2 {
  font-size: 26px;
  line-height: 1.18;
  margin: 0 0 10px;
}

.profile-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.profile-card b,
.tool-list b,
.story-block h2 {
  color: var(--accent);
}

.section-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .kicker {
  margin-inline: auto;
}

.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border-radius: 24px;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #17231b;
}

.card div {
  padding: 22px;
}

.card p {
  margin: 0;
}

.moments-grid .card img {
  aspect-ratio: 4 / 3;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  border-radius: 28px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.tool-copy p {
  margin-bottom: 0;
}

.tool-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tool-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.story-card img {
  aspect-ratio: 4 / 3;
}

.story-link {
  transition: .2s;
}

.story-link:hover {
  transform: translateY(-4px);
  border-color: rgba(215,255,112,.4);
}

.video-panel {
  border-radius: 30px;
  overflow: hidden;
}

.video-panel video {
  width: 100%;
  background: #050705;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 16x 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer b {
  color: var(--accent);
  font-size: 24px;
}

.story-page {
  padding: 40px 0 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.story-hero {
  border-radius: 34px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.story-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.story-long-grid {
  display: grid;
  gap: 22px;
}

.story-block {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: stretch;
}

.story-block img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.story-block div {
  padding: 24px;
}

.story-bottom-back {
  margin-top: 28px;
}

.story-page-body .lead {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split,
  .story-hero,
  .story-block {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .scrub-stage {
    height: 560px;
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cards.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .story-block img {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .nav {
    gap: 12px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-copy {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .scrub-card {
    border-radius: 26px;
  }

  .scrub-stage {
    height: 430px;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .section {
    padding: 62px 0;
  }

  .tool-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .story-hero,
  .story-block {
    padding: 0;
  }

  .story-hero {
    overflow: hidden;
  }

  .story-hero img {
    border-radius: 0 0 24px 24px;
  }

  .story-hero > div {
    padding: 24px;
  }

  .story-block div {
    padding: 20px;
  }
}

/* Fantasy / storybook typography */
body,
p,
li,
span,
a,
button,
input,
textarea,
select,
.lead,
.section-head p,
.split p,
.card p,
.profile-card li,
.tool-card p,
.story-block p,
.footer {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.kicker,
.btn,
.nav a,
.brand small,
.hero h1,
.story-hero h1,
.section-head h2,
.split h2,
.profile-card h3,
.card h3,
.tool-card h3,
.story-block h2 {
  font-family: var(--font-title-hebrew);
}

.hero h1 span,
.brand strong {
  font-family: var(--font-title-english);
  letter-spacing: 0.05em;
}

/* Better Hebrew readability after switching to serif fonts */
body {
  font-weight: 400;
}

p,
li,
.card p,
.story-block p,
.tool-card p {
  font-size: 19px;
}

.nav a,
.btn,
.kicker {
  font-weight: 700;
}

/* Requested font corrections */

/* Hebrew headings and highlighted labels — Noto, no Suez One */
h1,
h2,
h3,
h4,
.kicker,
.btn,
.nav a,
.brand small,
.hero h1,
.story-hero h1,
.section-head h2,
.split h2,
.profile-card h3,
.card h3,
.tool-card h3,
.story-block h2 {
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
}

/* Regular Hebrew text remains Frank Ruhl Libre */
body,
p,
li,
span,
a,
button,
input,
textarea,
select,
.lead,
.section-head p,
.split p,
.card p,
.profile-card li,
.tool-card p,
.story-block p,
.footer {
  font-family: "Frank Ruhl Libre", serif;
}

/* English fantasy title */
.hero h1 span,
.brand strong {
  font-family: "IM Fell English SC", "Noto Serif Hebrew", serif;
  letter-spacing: 0.05em;
}

/* Forest rain soundtrack button */
.sound-toggle {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999;
  border: 1px solid rgba(215,255,112,.35);
  background: rgba(12,18,14,.84);
  color: #d7ff70;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.sound-toggle:hover {
  transform: translateY(-2px);
  background: rgba(215,255,112,.14);
  border-color: rgba(215,255,112,.55);
}

.sound-toggle.is-playing {
  background: rgba(215,255,112,.18);
  color: #ffffff;
}



/* ZIBBLO digital book embed */
.book-embed-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(215,255,112,.25);
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
  background: rgba(255,255,255,.04);
}

.book-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #111;
}

@media (max-width: 1100px) {
  .book-embed-wrap iframe {
    height: 620px;
  }
}

@media (max-width: 900px) {
  .book-embed-wrap iframe {
    height: 540px;
  }
}

@media (max-width: 680px) {
  .book-embed-wrap {
    border-radius: 20px;
  }

  .book-embed-wrap iframe {
    height: 430px;
  }
}

/* ZIBBLO V9 - built-in book reader */
.zibblo-book-reader {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.book-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(215,255,112,.24);
  background:
    radial-gradient(circle at 50% 30%, rgba(215,255,112,.09), transparent 34%),
    rgba(255,255,255,.035);
  box-shadow: 0 34px 90px rgba(0,0,0,.45);
}

.book-page-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080d0a;
  user-select: none;
  -webkit-user-drag: none;
}

.book-side-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(215,255,112,.32);
  background: rgba(12,18,14,.72);
  color: #d7ff70;
  font-size: 42px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.36);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.book-side-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(215,255,112,.14);
}

.book-side-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.book-side-next {
  left: 18px;
}

.book-sidePrev {
  right: 18px;
}

.book-controls {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.book-controls button,
.book-controls span {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(215,255,112,.24);
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 700;
}

.book-controls button {
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.book-controls button:hover {
  transform: translateY(-2px);
  background: rgba(215,255,112,.12);
}

.book-controls button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

#bookCounter {
  color: var(--accent);
  background: rgba(215,255,112,.08);
}

.book-frame.is-turning .book-page-image {
  animation: zibbloPageFade .22s ease;
}

@keyframes zibbloPageFade {
  from {
    opacity: .55;
    transform: scale(.992);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.book-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #050705;
  display: grid;
  place-items: center;
}

.book-frame:fullscreen .book-page-image {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

@media (max-width: 900px) {
  .book-frame {
    border-radius: 24px;
  }

  .book-side-btn {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }
}

@media (max-width: 680px) {
  .book-frame {
    border-radius: 18px;
  }

  .book-side-next {
    left: 8px;
  }

  .book-sidePrev {
    right: 8px;
  }

  .book-controls {
    gap: 8px;
  }

  .book-controls button,
  .book-controls span {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}

.footer-rights {
  display: block;
  text-align: center;
}
/* Header soundtrack button placement */
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-sound-toggle {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}

/* Footer centered rights text */


.footer-rights {
  display: block;
  width: 100%;
  color: var(--accent);
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 700;
  text-align: center;
  line-height: 1.8;
}

/* Clean final ZIBBLO movement video sizing */
#video .video-panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #050705;
}

#video .video-panel video {
  display: block;
  width: 100%;
  height: auto;
  background: #050705;
}

/* ZIBBLO video gallery */
.zibblo-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.zibblo-video-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.zibblo-video-card h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-size: 26px;
  line-height: 1.2;
}

.zibblo-video-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
}

.zibblo-video-card video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #050705;
}

@media (max-width: 900px) {
  .zibblo-videos-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero ZIBBLO logo image */
.hero-zibblo-logo {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto 18px;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.32);
}

/* Smaller original Hebrew/English title under the image */
.hero-title-small {
  font-size: clamp(34px, 5vw, 62px) !important;
  text-align: center;
  margin-bottom: 18px !important;
}

.hero-title-small span {
  font-size: .95em;
}

@media (max-width: 680px) {
  .hero-zibblo-logo {
    width: min(100%, 360px);
    border-radius: 20px;
    margin-bottom: 14px;
  }

  .hero-title-small {
    font-size: clamp(30px, 10vw, 46px) !important;
  }
}

/* ZIBBLO 3D model viewer */
.zibblo-3d-panel {
  width: 100%;
  max-width: 980px;
  height: 620px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(215,255,112,.24);
  background:
    radial-gradient(circle at 50% 30%, rgba(215,255,112,.10), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 34px 90px rgba(0,0,0,.45);
}

.zibblo-3d-panel model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.model-status {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 700;
  text-align: center;
  padding: 24px;
}

.model-error {
  color: #ffb36b;
}

@media (max-width: 900px) {
  .zibblo-3d-panel {
    height: 520px;
    border-radius: 24px;
  }
}

@media (max-width: 680px) {
  .zibblo-3d-panel {
    height: 430px;
    border-radius: 18px;
  }
}


/* ZIBBLO creature card details */
.zibblo-creature-card {
  display: grid;
  gap: 10px;
}

.zibblo-creature-card li {
  line-height: 1.75;
}

.zibblo-creature-card b {
  color: var(--accent);
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 900;
}

/* ZIBBLO vertical creature ID card - full height, no crop */
.profile-card.profile-id-card {
  padding: 0 !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 520px !important;
  margin-inline: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.profile-card.profile-id-card img.zibblo-id-card-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 24px !important;
  background: transparent !important;
}

@media (max-width: 680px) {
  .profile-card.profile-id-card {
    max-width: 100% !important;
  }

  .profile-card.profile-id-card img.zibblo-id-card-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    border-radius: 18px !important;
  }
}

.zibblo-id-card-wrap {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.zibblo-id-card-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
/* ZIBBLO top banner */
.top-banner-section {
  width: 100%;
  padding: 0;
  margin: 0;
  background: #0c120e;
}
/* לוגו ראשי מידות */
.top-banner-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1918 / 386;
  object-fit: contain;
}


/* =========================================================
   ZIBBLO coloring cover on homepage
   ========================================================= */

#coloring-pages {
  background:
    radial-gradient(circle at 50% 0%, rgba(215,255,112,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.08));
}

.coloring-cover-card {
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid rgba(215,255,112,.24);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.coloring-cover-card:hover {
  transform: translateY(-5px);
  border-color: rgba(215,255,112,.55);
  box-shadow: 0 32px 78px rgba(0,0,0,.44);
}

.coloring-cover-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background: #ffffff;
  object-fit: contain;
}


/* =========================================================
   ZIBBLO coloring gallery page
   ========================================================= */

.coloring-gallery-page {
  min-height: 100vh;
}

.coloring-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.coloring-page-card {
  border-radius: 24px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid rgba(215,255,112,.22);
  box-shadow: 0 22px 55px rgba(0,0,0,.34);
  overflow: hidden;
}

.coloring-page-card img {
  width: 100%;
  height: 115px;
  object-fit: contain;
  display: block;
  background:
    radial-gradient(circle at 50% 35%, rgba(215,255,112,.10), transparent 55%),
    linear-gradient(180deg, rgba(24, 38, 27, .92), rgba(9, 18, 13, .96));
  border: 1px solid rgba(215,255,112,.16);
  border-radius: 18px;
  padding: 8px;
}

.coloring-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.coloring-actions a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 700;
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(215,255,112,.22);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.coloring-actions a:hover {
  transform: translateY(-2px);
  background: rgba(215,255,112,.12);
  border-color: rgba(215,255,112,.45);
}

.coloring-bottom-back {
  margin-top: 28px;
  text-align: center;
}


/* =========================================================
   ZIBBLO stories section - clean fixed layout
   ========================================================= */

#stories .stories-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

#stories .story-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    #101913 !important;
  border: 1px solid rgba(215,255,112,.22) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,.34) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

#stories .story-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(215,255,112,.45) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.42) !important;
}

#stories .story-card img {
  display: block !important;
  width: 100% !important;
  height: 190px !important;
  max-height: 190px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  background: #17231b !important;
}

#stories .story-card div {
  padding: 20px !important;
}

#stories .story-card h3 {
  margin: 0 0 10px !important;
  font-size: 23px !important;
  line-height: 1.22 !important;
  color: #ffffff !important;
}

#stories .story-card p {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: var(--muted) !important;
}




/* =========================================================
   ZIBBLO YouTube links - header and footer
   ========================================================= */

.youtube-top-link,
.youtube-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif;
  font-weight: 800;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    rgba(16, 25, 19, .78);
  border: 1px solid rgba(255, 80, 80, .45);
  box-shadow:
    0 14px 34px rgba(0,0,0,.28),
    0 0 24px rgba(255, 70, 70, .12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}

.youtube-top-link:hover,
.youtube-footer-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 80, 80, .85);
  box-shadow:
    0 18px 42px rgba(0,0,0,.36),
    0 0 28px rgba(255, 70, 70, .22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)),
    rgba(26, 31, 22, .9);
}

.youtube-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff0033;
  box-shadow: 0 0 18px rgba(255, 0, 51, .34);
  flex: 0 0 auto;
}

.youtube-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: #ffffff;
}

.youtube-footer-link {
  margin-top: 16px;
}


/* Footer centered rights text */
.footer-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer-centered .footer-rights {
  display: block;
  text-align: center;
  width: 100%;
}

.footer-centered .youtube-footer-link {
  margin: 0;
}

/* =========================================================
   ZIBBLO WhatsApp stickers section
   ========================================================= */

#whatsapp-stickers {
  background:
    radial-gradient(circle at 50% 0%, rgba(215,255,112,.07), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.014), rgba(0,0,0,.08));
}

#whatsapp-stickers .section-head {
  text-align: right;
  margin-inline: 0;
}

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.sticker-card {
  overflow: hidden;
  border-radius: 24px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    #101913;
  border: 1px solid rgba(215,255,112,.22);
  box-shadow: 0 22px 55px rgba(0,0,0,.34);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.sticker-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215,255,112,.48);
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
}

.sticker-card img {
  width: 100%;
  height: 145px;
  object-fit: contain;
  display: block;
  padding: 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 35%, rgba(215,255,112,.10), transparent 55%),
    linear-gradient(180deg, rgba(24, 38, 27, .92), rgba(9, 18, 13, .96));
  border: 1px solid rgba(215,255,112,.16);
}

.sticker-download {
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  font-family: "Frank Ruhl Libre", "Noto Serif Hebrew", serif;
  font-weight: 800;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(215,255,112,.13), rgba(215,255,112,.06)),
    rgba(16,25,19,.86);
  border: 1px solid rgba(215,255,112,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.sticker-download:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(215,255,112,.22), rgba(215,255,112,.08)),
    rgba(16,25,19,.95);
  border-color: rgba(215,255,112,.55);
}



/* =========================================================
   ZIBBLO new full story pages
   For stories/story-9.html to stories/story-12.html
   ========================================================= */

.story-page-header {
  padding: 90px 0 35px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215,255,112,.08), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08));
  text-align: right;
}

.story-page-header h1 {
  margin: 18px 0 12px;
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  color: var(--text);
}

.story-page-header p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 20px;
}

.story-full {
  max-width: 1050px;
}

.story-hero-image,
.story-inline-image {
  width: 100%;
  display: block;
  border-radius: 26px;
  border: 1px solid rgba(215,255,112,.20);
  box-shadow: 0 24px 65px rgba(0,0,0,.35);
  object-fit: cover;
  background: #101913;
}

.story-hero-image {
  max-height: 520px;
  margin-bottom: 34px;
}

.story-inline-image {
  max-height: 420px;
  margin: 32px 0;
}

.story-content {
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    rgba(13, 25, 18, .92);
  border: 1px solid rgba(215,255,112,.18);
  box-shadow: var(--shadow);
}

.story-content p {
  font-size: 20px;
  line-height: 1.9;
  margin: 0 0 22px;
  color: var(--muted);
}

.story-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .story-page-header {
    padding: 70px 0 25px;
  }

  .story-page-header p {
    font-size: 17px;
  }

  .story-content {
    padding: 20px;
  }

  .story-content p {
    font-size: 17px;
    line-height: 1.8;
  }

  .story-hero-image,
  .story-inline-image {
    border-radius: 18px;
  }
}



/* =========================================================
   LOGO CENTER
   ========================================================= */

.zibblo-logo-zone {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  justify-items: center;
  align-content: start;
  z-index: 10;
  padding-top: 0px;
}

.zibblo-logo-badge {
  position: relative;
  width: 120x;
  height: 120px;
  display: grid;
  place-items: center;
  text-decoration: none;
  overflow: visible;
  z-index: 10;
}

.zibblo-logo-dots {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px dotted rgba(215,255,112,.72);
  animation: zibbloLogoDotsSpin 16s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes zibbloLogoDotsSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.zibblo-logo-circle {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}

.zibblo-logo-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.28);
  transform-origin: center center;
}

/* =========================================================
   ACTION BUTTONS - moved away from logo
   ========================================================= */

.zibblo-logo-actions {
  position: absolute;
  top: 180px;
  left: 50%;
  width: 520px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 12;
  pointer-events: auto;
}





.zibblo-sound-btn {
  color: #f6f1e7;
  background:
    linear-gradient(180deg, rgba(215,255,112,.18), rgba(215,255,112,.06)),
    rgba(13,36,21,.94);
  border: 1px solid rgba(215,255,112,.38);
}




.footer-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  direction: rtl;
}

.footer-built-by {
  color: var(--accent);
  font-family: "Noto Serif Hebrew", "Frank Ruhl Libre", serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-sound-btn {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  min-height: 44px;
  padding: 0 16px;
  white-space: nowrap;
}

.footer-actions-row .youtube-footer-link {
  margin: 0;
}




