/* Meyra'nın Sihirli Ormanı – game shell styles (scoped to the game container). */
@font-face { font-family: 'Baloo2'; src: url('../fonts/baloo2-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baloo2'; src: url('../fonts/baloo2-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

html.meyra-fullscreen, html.meyra-fullscreen body.meyra-fullscreen-body {
  margin: 0 !important; padding: 0 !important; width: 100%; height: 100%; overflow: hidden !important;
  background: #FFE9F3; overscroll-behavior: none; -webkit-text-size-adjust: 100%;
}
html.meyra-fullscreen body.meyra-fullscreen-body { position: fixed; inset: 0; }

.meyra-root {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  background: linear-gradient(#BFEAF6, #FCEFE6 70%, #FFE0EE);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
  font-family: 'Baloo2', 'Trebuchet MS', sans-serif; line-height: 1.2; box-sizing: border-box;
}
.meyra-root *, .meyra-root *::before, .meyra-root *::after { box-sizing: border-box; }
html.meyra-fullscreen .meyra-root { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; }

/* in-page (embedded) shortcode mode */
.meyra-embed-wrap { width: 100%; max-width: 1280px; margin: 0 auto; }
.meyra-embed-wrap .meyra-root { height: auto; aspect-ratio: 16 / 9; max-height: 88vh; border-radius: 24px; box-shadow: 0 10px 40px rgba(110, 60, 156, .25); }
.meyra-embed-wrap .meyra-open-full { display: inline-block; margin: 12px auto 0; padding: 10px 22px; border-radius: 999px; background: #FF78B7; color: #fff; text-decoration: none; font-weight: 800; }

.meyra-stage { position: absolute; inset: 0; }
.meyra-stage canvas { display: block; outline: none; }
#meyra-safe-probe { position: absolute; visibility: hidden; pointer-events: none; width: 0; height: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }

/* plain-HTML loading state shown until the engine boots */
.meyra-html-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #6E3C9C; font-size: 26px; font-weight: 800; z-index: 1; }
.meyra-html-loading img { width: min(60vw, 520px); height: auto; animation: meyra-bob 1.6s ease-in-out infinite; }
@keyframes meyra-bob { 50% { transform: translateY(-10px); } }

/* rotate-your-phone hint (portrait on touch devices) */
.meyra-rotate { position: absolute; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  background: linear-gradient(160deg, #FFB3D6, #B79CFF 60%, #8CE7E1); color: #fff; text-align: center; padding: 32px; font-size: 26px; font-weight: 800;
  text-shadow: 0 3px 0 rgba(110, 60, 156, .45); }
.meyra-rotate .meyra-phone { width: 74px; height: 128px; border: 8px solid #fff; border-radius: 18px; position: relative; animation: meyra-turn 2.2s ease-in-out infinite; box-shadow: 0 6px 0 rgba(110,60,156,.3); }
.meyra-rotate .meyra-phone::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 16px; height: 4px; margin-left: -8px; border-radius: 4px; background: #fff; }
@keyframes meyra-turn { 0%, 25% { transform: rotate(0); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@media (orientation: portrait) and (pointer: coarse) { .meyra-rotate { display: flex; } }

/* new-version banner */
.meyra-update { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  display: flex; gap: 14px; align-items: center; padding: 10px 12px 10px 22px; border-radius: 999px; background: #fff; color: #5B3A55; font-weight: 800;
  box-shadow: 0 6px 24px rgba(110, 60, 156, .3); font-size: 18px; }
.meyra-update[hidden] { display: none; }
.meyra-update button { border: 0; border-radius: 999px; padding: 10px 18px; background: #FF78B7; color: #fff; font: inherit; cursor: pointer; }
.meyra-disabled { display: flex; align-items: center; justify-content: center; min-height: 240px; border-radius: 24px; background: #FFF8E9; color: #6E3C9C; font-weight: 800; font-size: 22px; padding: 24px; text-align: center; }
