@import url("https://fonts.googleapis.com/css2?family=Lora:wght@500;600&family=Manrope:wght@500;600&family=Noto+Sans+Hebrew:wght@500;600&family=Noto+Serif+Hebrew:wght@600&display=swap");

/* Outer shell shared by every MargoStory page. Project screens keep their own CSS. */

:root {
  --ms-ink: #5a3828;
  --ms-muted: #6e5646;
  --ms-paper: rgba(251, 246, 238, 0.92);
  --ms-line: rgba(196, 161, 90, 0.55);
  --ms-shadow: 0 8px 16px rgba(74, 58, 42, 0.12);
  --ms-title: "Lora", "Noto Serif Hebrew", Georgia, serif;
  --ms-text: "Manrope", "Noto Sans Hebrew", sans-serif;
  --ms-content: min(1080px, calc(100% - 32px));
}

html {
  background-color: #f7f3e4;
  background-image: url("../MARGOSTORY_2/assets/paper-01.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body {
  background-color: transparent;
  background-image: none;
  color: #655448;
  font-family: var(--ms-text);
}

.header {
  width: var(--ms-content);
  max-width: var(--ms-content);
  margin-inline: auto;
  padding: 18px 0 8px;
  box-sizing: border-box;
}

html body .header .logo img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #c9a86a;
  box-shadow: 0 8px 16px rgba(74, 58, 42, 0.12);
}

html body .header .language {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--ms-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5a3828;
}

html body .header .language a {
  color: #5a3828;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
}

.header .title h1 {
  font-family: var(--ms-title);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ms-ink);
  line-height: 1.15;
}

.page-read h1,
.page-read h2,
.comics-page h1,
.comics-page h2,
.freebies-page h1,
.freebies-page h2,
.stickers-page h1,
.stickers-page h2,
.sidebar-title {
  font-family: var(--ms-title);
  color: var(--ms-ink);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.comics-intro,
.freebies-intro,
.stickers-intro {
  color: var(--ms-muted);
  font-family: var(--ms-text);
  line-height: 1.55;
}

.comics-page,
.freebies-page,
.stickers-page,
.page-read,
.cards {
  width: var(--ms-content);
  max-width: var(--ms-content);
  margin-inline: auto;
  box-sizing: border-box;
}

.language,
.langs,
.dc-langs {
  font-family: var(--ms-text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.language a,
.langs button,
.dc-langs a {
  color: #6e5646;
  font-weight: 600;
}

.language a.active,
.language a[aria-pressed="true"],
.langs button.is-active,
.langs button[aria-pressed="true"],
.dc-langs a.active {
  color: var(--ms-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

html body .card,
html body .comics-catalog-card,
html body .playroom-game-card,
html body .freebies-page .freebies-categories .card,
html body .stickers-page .sticker-collections .card {
  border-radius: 22px;
  border: 1px solid rgba(196, 161, 90, 0.45);
  box-shadow: var(--ms-shadow);
}

html body .card:hover,
html body .comics-catalog-card:hover,
html body .playroom-game-card:hover,
html body .freebies-page .freebies-categories .card:hover,
html body .stickers-page .sticker-collections .card:hover {
  transform: translateY(-4px);
}

.game-card img,
.game-face {
  border-radius: 22px;
}

html body button.back-arrow.back-arrow,
html body a.back-home.back-home,
html body a.back-link.back-link,
html body a.back-btn.back-btn,
html body a.mystery-back.mystery-back,
html body a.dc-back.dc-back,
html body a.hs-back.hs-back,
html body a.reader-back.reader-back,
html body button#back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 8px 0 16px;
  padding: 8px 16px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: var(--ms-paper);
  color: var(--ms-ink);
  font-family: var(--ms-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  box-shadow: var(--ms-shadow);
  cursor: pointer;
}

a.reader-back .reader-icon {
  display: none;
}

html body.sandspiel-body,
html body.draw-body,
html body.wiggly-body,
html body.playroom-body,
html body.dc-body {
  background-color: #f7f3e4;
  background-image: url("../MARGOSTORY_2/assets/paper-01.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: #655448;
  font-family: var(--ms-text);
}

html body .header.ms-head,
html body .ms-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html body .header .gold-line {
  display: none;
}

html body .ms-title,
html body .dc-title {
  font-family: var(--ms-title);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--ms-ink);
  text-align: center;
  margin: 4px 0 8px;
}

html body .ms-lead,
html body .dc-tagline {
  font-family: var(--ms-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ms-muted);
  text-align: center;
  margin: 0 0 14px;
}

html body .dc-brand img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 50%;
}

.dc-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

html body .dc-top-row .dc-title {
  flex: 1;
  margin: 0;
}

html body #app .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

html body #app .brand {
  flex: 0 0 auto;
  display: block;
}

html body #app .top .ms-title {
  flex: 1;
  margin: 0;
}

html body button.back-arrow.back-arrow:hover,
html body a.back-home.back-home:hover,
html body a.back-link.back-link:hover,
html body a.back-btn.back-btn:hover,
html body a.mystery-back.mystery-back:hover,
html body a.dc-back.dc-back:hover,
html body a.hs-back.hs-back:hover,
html body a.reader-back.reader-back:hover,
html body button#back:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(74, 58, 42, 0.16);
}

html body button.back-arrow.back-arrow:active,
html body a.back-home.back-home:active,
html body a.back-link.back-link:active,
html body a.back-btn.back-btn:active,
html body a.mystery-back.mystery-back:active,
html body a.dc-back.dc-back:active,
html body a.hs-back.hs-back:active,
html body a.reader-back.reader-back:active,
html body button#back:active {
  transform: translateY(0);
}

#margo-feedback-root {
  display: none;
}

html body .memory-overlay {
  background-color: #f7f3e4;
  background-image: url("../MARGOSTORY_2/assets/paper-01.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

html body .memory-frame {
  width: min(950px, 100%);
  margin: 0 auto;
}

html body .memory-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html body .memory-brand img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 720px) {
  html body .header .logo img,
  html body .memory-brand img,
  html body .dc-brand img {
    width: 64px;
    height: 64px;
  }
}
