/* มินิเกม — ใช้สีจากธีมร้าน (--c-*) ทุกธีม รวมโหมดมืด/สว่าง */
.mg { --mg-r: var(--card-r, 18px); padding-bottom: 24px; }
.mg .card { border-radius: var(--mg-r); }
.mg h1, .mg h2, .mg h3 { color: var(--c-heading, var(--c-text)) !important; }

/* ---------- หน้ารวม ---------- */
.mg-hero { position: relative; overflow: hidden; display: flex; flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px 32px; margin-bottom: 20px;
  background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--c-main) 26%, transparent), transparent 70%), radial-gradient(500px 260px at 0% 100%, color-mix(in srgb, var(--c-sub) 20%, transparent), transparent 70%), var(--c-card_bg) !important; }
.mg-hero-txt { flex: 1 1 320px; position: relative; z-index: 1; }
.mg-kick { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--c-main) !important; background: color-mix(in srgb, var(--c-main) 12%, transparent); }
.mg-kick i { color: inherit !important; }
.mg-hero h1 { margin: 12px 0 6px; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.mg-hero p { margin: 0; color: var(--c-muted) !important; }
.mg-bal { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--c-text) 5%, transparent); border: 1px solid var(--c-card_border); }
.mg-bal small { color: var(--c-muted) !important; font-size: .78rem; }
.mg-bal b { font-size: 1.5rem; color: var(--c-price, var(--c-main)) !important; line-height: 1.1; }
.mg-bal a { font-size: .82rem; font-weight: 600; color: var(--c-main) !important; }
.mg-hero-deco { position: absolute; right: 22%; top: 50%; transform: translateY(-50%); display: flex; gap: 18px; opacity: .1; pointer-events: none; }
.mg-hero-deco i { font-size: 4.4rem; color: var(--c-main) !important; animation: mg-float 4s ease-in-out infinite; }
.mg-hero-deco i:nth-child(2) { animation-delay: -1s; } .mg-hero-deco i:nth-child(3) { animation-delay: -2s; } .mg-hero-deco i:nth-child(4) { animation-delay: -3s; }
@keyframes mg-float { 50% { transform: translateY(-10px) rotate(6deg); } }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mg-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.mg-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--c-main) 70%, transparent); }
.mg-cover { position: relative; aspect-ratio: 2 / 1; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--c-main), color-mix(in srgb, var(--c-main) 50%, var(--c-sub))); }
.mg-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mg-card:hover .mg-cover img { transform: scale(1.05); }
.mg-cover > i { font-size: 3.6rem; color: rgba(255,255,255,.92) !important; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.mg-t-box .mg-cover { background: linear-gradient(135deg, #f43f5e, #f59e0b); }
.mg-t-scratch .mg-cover { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.mg-t-slot .mg-cover { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.mg-type { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: rgba(0,0,0,.55); color: #fff !important; backdrop-filter: blur(6px); }
.mg-type i { color: inherit !important; }
.mg-card-b { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.mg-card-b b { font-size: 1.05rem; color: var(--c-heading, var(--c-text)) !important; }
.mg-card-b small { color: var(--c-muted) !important; font-size: .84rem; flex: 1; }
.mg-card-f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.mg-price { font-weight: 700; color: var(--c-price, var(--c-main)) !important; }
.mg-go { font-size: .85rem; font-weight: 700; color: var(--c-main) !important; }
.mg-go i { color: inherit !important; transition: transform .2s; } .mg-card:hover .mg-go i { transform: translateX(4px); }
.mg-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; }
.mg-empty i { font-size: 2.4rem; color: var(--c-muted) !important; margin-bottom: 6px; }
.mg-empty span { color: var(--c-muted) !important; font-size: .9rem; }
.mg-feed, .mg-side { padding: 18px 20px; }
.mg-feed h3, .mg-side h3 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.mg-feed h3 i, .mg-side h3 i { color: var(--c-main) !important; margin-right: 6px; }
.mg-feed-l { display: grid; gap: 8px; }
.mg-feed .mg-feed-l { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mg-feed-l > div { font-size: .86rem; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c-text) 4%, transparent); color: var(--c-text) !important; }
.mg-feed-l em { font-style: normal; font-weight: 700; color: var(--c-main) !important; }
.mg-feed-l small { display: block; font-size: .74rem; color: var(--c-muted) !important; }

/* ---------- หน้าเล่น ---------- */
.mg-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: .9rem; font-weight: 600; color: var(--c-muted) !important; text-decoration: none; }
.mg-back i { color: inherit !important; }
.mg-play-head { display: flex; flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 16px; }
.mg-play-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, var(--c-main), color-mix(in srgb, var(--c-main) 50%, var(--c-sub))); box-shadow: 0 10px 20px -10px var(--c-main); }
.mg-play-ic.mg-t-box { background: linear-gradient(135deg, #f43f5e, #f59e0b); } .mg-play-ic.mg-t-scratch { background: linear-gradient(135deg, #0ea5e9, #6366f1); } .mg-play-ic.mg-t-slot { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.mg-play-ic i { color: #fff !important; }
.mg-play-ic.mg-t-wheel i, .mg-play-ic:not([class*="mg-t-"]) i { color: var(--c-btn_text, #fff) !important; }
.mg-play-head h1 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.mg-play-head p { margin: 2px 0 0; color: var(--c-muted) !important; font-size: .9rem; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; font-size: .84rem; background: color-mix(in srgb, var(--c-text) 5%, transparent); border: 1px solid var(--c-card_border); color: var(--c-text) !important; }
.mg-chip i { color: var(--c-main) !important; } .mg-chip b { color: var(--c-price, var(--c-main)) !important; }
.mg-stage { position: relative; padding: 30px 20px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  background: radial-gradient(500px 360px at 50% 40%, color-mix(in srgb, var(--c-main) 14%, transparent), transparent 70%), var(--c-card_bg) !important; }
.mg-out { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: var(--c-danger, #e11d48); color: #fff !important; }
.mg-btn { min-width: 240px; padding: 13px 26px; border-radius: 14px; font-weight: 700; font-size: 1.02rem; box-shadow: 0 14px 26px -14px var(--c-main); }
.mg-btn i, .mg-btn-ghost i { color: inherit !important; margin-right: 6px; }
.mg-btn-ghost { padding: 12px 22px; border-radius: 14px; font-weight: 600; border: 1px solid var(--c-card_border) !important; color: var(--c-text) !important; background: transparent; }
.mg-hint { text-align: center; color: var(--c-muted) !important; margin: 0 0 18px; transition: opacity .3s; }
.mg-hint i { color: var(--c-main) !important; }
.mg-plist { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.mg-p { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--c-text) 3.5%, transparent); }
.mg-p.is-out { opacity: .5; }
.mg-pimg { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--c-main) 12%, transparent); }
.mg-pimg img { width: 100%; height: 100%; object-fit: cover; }
.mg-pimg i { color: var(--c-main) !important; font-size: 1.2rem; }
.mg-pn { flex: 1; min-width: 0; } .mg-pn b { display: block; font-size: .9rem; color: var(--c-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-pn small { font-size: .76rem; color: var(--c-muted) !important; }
.mg-rate { font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c-main) 14%, transparent); color: var(--c-main) !important; }

/* ===== วงล้อ ===== */
.mgw { --mgw: min(460px, 82vw); position: relative; width: var(--mgw); height: var(--mgw); margin: 0 auto; }
.mgw::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, #fde68a, #b45309, #fde68a, #92400e, #fde68a, #b45309, #fde68a); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6), inset 0 0 0 3px rgba(255,255,255,.35); }
.mgw::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(0,0,0,.25); pointer-events: none; }
.mgw-svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
.mgw-rim { position: absolute; inset: -14px; border-radius: 50%; pointer-events: none; z-index: 2; }
.mgw-rim i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff7d6; box-shadow: 0 0 8px 2px #fde047; }
.mgw-rim i.b { animation: mg-blink 1s steps(1) infinite; } .mgw-rim i.a { animation: mg-blink 1s steps(1) infinite .5s; }
.mgw.is-spin .mgw-rim i { animation-duration: .25s; }
@keyframes mg-blink { 50% { background: #92400e; box-shadow: none; } }
.mgw-pin { position: absolute; left: 50%; top: -30px; width: 44px; height: 56px; margin-left: -22px; z-index: 4; transform-origin: 50% 20%;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 56'%3E%3Cpath d='M22 54 L4 18 A18 18 0 1 1 40 18Z' fill='%23dc2626' stroke='%23fff' stroke-width='3'/%3E%3Ccircle cx='22' cy='18' r='7' fill='%23fff'/%3E%3Ccircle cx='22' cy='18' r='3.5' fill='%23fbbf24'/%3E%3C/svg%3E");
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.mgw-pin.hit { animation: mg-pin .14s ease-out; }
@keyframes mg-pin { 40% { transform: rotate(-16deg); } }
.mgw-hub { position: absolute; left: 50%; top: 50%; z-index: 3; width: 25%; height: 25%; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c-main) 60%, #fff), var(--c-main) 70%); color: var(--c-btn_text, #fff) !important; box-shadow: 0 10px 24px -6px rgba(0,0,0,.5), inset 0 -6px 12px rgba(0,0,0,.2); transition: transform .15s; }
.mgw-hub span { font-weight: 800; font-size: clamp(.95rem, 3vw, 1.3rem); color: var(--c-btn_text, #fff) !important; }
.mgw-hub small { font-size: clamp(.62rem, 1.8vw, .78rem); color: rgba(255,255,255,.85) !important; }
.mgw-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
.mgw-hub:disabled { cursor: default; filter: saturate(.7); }
.mgw:not(.is-spin):not(.is-wait) .mgw-hub:not(:disabled) { animation: mg-pulse 1.6s ease-in-out infinite; }
@keyframes mg-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-main) 25%, transparent), 0 10px 24px -6px rgba(0,0,0,.5); } }
.mgw.is-wait #mgwRot { animation: mg-wait 1s linear infinite; }
@keyframes mg-wait { to { transform: rotate(360deg); } }

/* ===== กล่องของขวัญ ===== */
.mgb { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); justify-content: center; gap: 28px 26px; padding-top: 30px; }
.mgb-box { position: relative; aspect-ratio: 1; border: 0; background: none; padding: 0; cursor: pointer; transition: transform .25s, opacity .3s, filter .3s; --b1: #ef4444; --b2: #b91c1c; --rb: #fde047; }
.mgb-box.c1 { --b1: #22c55e; --b2: #15803d; --rb: #fef3c7; } .mgb-box.c2 { --b1: #3b82f6; --b2: #1d4ed8; --rb: #fda4af; }
.mgb-box:hover:not(.is-open) { transform: translateY(-6px) rotate(-2deg); }
.mgb-body { position: absolute; left: 8%; right: 8%; bottom: 0; height: 64%; border-radius: 8px; background: linear-gradient(90deg, transparent 43%, var(--rb) 43% 57%, transparent 57%), linear-gradient(160deg, var(--b1), var(--b2)); box-shadow: inset 0 -10px 18px rgba(0,0,0,.18), 0 14px 22px -12px rgba(0,0,0,.5); }
.mgb-lid { position: absolute; left: 2%; right: 2%; top: 22%; height: 20%; border-radius: 8px; z-index: 2; background: linear-gradient(90deg, transparent 43%, var(--rb) 43% 57%, transparent 57%), linear-gradient(170deg, color-mix(in srgb, var(--b1) 80%, #fff), var(--b1)); box-shadow: 0 6px 10px -4px rgba(0,0,0,.35); transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .6s; }
.mgb-bow { position: absolute; left: 50%; top: 4%; width: 46%; height: 22%; margin-left: -23%; z-index: 3; transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .6s; }
.mgb-bow::before, .mgb-bow::after { content: ''; position: absolute; bottom: 0; width: 50%; height: 100%; border: 6px solid var(--rb); border-radius: 50% 50% 10% 50%; }
.mgb-bow::before { left: 0; transform: rotate(-20deg); } .mgb-bow::after { right: 0; transform: rotate(20deg) scaleX(-1); }
.mgb-prize { position: absolute; left: 10%; right: 10%; bottom: 20%; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transform: translateY(20px) scale(.6); transition: transform .6s cubic-bezier(.3,1.5,.5,1) .15s, opacity .4s .15s; }
.mgb-prize img, .mgb-prize i { width: 64%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; font-size: 2.6rem; display: grid; place-items: center; color: var(--c-main) !important; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); background: var(--c-card_bg); }
.mgb-prize span { font-size: .78rem; font-weight: 700; text-align: center; padding: 3px 8px; border-radius: 99px; background: var(--c-card_bg); color: var(--c-text) !important; box-shadow: 0 4px 10px rgba(0,0,0,.2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgb-box.is-shake { animation: mg-shake .14s linear infinite; }
@keyframes mg-shake { 25% { transform: rotate(-5deg) translateY(-2px); } 75% { transform: rotate(5deg); } }
.mgb-box.is-open .mgb-lid { transform: translateY(-70%) rotate(-24deg) translateX(-30%); opacity: 0; }
.mgb-box.is-open .mgb-bow { transform: translateY(-90%) rotate(30deg); opacity: 0; }
.mgb-box.is-open .mgb-prize { opacity: 1; transform: translateY(-46%) scale(1); }
.mgb-box.is-pick.is-open::after { content: ''; position: absolute; inset: -30%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c-sub) 55%, transparent), transparent 65%); animation: mg-glow 1.4s ease-in-out infinite; }
@keyframes mg-glow { 50% { transform: scale(1.12); opacity: .7; } }
.mgb-box.is-dim:not(.is-open) { opacity: .45; filter: grayscale(.4); }
.mgb-box.is-other { opacity: .55; filter: grayscale(.5); }

/* ===== บัตรขูด ===== */
.mgs { position: relative; width: min(460px, 100%); aspect-ratio: 16 / 10; margin: 0 auto; border-radius: 20px; overflow: hidden; padding: 0;
  background: linear-gradient(135deg, #fef3c7, #fde68a 40%, #fbbf24); box-shadow: 0 30px 50px -28px rgba(0,0,0,.6), inset 0 0 0 6px rgba(255,255,255,.5); }
.mgs::before { content: 'SCRATCH & WIN'; position: absolute; left: 0; right: 0; top: 10px; text-align: center; font-weight: 900; letter-spacing: .3em; font-size: .72rem; color: rgba(120,53,15,.5); z-index: 1; }
.mgs-under { position: absolute; inset: 14% 8% 10%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border-radius: 14px; background: rgba(255,255,255,.7); border: 2px dashed rgba(146,64,14,.35); }
.mgs-under img, .mgs-under > i { width: 34%; aspect-ratio: 1; object-fit: contain; font-size: 3rem; display: grid; place-items: center; color: #b45309 !important; }
.mgs-under b { font-size: 1.15rem; color: #78350f !important; }
.mgs-under small { color: #92400e !important; font-weight: 600; }
.mgs-under.is-lose b { color: #57534e !important; }
.mgs canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: crosshair; touch-action: none; transition: opacity .5s; border-radius: 20px; }
.mgs-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 20px; box-shadow: inset 0 0 0 6px rgba(255,255,255,.45); }

/* ===== สล็อต ===== */
.mgsl { --cell: clamp(78px, 17vw, 120px); position: relative; width: max-content; max-width: 100%; margin: 0 auto; padding: 46px 24px 24px; border-radius: 26px;
  background: linear-gradient(180deg, #dc2626, #7f1d1d); box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), inset 0 2px 0 rgba(255,255,255,.3), inset 0 0 0 6px #fbbf24; }
.mgsl-top { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-weight: 900; letter-spacing: .25em; font-size: .9rem; color: #fde047 !important; text-shadow: 0 0 10px #f59e0b; }
.mgsl.is-win .mgsl-top { animation: mg-flash .3s steps(2) infinite; }
@keyframes mg-flash { 50% { color: #fff !important; } }
.mgsl-win { position: relative; display: flex; gap: 10px; padding: 10px; border-radius: 16px; background: #1c1917; box-shadow: inset 0 6px 14px rgba(0,0,0,.6); }
.mgsl-reel { width: var(--cell); height: var(--cell); overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #d6d3d1, #fff 30%, #fff 70%, #d6d3d1); }
.mgsl-reel.hit { animation: mg-bump .3s; }
@keyframes mg-bump { 40% { transform: translateY(4px); } }
.mgsl-cell { height: var(--cell); display: grid; place-items: center; padding: 12%; }
.mgsl-cell img { width: 100%; height: 100%; object-fit: contain; }
.mgsl-cell i { font-size: calc(var(--cell) * .45); color: #7c3aed !important; }
.mgsl-emo { font-size: calc(var(--cell) * .5); line-height: 1; }
.mgsl.is-spin .mgsl-strip { filter: blur(1.5px); }
.mgsl-line { position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(239,68,68,.6); }
.mgsl.is-win .mgsl-reel { box-shadow: 0 0 0 3px #fde047, 0 0 20px #fde047; }
.mgsl-lights { position: absolute; inset: 0; border-radius: 26px; pointer-events: none; background: radial-gradient(circle, #fde047 3px, transparent 4px) 0 0 / 22px 22px; -webkit-mask: linear-gradient(#000 0 0) top / 100% 14px no-repeat, linear-gradient(#000 0 0) bottom / 100% 14px no-repeat; mask: linear-gradient(#000 0 0) top / 100% 14px no-repeat, linear-gradient(#000 0 0) bottom / 100% 14px no-repeat; animation: mg-run 1s linear infinite; opacity: .9; }
@keyframes mg-run { to { background-position: 22px 0; } }

/* ===== ผลรางวัล ===== */
.mg-res { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 6, 20, .66); backdrop-filter: blur(4px); }
.mg-res.is-open { display: flex; animation: mg-in .2s ease; }
.mg-res canvas { position: fixed; inset: 0; pointer-events: none; }
.mg-res-box { position: relative; width: min(400px, 100%); padding: 30px 24px 22px; text-align: center; border-radius: 24px; background: var(--c-card_bg); border: 1px solid var(--c-card_border); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: mg-pop .45s cubic-bezier(.2,1.4,.4,1); }
.mg-res-img { width: 120px; height: 120px; margin: -86px auto 10px; border-radius: 28px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--c-main), var(--c-sub)); box-shadow: 0 20px 40px -14px var(--c-main); border: 4px solid var(--c-card_bg); }
.mg-res-img img { width: 100%; height: 100%; object-fit: cover; }
.mg-res-img i { font-size: 3rem; color: #fff !important; }
.mg-res.is-lose .mg-res-img { background: linear-gradient(135deg, #78716c, #44403c); box-shadow: none; }
.mg-res-box h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px; }
.mg-res-box p { color: var(--c-text) !important; margin: 0 0 14px; }
.mg-res-box p b { font-size: 1.15rem; color: var(--c-main) !important; }
.mg-res-box p small { color: var(--c-muted) !important; }
.mg-res-code { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; margin-bottom: 14px; border-radius: 12px; border: 1px dashed var(--c-main); background: color-mix(in srgb, var(--c-main) 8%, transparent); text-align: left; }
.mg-res-code code { flex: 1; min-width: 0; word-break: break-all; white-space: pre-wrap; font-size: .9rem; color: var(--c-text) !important; }
.mg-res-code button { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 7px 12px; font-size: .8rem; font-weight: 600; background: var(--c-main); color: var(--c-btn_text, #fff); }
.mg-res-code button i { color: inherit !important; }
.mg-res-btns { display: flex; gap: 10px; justify-content: center; }
.mg-res-btns .btn { flex: 1; border-radius: 12px; font-weight: 700; padding: 11px; }
@keyframes mg-in { from { opacity: 0; } }
@keyframes mg-pop { from { transform: scale(.7); opacity: 0; } }

@media (max-width: 575px) {
  .mg-hero { padding: 24px 20px; } .mg-hero-deco { display: none; }
  .mgb { grid-template-columns: repeat(3, 1fr); gap: 22px 12px; }
  .mg-stage { padding: 30px 12px 22px; min-height: 0; }
  .mgsl { padding: 42px 12px 16px; } .mgsl-win { gap: 6px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) { .mgw-rim i, .mg-hero-deco i, .mgsl-lights { animation: none !important; } }
