/* V3.1: final copy, footer and character refinements. */

/* Keep every footer label legible on the original sage background. */
.edubudy-footer .footer-top h3 {
  color: #314328;
  font-size: 11px;
}
.edubudy-footer .footer-top a:not(.brand),
.edubudy-footer .footer-intro p,
.edubudy-footer .footer-other-product p,
.edubudy-footer .footer-other-product > span,
.edubudy-footer .footer-legal,
.edubudy-footer .footer-legal > div {
  color: #3b4d30;
}
.edubudy-footer .footer-legal a,
.edubudy-footer .footer-legal button { color: inherit; }
.edubudy-footer .footer-legal .motion-toggle:disabled { opacity: 1; }
.edubudy-footer .footer-top a:not(.brand) {
  font-size: 12px;
  line-height: 1.65;
}
.edubudy-footer .footer-intro p,
.edubudy-footer .footer-other-product p {
  font-size: 12px;
}
.edubudy-footer .footer-other-product > span,
.edubudy-footer .footer-legal,
.edubudy-footer .footer-legal > div,
.edubudy-footer .footer-legal .motion-toggle {
  font-size: 10px;
  line-height: 1.6;
}
.edubudy-footer .footer-phone {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.edubudy-footer .footer-signature { color: #3b4d30; }
.edubudy-footer .footer-signature em { color: #4c613d; }

.footer-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
}
.edubudy-footer .store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 154px;
  max-width: 100%;
  min-height: 53px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #314328;
  border-radius: 10px;
  background: #263122;
  color: #f7f3e9;
  text-align: left;
  cursor: default;
  opacity: 1;
}
.store-badge .store-mark {
  flex: 0 0 25px;
  width: 25px;
  height: 29px;
}
.store-badge .store-mark-apple { margin-left: -3px; }
.store-badge > span { display: grid; gap: 2px; }
.store-badge small {
  color: #d7e2cb;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .1em;
  line-height: 1.25;
}
.store-badge strong {
  color: #f7f3e9;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-phone {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 0 0 14px;
  border-bottom: 1px solid #aca998;
  color: var(--ink);
}
.contact-phone > span {
  grid-column: 1 / -1;
  color: #55594d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.contact-phone strong {
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.contact-phone svg { align-self: center; width: 19px; height: 19px; }
.contact-company span { color: #55594d; font-size: 11px; }

/* The games page has one introductory heading; the tabs follow it directly. */
body[data-page="oyunlar"] .games-full { padding-top: 0; }
body[data-page="oyunlar"] .games-full .game-tabs { margin-top: 0; }

/* The story caption has its own line, outside the character artwork. */
.about-avatar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.about-avatar-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 18px 18px 0;
  border-radius: 0;
}
.about-avatar .about-avatar-image img {
  width: 90%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
  transform-origin: center bottom;
}
.about-avatar figcaption {
  position: relative;
  flex-shrink: 0;
  padding: 19px 25px 22px;
  color: #38303f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}
.about-avatar-image:focus-visible { outline-offset: -7px; }
.avatar-preview { display: block; width: 100%; padding: 0; }

/* A small greeting on hover; the same feedback accompanies keyboard focus. */
.about-avatar-image img,
.avatar-preview img,
.feature-avatar,
.identity-anchor > #selected-avatar,
.character-options > button img {
  transition: transform .36s cubic-bezier(.2, .75, .25, 1), filter .36s ease;
  transform-origin: center 80%;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .about-avatar-image:hover img,
  html:not(.motion-paused) .avatar-preview:hover img {
    transform: translateY(-5px) rotate(-2deg) scale(1.025);
    filter: drop-shadow(0 10px 8px #30241318);
  }
  html:not(.motion-paused) .identity-anchor > #selected-avatar:hover {
    transform: translateY(-5px) rotate(-2deg) scale(1.035);
    filter: drop-shadow(9px 17px 5px #30241322);
  }
  html:not(.motion-paused) .character-options > button:hover img {
    transform: translateY(-3px) rotate(-4deg) scale(1.08);
  }
  html:not(.motion-paused) .feature-avatar.left:hover {
    transform: translateY(-6px) rotate(-8deg) scale(1.03);
  }
  html:not(.motion-paused) .feature-avatar.right:hover {
    transform: translateY(-6px) rotate(8deg) scale(1.03);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .about-avatar-image:focus-visible img,
  html:not(.motion-paused) .avatar-preview:focus-visible img {
    transform: translateY(-5px) rotate(-2deg) scale(1.025);
    filter: drop-shadow(0 10px 8px #30241318);
  }
  html:not(.motion-paused) .character-options > button:focus-visible {
    transform: translateY(-3px);
  }
  html:not(.motion-paused) .character-options > button:focus-visible img {
    transform: translateY(-3px) rotate(-4deg) scale(1.08);
  }
  html:not(.motion-paused) .identity-composition:has(.character-options > button:focus-visible) #selected-avatar {
    transform: translateY(-5px) rotate(-2deg) scale(1.035);
    filter: drop-shadow(9px 17px 5px #30241322);
  }
}
.motion-paused .about-avatar-image img,
.motion-paused .avatar-preview img,
.motion-paused .feature-avatar,
.motion-paused .identity-anchor > #selected-avatar,
.motion-paused .character-options > button img { transition: none; }

@media (max-width: 1000px) {
  .edubudy-footer .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 35px 5%;
  }
  .edubudy-footer .footer-intro { grid-column: 1 / -1; }
  .footer-stores { margin-top: 18px; }
}
@media (max-width: 600px) {
  .edubudy-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .edubudy-footer .footer-top h3 { font-size: 10px; }
  .edubudy-footer .footer-top a:not(.brand) { font-size: 11px; }
  .edubudy-footer .footer-intro p,
  .edubudy-footer .footer-other-product p { font-size: 11px; }
  .edubudy-footer .footer-other-product > span,
  .edubudy-footer .footer-legal,
  .edubudy-footer .footer-legal > div,
  .edubudy-footer .footer-legal .motion-toggle { font-size: 10px; }
  .edubudy-footer .store-badge { width: 145px; gap: 8px; padding: 9px 10px; }
  .store-badge strong { font-size: 14px; }
  .about-avatar .about-avatar-image img { max-height: 350px; }
  .about-avatar figcaption { padding: 16px 18px 19px; font-size: 12px; }
  .contact-phone { margin-top: 27px; gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .about-avatar-image img,
  .avatar-preview img,
  .feature-avatar,
  .identity-anchor > #selected-avatar,
  .character-options > button img { transition: none; }
}
