/* Общие стили окна мини-игр (переменные берутся из ../style.css) */
.mg-overlay { position: fixed; inset: 0; z-index: 30; background: rgba(40,28,10,.6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.mg-overlay.hidden { display: none; }
.mg-box { width: min(600px, 100%); background: var(--paper, #f6ecd2); border: 3px solid var(--ink, #3b2a14); border-radius: 20px; box-shadow: 5px 6px 0 rgba(0,0,0,.35); padding: 14px 16px 16px; max-height: 96vh; overflow-y: auto; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink, #3b2a14); }
.mg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mg-icon { font-size: 44px; line-height: 1; }
.mg-title { font-family: var(--hand, "Marker Felt", "Chalkboard SE", cursive); font-size: 28px; color: var(--accent, #d1432b); line-height: 1.1; }
.mg-level { font-size: 14px; opacity: .8; }
.mg-body { text-align: center; }
.mg-info { font-size: 18px; line-height: 1.4; margin: 6px 0 12px; text-align: left; }
.mg-btn { width: 100%; padding: 12px 16px; border: 3px solid var(--ink, #3b2a14); border-radius: 14px; background: var(--accent, #d1432b); color: #fff; font-family: var(--hand, "Marker Felt", "Chalkboard SE", cursive); font-size: 22px; box-shadow: 0 4px 0 var(--ink, #3b2a14); cursor: pointer; touch-action: manipulation; user-select: none; }
.mg-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink, #3b2a14); }
.mg-btn:disabled { opacity: .55; cursor: default; }
.mg-stage { position: relative; width: 100%; height: min(58vh, 420px); min-height: 260px; background: #fffaf0; border: 3px solid var(--ink, #3b2a14); border-radius: 16px; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; margin: 0 auto; }
.mg-hud { position: absolute; left: 0; right: 0; top: 0; padding: 8px 12px; display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; pointer-events: none; z-index: 2; }
.mg-result { font-size: 84px; line-height: 1.1; }
.mg-rtitle { font-family: var(--hand, "Marker Felt", "Chalkboard SE", cursive); font-size: 30px; margin: 4px 0 8px; color: var(--accent, #d1432b); }
