/* Elina World 3.0.5 — fix RTL page displacement and fluid mobile layouts. */
html.eam-family-root,
html.eam-child-root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* fallback for older mobile browsers */
  overflow-x: clip;
}

/*
 * The signup form has a bot-trap field. Older CSS placed it at left:-10000px.
 * In RTL browsers this enlarged the horizontal scroll area by ~10,000px and
 * shifted the actual page far away from the initial viewport.
 * Keep the field in the DOM for server-side bot detection, but clip it in place.
 */
.eam-honey {
  position: fixed !important;
  top: 0 !important;
  right: auto !important;
  left: 0 !important;
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

body.eam-family-pwa,
body.eam-standalone-body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.eam-family-topbar,
.eam-family-shell,
.eam-family-shell .eam-admin,
.eam-family-shell .eam-admin-card,
.eam-family-shell .eam-public-landing,
.eam-family-shell .eam-landing-hero,
.eam-family-shell .eam-landing-entry-col,
.eam-family-shell .eam-landing-verify,
.eam-app-shell,
.eam-app,
.eam-app .eam-screen,
.eam-app .eam-panel {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.eam-family-shell *,
.eam-app-shell *,
.eam-admin * {
  box-sizing: border-box;
}

.eam-family-topbar > div,
.eam-family-shell .eam-admin-card > *,
.eam-family-shell .eam-public-landing > *,
.eam-family-shell .eam-landing-entry > *,
.eam-family-shell .eam-landing-hero > *,
.eam-app .eam-list-card > *,
.eam-app .eam-story-item > * {
  min-width: 0;
}

.eam-family-shell img,
.eam-family-shell video,
.eam-family-shell iframe,
.eam-family-shell canvas,
.eam-app img,
.eam-app video,
.eam-app iframe,
.eam-app canvas,
.eam-app svg {
  max-width: 100%;
}

.eam-family-shell .eam-landing-hero,
.eam-family-shell .eam-landing-entry,
.eam-family-shell .eam-landing-plans,
.eam-family-shell .eam-landing-roles,
.eam-family-shell .eam-landing-features {
  max-width: 100%;
}

.eam-family-shell .eam-landing-hero {
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
}

.eam-family-shell .eam-landing-verify form label {
  min-width: 0;
}

.eam-family-shell .eam-landing-verify form input,
.eam-family-shell .eam-landing-entry-col input:not([type="checkbox"]),
.eam-family-shell .eam-landing-entry-col select,
.eam-family-shell .eam-admin .eam-link,
.eam-admin .eam-link,
.eam-admin .eam-story-form input,
.eam-admin .eam-story-form select,
.eam-admin .eam-story-form textarea,
.eam-admin .eam-media-inputs input,
.eam-admin .eam-media-inputs textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.eam-admin .eam-add-form > label,
.eam-family-shell .eam-add-form > label {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 170px;
}

.eam-admin .eam-add-form > label input,
.eam-admin .eam-add-form > label select,
.eam-admin .eam-add-form > label textarea,
.eam-family-shell .eam-add-form > label input,
.eam-family-shell .eam-add-form > label select,
.eam-family-shell .eam-add-form > label textarea {
  max-width: 100%;
  min-width: 0;
}

.eam-family-shell .eam-admin-card table,
.eam-admin .eam-admin-card table {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.eam-family-shell .eam-admin-card td,
.eam-family-shell .eam-admin-card th,
.eam-admin .eam-admin-card td,
.eam-admin .eam-admin-card th {
  overflow-wrap: anywhere;
}

.eam-family-shell .eam-landing-btn,
.eam-family-shell .eam-landing-role,
.eam-family-shell .eam-landing-plan,
.eam-family-shell .eam-landing-features article,
.eam-family-shell .eam-landing-faq details,
.eam-admin .eam-admin-card,
.eam-admin .eam-child-install-card,
.eam-app .eam-list-card,
.eam-app .eam-story-reader,
.eam-app .eam-story-media-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.eam-app-shell {
  width: 100%;
}

.eam-app .eam-navigation,
.eam-app .eam-list,
.eam-app .eam-story-media,
.eam-app .eam-ludo,
.eam-app .eam-ludo-board {
  min-width: 0;
  max-width: 100%;
}

.eam-app .eam-story-item,
.eam-app .eam-list-card {
  width: 100%;
  overflow-wrap: anywhere;
}

.eam-app .eam-recipient-choice button {
  min-width: 0;
  padding-inline: 5px;
  overflow-wrap: anywhere;
}

.eam-app .eam-ludo-controls,
.eam-app .eam-ludo-control-buttons {
  flex-wrap: wrap;
  min-width: 0;
}

@media (max-width: 860px) {
  .eam-family-shell .eam-landing-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .eam-family-topbar {
    padding-inline: 12px;
    gap: 8px;
  }

  .eam-family-topbar strong {
    font-size: 16px;
  }

  .eam-family-topbar small {
    font-size: 12px;
  }

  .eam-family-topbar .eam-logout {
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 12px;
  }

  .eam-family-shell {
    width: 100%;
    margin: 12px auto;
    padding-inline: 10px;
  }

  .eam-family-shell .eam-admin-card,
  .eam-family-shell .eam-landing-entry-col,
  .eam-family-shell .eam-landing-verify {
    padding: 15px 12px;
  }

  .eam-family-shell .eam-admin .eam-admin-tabs,
  .eam-admin .eam-admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .eam-family-shell .eam-admin .eam-admin-tabs > a,
  .eam-admin .eam-admin-tabs > a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .eam-admin .eam-add-form,
  .eam-family-shell .eam-add-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .eam-admin .eam-add-form > label,
  .eam-family-shell .eam-add-form > label {
    flex: 0 0 auto;
    width: 100%;
  }

  .eam-admin .eam-add-form > label input,
  .eam-admin .eam-add-form > label select,
  .eam-admin .eam-add-form > label textarea,
  .eam-family-shell .eam-add-form > label input,
  .eam-family-shell .eam-add-form > label select,
  .eam-family-shell .eam-add-form > label textarea {
    width: 100%;
  }

  .eam-family-shell .eam-landing-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 22px 15px;
  }

  .eam-family-shell .eam-landing-entry,
  .eam-family-shell .eam-landing-plans,
  .eam-family-shell .eam-landing-roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .eam-family-shell .eam-landing-verify form {
    flex-direction: column;
    align-items: stretch;
  }

  .eam-family-shell .eam-landing-verify form label,
  .eam-family-shell .eam-landing-verify form button {
    width: 100%;
  }

  .eam-family-shell .eam-landing-btn {
    max-width: 100%;
    white-space: normal;
  }

  .eam-family-shell .eam-art-grid,
  .eam-admin .eam-media-grid,
  .eam-admin .eam-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eam-app-shell {
    padding-inline: 0;
  }

  .eam-app {
    width: 100%;
    margin-inline: 0;
    padding-inline: 11px;
  }

  .eam-app .eam-screen {
    width: 100%;
    padding-inline: 10px;
  }

  .eam-app .eam-header {
    min-width: 0;
  }

  .eam-app .eam-header > div:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .eam-app .eam-story-item {
    flex-wrap: wrap;
  }

  .eam-app .eam-story-item .eam-story-info {
    flex: 1 1 140px;
    min-width: 0;
  }

  .eam-app .eam-ludo-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .eam-family-shell .eam-landing-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .eam-family-shell .eam-landing-hero h1 {
    font-size: clamp(24px, 8vw, 29px);
  }

  .eam-family-shell .eam-landing-art {
    min-height: 185px;
    overflow: hidden;
  }

  .eam-family-shell .eam-landing-art-main {
    width: min(176px, 65vw);
    font-size: 75px;
  }

  .eam-family-shell .eam-landing-bubble {
    font-size: 11px;
  }

  .eam-family-shell .eam-art-grid,
  .eam-admin .eam-art-grid,
  .eam-admin .eam-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .eam-app .eam-navigation {
    gap: 7px;
  }

  .eam-app .eam-navigation button {
    font-size: 11px;
    padding: 10px 5px;
  }

  .eam-app .eam-wallet-purse {
    font-size: 65px;
  }

  .eam-app .eam-recipient-choice {
    gap: 5px;
  }

  .eam-app .eam-recipient-choice button {
    min-height: 79px;
    padding: 7px 3px;
  }

  .eam-app .eam-recipient-choice button span {
    font-size: 29px;
  }

  .eam-app .eam-recipient-choice button small {
    font-size: 10px;
  }
}
