/* Afterlife Minigames (#minigames, public-site/minigames.js). Free games for every player.
   Look: the casino's display type (Impact) and gold, on a cold night-field palette (olive, teal, lime). */

/* Sidebar tone */
.site-nav a.active[data-tone="lime"] { border-left-color: #96ff5a; background: linear-gradient(90deg, rgba(150,255,90,.14), rgba(150,255,90,.03)); box-shadow: inset 0 0 20px rgba(150,255,90,.07), 0 0 12px rgba(150,255,90,.12); }
@media (max-width: 900px) { .site-nav a.active[data-tone="lime"] { border-left-color: #96ff5a !important; background: linear-gradient(90deg, rgba(150,255,90,.14), rgba(150,255,90,.03)) !important; } }

/* ── Hero ── */
.mg-hero { background: radial-gradient(ellipse at 76% 45%, #12291f 0%, #08130e 40%, #050706 74%); }
.mg-hero .ff-hero-overlay { background: linear-gradient(to right, rgba(5,6,5,.94) 0%, rgba(5,6,5,.62) 36%, rgba(5,6,5,0) 64%), linear-gradient(to top, #080808 0%, transparent 35%); }
.mg-hero .mg-h { background: linear-gradient(95deg, #7dff9a, #d6ff6a 40%, #fff3b0 60%, #9dff6e); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mgShine 6s linear infinite; }
@keyframes mgShine { to { background-position: -200% 0; } }
.mg-hero-art { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.mg-hero-scene { position: absolute; inset: 0; background: url(/assets/minigames/hero.webp?v=1) right center / cover no-repeat; animation: mgHeroPush 26s ease-in-out infinite alternate; transform-origin: 70% 60%; }
@keyframes mgHeroPush { from { transform: scale(1); } to { transform: scale(1.045); } }
/* the lantern's flicker over the render */
.mg-hero-flicker { position: absolute; right: 28%; top: 30%; width: 34%; height: 70%; background: radial-gradient(ellipse at 40% 50%, rgba(255,170,80,.16), transparent 60%); mix-blend-mode: screen; animation: mgFlicker 3.2s steps(1) infinite; }
@keyframes mgFlicker { 0%, 100% { opacity: .9; } 13% { opacity: .65; } 27% { opacity: 1; } 41% { opacity: .78; } 55% { opacity: .95; } 72% { opacity: .7; } 86% { opacity: 1; } }
@media (max-width: 900px) { .mg-hero-scene { background-position: 72% center; opacity: .55; } }.mg-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mg-earn, .mg-wallet { display: grid; gap: 3px; padding: 12px 18px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(150,255,90,.22); backdrop-filter: blur(6px); min-width: 210px; }
.mg-earn small, .mg-wallet small { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.mg-earn strong, .mg-wallet b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 32px; line-height: 1.05; color: #d6ff6a; letter-spacing: .5px; }
.mg-wallet b { color: #fff; font-size: 26px; }
.mg-earn i { display: block; height: 6px; margin-top: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.mg-earn i u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4bd36a, #d6ff6a); box-shadow: 0 0 12px rgba(214,255,106,.5); transition: width .6s ease; }
.mg-earn em, .mg-wallet em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.55); }

/* ── Shared ── */
.mg-root { display: grid; gap: 16px; margin-top: 18px; }
.mg-loading { display: flex; align-items: center; gap: 12px; padding: 40px; color: rgba(255,255,255,.6); }
.mg-loading span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(150,255,90,.25); border-top-color: #96ff5a; animation: mgRot .8s linear infinite; }
@keyframes mgRot { to { transform: rotate(360deg); } }
.mg-door { padding: 34px; border-radius: 14px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(150,255,90,.10), transparent 60%), var(--panel, #0e0e10); border: 1px solid rgba(150,255,90,.2); }
.mg-door h3 { margin: 0 0 6px; font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: 1px; color: #fff; }
.mg-door p { margin: 0 0 18px; color: rgba(255,255,255,.6); }
.mg-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px !important; border: 0; border-radius: 11px; cursor: pointer; text-decoration: none; font-family: Impact, "Arial Black", sans-serif; font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase; color: #0d1a06;
    background: linear-gradient(180deg, #e6ff8a, #9dff5a 55%, #5fd13c); box-shadow: 0 10px 26px rgba(120,255,90,.25), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .12s ease, filter .12s ease, box-shadow .12s ease; }
.mg-cta:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 30px rgba(120,255,90,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.mg-cta:active:not(:disabled) { transform: translateY(1px); }
.mg-cta:disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.55); box-shadow: none; }
.mg-ghost { height: 44px; padding: 0 18px !important; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: rgba(255,255,255,.85); font-weight: 800; letter-spacing: .4px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.mg-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.mg-ghost:disabled { opacity: .4; cursor: not-allowed; }
.mg-howto { margin: 0 0 14px; color: rgba(255,255,255,.78); line-height: 1.55; font-size: 15px; }
.mg-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; color: rgba(255,255,255,.7); font-size: 14px; }
.mg-list li::before { content: "▸"; color: rgb(var(--mg, 150,255,90)); margin-right: 8px; }
.mg-list b { color: #fff; }
.mg-left { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.5); }
.mg-keys { margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.42); line-height: 1.5; }
.mg-fine { margin: 0; font-size: 12px; color: rgba(255,255,255,.4); text-align: center; }
.mg-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 20px; margin-bottom: 14px; border-radius: 12px; animation: mgIn .45s cubic-bezier(.2,.9,.3,1.3); }
.mg-result b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 28px; letter-spacing: .5px; color: #fff; }
.mg-result span { font-weight: 800; color: rgba(255,255,255,.75); }
.mg-result.win { background: linear-gradient(90deg, rgba(120,255,110,.18), rgba(120,255,110,.03)); border: 1px solid rgba(120,255,110,.35); }
.mg-result.win span { color: #c9ff8a; }
.mg-result.lose { background: linear-gradient(90deg, rgba(255,90,80,.16), rgba(255,90,80,.03)); border: 1px solid rgba(255,90,80,.3); }
@keyframes mgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.mg-pop { position: absolute; left: 50%; top: 42%; z-index: 30; transform: translate(-50%, -50%); pointer-events: none; font-family: Impact, "Arial Black", sans-serif; font-size: 44px; letter-spacing: 1px; color: #d6ff6a; text-shadow: 0 4px 18px rgba(0,0,0,.8), 0 0 24px rgba(160,255,90,.55); animation: mgPop 1.9s ease-out forwards; white-space: nowrap; }
.mg-spot .mg-pop { font-size: 24px; top: 30%; }
@keyframes mgPop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -120%) scale(1); } }

/* ── Lobby ── */
.mg-lobby { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.mg-tile { --mg: 150,255,90; grid-column: span 2; display: grid; grid-template-rows: 190px auto; padding: 0 !important; height: auto; overflow: hidden; border-radius: 14px; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer; color: #fff;
    border: 1px solid rgba(var(--mg), .22); background: linear-gradient(180deg, #111214, #0a0a0c); box-shadow: 0 14px 40px rgba(0,0,0,.45); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.mg-tile.wide { grid-column: span 3; grid-template-rows: 230px auto; }
.mg-tile:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(var(--mg), .55); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 30px rgba(var(--mg), .14); }
.mg-tile:disabled { cursor: default; }
.mg-tile.spent .mg-tile-art { filter: grayscale(.7) brightness(.6); }
.mg-tile-art { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 62%, rgba(var(--mg), .26), transparent 66%), linear-gradient(180deg, #121417, #08090a); border-bottom: 1px solid rgba(var(--mg), .18); }
.mg-tile-art > * { transition: transform .35s ease; }
.mg-tile-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.mg-tile-body b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .5px; }
.mg-tile-body small { color: rgba(255,255,255,.62); line-height: 1.45; font-size: 13.5px; }
.mg-tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.mg-tile-foot em { font-style: normal; font-size: 12px; font-weight: 800; color: rgb(var(--mg)); }
.mg-tile-foot em.out { color: rgba(255,255,255,.4); }
.mg-tile-foot i { font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(var(--mg), .12); color: #fff; white-space: nowrap; }
.mg-daily { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 900; letter-spacing: 1.2px; color: #1a0b00; background: rgb(var(--mg)); box-shadow: 0 4px 14px rgba(var(--mg), .4); }
@media (max-width: 1000px) { .mg-lobby { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mg-tile, .mg-tile.wide { grid-column: span 1; grid-template-rows: 180px auto; } }
@media (max-width: 560px) { .mg-lobby { grid-template-columns: 1fr; } }
.mg-lobby.locked .mg-tile { opacity: .7; }

/* Tile art: 3D renders (scripts/minigame-art) with a slow push-in and a light sweep on hover */
.mg-tile-art .mg-art, .mg-intro-art .mg-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.mg-tile:hover .mg-tile-art .mg-art { transform: scale(1.09); filter: brightness(1.08) saturate(1.06); }
.mg-tile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(8,8,10,.75)); pointer-events: none; }
.mg-sheen { position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.13) 48%, transparent 62%); background-size: 260% 100%; background-position: 160% 0; pointer-events: none; }
.mg-tile:hover .mg-sheen { animation: mgSheen 1.1s ease forwards; }
@keyframes mgSheen { to { background-position: -60% 0; } }
.mg-tile-art .mg-daily { z-index: 2; }@media (prefers-reduced-motion: reduce) { .mg-tile-art *, .mg-hero-art *, .mg-hero .mg-h { animation: none !important; transition: none !important; } }

/* Under the lobby */
.mg-under { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .mg-under { grid-template-columns: 1fr; } }
.mg-board, .mg-recent { padding: 16px 18px; border-radius: 14px; background: var(--panel, #0e0e10); border: 1px solid rgba(255,255,255,.08); }
.mg-board h3, .mg-recent h3 { margin: 0 0 10px; font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .5px; color: #fff; }
.mg-board ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.mg-board li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.mg-board li span { font-weight: 900; color: rgba(255,255,255,.45); }
.mg-board li.top span { color: #ffd15e; }
.mg-board li em { font-style: normal; font-weight: 900; color: #9be7ff; }
.mg-board p, .mg-recent p { margin: 0; color: rgba(255,255,255,.5); font-size: 14px; }
.mg-recent > div { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.03); margin-bottom: 4px; font-size: 14px; }
.mg-recent > div b { color: rgba(255,255,255,.45); } .mg-recent > div.win b { color: #b5ff7a; }

/* ── Game table ── */
.mg-table { --mg: 150,255,90; display: grid; gap: 16px; padding: 18px 22px 22px; border-radius: 16px; border: 1px solid rgba(var(--mg), .3); background: radial-gradient(ellipse at 50% 0%, rgba(var(--mg), .10), transparent 55%), var(--panel, #0e0e10); box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.mg-table-top { display: flex; align-items: center; gap: 16px; }
.mg-table-top > div { flex: 1; min-width: 0; }
.mg-table-top h2 { margin: 0; font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 32px; letter-spacing: 1px; color: #fff; }
.mg-table-top small { color: rgba(255,255,255,.55); }
.mg-back { height: 40px; padding: 0 14px !important; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); color: #fff; font-weight: 800; cursor: pointer; white-space: nowrap; }
.mg-mute { width: 40px; height: 40px; padding: 0 !important; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); font-size: 17px; cursor: pointer; }
.mg-game { position: relative; }
.mg-side { display: grid; align-content: start; gap: 12px; }
.mg-stat { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.07); }
.mg-stat > small { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.mg-stat > b { font-size: 18px; font-weight: 900; color: #fff; }
.mg-stat.big > b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 36px; letter-spacing: .5px; color: rgb(var(--mg)); text-shadow: 0 0 22px rgba(var(--mg), .35); }
.mg-bar { display: block; height: 9px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.mg-bar u { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8de36b, #e6ff8a); transition: width .4s ease; }
.mg-bar u.low { background: linear-gradient(90deg, #ff6a4a, #ffb04a); }
.mg-cv-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.5); }
.mg-cv-wrap canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.mg-intro-art { display: grid; place-items: center; min-height: 220px; border-radius: 14px; background: radial-gradient(ellipse at 50% 60%, rgba(var(--mg), .22), transparent 66%), linear-gradient(180deg, #121417, #08090a); border: 1px solid rgba(var(--mg), .16); overflow: hidden; position: relative; }
.mg-lock-pick, .mg-loot-intro > div:last-child, .mg-shot-intro > div:last-child, .mg-radio-intro > div:last-child, .mg-gear-intro > div:last-child { min-width: 0; }
.mg-loot-intro, .mg-shot-intro, .mg-radio-intro, .mg-gear-intro { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 22px; align-items: center; }
@media (max-width: 760px) { .mg-loot-intro, .mg-shot-intro, .mg-radio-intro, .mg-gear-intro { grid-template-columns: 1fr; } .mg-intro-art { min-height: 180px; } }

/* ── Lockpick ── */
.mg-locks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .mg-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mg-lockcard { display: grid; justify-items: center; gap: 6px; padding: 18px 12px 16px !important; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, #15161a, #0b0b0d); color: #fff; cursor: pointer; text-transform: none; letter-spacing: normal; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.mg-lockcard:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(255,181,43,.55); box-shadow: 0 16px 34px rgba(0,0,0,.5), 0 0 24px rgba(255,181,43,.15); }
.mg-lockcard:disabled { opacity: .45; cursor: not-allowed; }
.mg-lockcard b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .4px; }
.mg-lockcard strong { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 28px; color: #ffd15e; }
.mg-lockcard small { color: rgba(255,255,255,.5); font-weight: 700; }
.lk-stars { color: #ffb52b; letter-spacing: 2px; font-size: 13px; } .lk-stars em { font-style: normal; color: rgba(255,255,255,.15); }
.lk-art { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 6px; position: relative; box-shadow: 0 10px 22px rgba(0,0,0,.6); }
.lk-art::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff6d8, #d9b25a 32%, #8a6420 75%, #3d2a08); }
.lk-rusty .lk-art { background: radial-gradient(circle at 35% 30%, #b07a3e, #5a3414 65%, #2c1607); border-radius: 18px; }
.lk-gate .lk-art { background: radial-gradient(circle at 35% 30%, #aab2b9, #3b4044 65%, #1a1d20); border-radius: 18px; }
.lk-locker .lk-art { background: radial-gradient(circle at 35% 30%, #8f9c74, #323b23 65%, #161b0f); }
.lk-vault .lk-art { background: radial-gradient(circle at 35% 30%, #fff, #9aa1aa 50%, #2c3038); }
.mg-lock-stage, .mg-loot-stage, .mg-shot-stage, .mg-gear-stage, .mg-radio-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .mg-lock-stage, .mg-loot-stage, .mg-shot-stage, .mg-gear-stage, .mg-radio-stage { grid-template-columns: 1fr; } }
.mg-lock-angle { position: absolute; left: 14px; top: 12px; padding: 5px 10px; border-radius: 7px; font: 800 13px ui-monospace, monospace; letter-spacing: 1px; color: #ffd15e; background: rgba(0,0,0,.55); border: 1px solid rgba(255,209,94,.25); }
.mg-picks { display: flex; gap: 8px; }
.mg-picks i { width: 38px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f4f8fb, #8d97a0 62%, #2e2116 63%); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.mg-picks i.gone { opacity: .15; filter: grayscale(1); }
.mg-tries { display: grid; gap: 4px; }
.mg-tries span { display: flex; justify-content: space-between; gap: 8px; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.04); font-size: 13px; }
.mg-tries span b { font-family: ui-monospace, monospace; color: #fff; } .mg-tries span em { font-style: normal; color: rgba(255,255,255,.55); }
.mg-tries span.warm em { color: #ffb04a; } .mg-tries span.hot em { color: #ffd15e; font-weight: 800; }
.mg-tries p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); }

/* ── Loot Run ── */
.mg-house { position: relative; display: grid; gap: 0; padding: 0 14px 14px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #0d100d, #070807); border: 1px solid rgba(120,220,120,.16); user-select: none; }
.mg-house.shake { animation: mgShake .5s; }
@keyframes mgShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.mg-roof { height: 64px; margin: 0 -14px; background: linear-gradient(162deg, transparent 49%, #5a3a24 49.5%, #3a2414 56%, transparent 56.5%) left/50% 100% no-repeat, linear-gradient(198deg, transparent 49%, #5a3a24 49.5%, #3a2414 56%, transparent 56.5%) right/50% 100% no-repeat; }
.mg-floor { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 12px 10px 18px; margin: 0 -14px; border-top: 6px solid #2a1c10;
    background: linear-gradient(180deg, rgba(0,0,0,0) 78%, rgba(0,0,0,.35) 84%, transparent 84%), repeating-linear-gradient(90deg, #4a3220 0 58px, #3e2a1a 58px 60px) bottom / 100% 16% no-repeat, repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 26px), linear-gradient(180deg, #2c2a22, #1e1c17 84%); }
.mg-floor-tag { display: grid; align-content: center; gap: 2px; }
.mg-floor-tag b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .4px; color: #e7f3e2; }
.mg-floor-tag em { font-style: normal; font-size: 12px; color: rgba(255,255,255,.5); }
.mg-floor-tag .risk { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 900; color: #b8f5a0; background: rgba(120,220,120,.12); }
.mg-floor-tag .risk.mid { color: #ffd07a; background: rgba(255,180,60,.14); } .mg-floor-tag .risk.hi { color: #ff9a8a; background: rgba(255,80,60,.16); }
.mg-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mg-spot { position: relative; display: grid; justify-items: center; align-content: end; gap: 2px; min-height: 140px; padding: 8px 6px 10px !important; height: auto; border-radius: 10px; border: 1px solid rgba(255,230,190,.06); background: radial-gradient(ellipse at 50% 85%, rgba(255,200,130,.08), transparent 70%), rgba(0,0,0,.18); color: #cfe0c8; cursor: pointer; text-transform: none; letter-spacing: normal; transition: border-color .15s ease, background .15s ease, transform .12s ease; overflow: hidden; }
.mg-spot-img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.65)); transition: transform .25s ease, filter .25s ease; pointer-events: none; }
.mg-spot:hover:not(:disabled) .mg-spot-img { transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 14px 16px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(255,214,140,.28)); }
.mg-spot .nm { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.62); text-align: center; line-height: 1.2; }
.mg-spot:hover:not(:disabled) { border-color: rgba(120,220,120,.5); background: linear-gradient(180deg, #1c231c, #111511); transform: translateY(-2px); }
.mg-spot:disabled:not(.done) { cursor: not-allowed; opacity: .55; }
.mg-spot .loot { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 2px; background: radial-gradient(circle, rgba(120,220,120,.18), rgba(10,14,10,.92) 70%); }
.mg-spot .loot img { max-width: 64%; max-height: 58px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
.mg-spot .loot b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 17px; color: #c9ff8a; }
.mg-spot.done { cursor: default; border-color: rgba(120,220,120,.35); }
.mg-spot.done .loot { display: grid; animation: mgIn .4s ease; }
.mg-spot.searching::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #b8f5a0; animation: mgRot .7s linear infinite; }
.mg-spot.searching .mg-spot-img { opacity: .25; filter: blur(1px); }
.mg-spot.caught { border-color: #ff4a3a; background: radial-gradient(circle, rgba(255,60,40,.45), #1a0705); }
.mg-floor-lock { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; align-content: center; gap: 4px; background: rgba(5,7,5,.72); backdrop-filter: blur(2px); color: rgba(255,255,255,.7); font-weight: 800; font-size: 13px; }
.mg-floor-lock b { font-size: 24px; }
.mg-floor-lock.on { display: grid; }
.mg-dark { --mx: 50%; --my: 50%; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle 190px at var(--mx) var(--my), rgba(255,240,200,.07), rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); mix-blend-mode: normal; }
.mg-caught { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; align-content: center; gap: 8px; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(120,0,0,.2), rgba(40,0,0,.85)); }
.mg-caught svg { width: 190px; height: auto; transform: scale(.6) translateY(40px); filter: drop-shadow(0 0 30px rgba(255,40,20,.4)); }
.mg-caught b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 40px; letter-spacing: 3px; color: #ff4a3a; text-shadow: 0 0 24px rgba(255,40,20,.7); }
.mg-caught.show { animation: mgCaught 2.2s ease forwards; }
.mg-caught.show svg { animation: mgLunge .6s cubic-bezier(.2,.9,.3,1.4) forwards; }
@keyframes mgCaught { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 1; } }
@keyframes mgLunge { to { transform: scale(1.15) translateY(0); } }
.mg-noise { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.mg-noise i { flex: 1; height: calc(18% + var(--i) * 6%); border-radius: 2px; background: rgba(255,255,255,.08); transition: background .3s ease; }
.mg-noise i.on { background: linear-gradient(180deg, #ffd07a, #6fdc6a); box-shadow: 0 0 8px rgba(255,208,122,.35); }
.mg-noise i.on:nth-child(n+8) { background: linear-gradient(180deg, #ff8a5a, #ffb04a); }
.mg-noise i.on:nth-child(n+12) { background: linear-gradient(180deg, #ff4a3a, #ff7a5a); }
.mg-riskrow { display: grid; gap: 4px; }
.mg-riskrow span { display: flex; justify-content: space-between; padding: 4px 9px; border-radius: 7px; background: rgba(255,255,255,.04); font-size: 13px; }
.mg-riskrow em { font-style: normal; color: rgba(255,255,255,.6); } .mg-riskrow b { color: #b8f5a0; }
.mg-riskrow .mid b { color: #ffd07a; } .mg-riskrow .hi b { color: #ff9a8a; }
.mg-found { display: grid; gap: 4px; max-height: 210px; overflow: auto; }
.mg-found span { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.04); font-size: 13px; }
.mg-found img { width: 28px; height: 28px; object-fit: contain; } .mg-found em { font-style: normal; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mg-found b { color: #c9ff8a; }
.mg-found p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); }
.mg-floors-legend { display: grid; gap: 6px; margin-bottom: 16px; }
.mg-floors-legend span { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,.04); }
.mg-floors-legend b { color: #fff; } .mg-floors-legend em { font-style: normal; color: #b8f5a0; font-weight: 800; }
@media (max-width: 640px) { .mg-floor { grid-template-columns: 1fr; } .mg-floor-tag { grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; } .mg-floor-tag .risk { margin: 0; justify-self: end; } .mg-spot { min-height: 104px; } .mg-spot-img { width: 62px; height: 62px; } .mg-rooms { gap: 6px; } }

/* ── Long Shot ── */
.mg-cv-wrap.scope { background: #000; }
.mg-hud { position: absolute; z-index: 2; padding: 5px 10px; border-radius: 7px; font: 800 13px ui-monospace, monospace; letter-spacing: 1px; color: #bfffd0; background: rgba(0,0,0,.6); border: 1px solid rgba(140,255,170,.2); pointer-events: none; }
.mg-hud.tl { left: 12px; top: 12px; } .mg-hud.tr { right: 12px; top: 12px; } .mg-hud.bl { left: 12px; bottom: 12px; } .mg-hud.br { right: 12px; bottom: 12px; display: grid; gap: 4px; min-width: 110px; }
.mg-hud.br i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; } .mg-hud.br u { display: block; height: 100%; background: linear-gradient(90deg, #6fdc6a, #d6ff6a); }
.mg-hud.br.gasp u { background: #ff6a4a; } .mg-hud.br span { font-size: 10px; color: rgba(255,255,255,.55); }
.mg-shot-btns { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); display: none; gap: 10px; }
@media (pointer: coarse) { .mg-shot-btns { display: flex; } .mg-hud.bl, .mg-hud.br { bottom: 74px; } }
.mg-turret { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.mg-turret button { height: 44px; padding: 0 !important; border-radius: 10px; border: 1px solid rgba(155,231,255,.35); background: rgba(0,0,0,.4); color: #9be7ff; font-size: 22px; font-weight: 900; cursor: pointer; }
.mg-turret b { text-align: center; font: 800 20px ui-monospace, monospace; color: #fff; }
.mg-card { width: 100%; border-collapse: collapse; font-size: 13px; }
.mg-card th { text-align: left; font-size: 11px; color: rgba(255,255,255,.45); font-weight: 800; padding: 3px 6px; }
.mg-card td { padding: 4px 6px; font-family: ui-monospace, monospace; color: rgba(255,255,255,.8); border-top: 1px solid rgba(255,255,255,.05); }
.mg-card tr.near td { color: #9be7ff; background: rgba(155,231,255,.07); }
.mg-cardnote { font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.42); line-height: 1.4; }
.mg-shots { display: grid; gap: 4px; }
.mg-shots span { display: flex; justify-content: space-between; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.04); font-size: 13px; }
.mg-shots em { font-style: normal; color: rgba(255,255,255,.55); } .mg-shots .head b { color: #ffd15e; } .mg-shots .body b { color: #9be7ff; } .mg-shots .miss b { color: rgba(255,255,255,.4); }
.mg-shots p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); }

.mg-daily-done, .mg-gear-done { display: grid; gap: 8px; padding: 24px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(var(--mg), .25); }
.mg-daily-done b, .mg-gear-done b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 26px; color: #fff; }
.mg-daily-done p, .mg-gear-done p { margin: 0; color: rgba(255,255,255,.75); } .mg-daily-done strong, .mg-gear-done strong { color: rgb(var(--mg)); }
.mg-daily-done em, .mg-gear-done em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.45); }

/* ── Gear Guess ── */
.mg-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(185,120,255,.18), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px), #0a0910; border: 1px solid rgba(185,120,255,.25); box-shadow: inset 0 0 60px rgba(0,0,0,.7); }
.mg-photo img { width: 62%; max-width: 360px; height: auto; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.6)); transition: filter .5s ease; }
.mg-photo .scan { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(185,120,255,.16), transparent); animation: mgScan 3.4s linear infinite; pointer-events: none; }
@keyframes mgScan { to { top: 100%; } }
.mg-photo-tag { position: absolute; left: 14px; top: 12px; font: 800 11px ui-monospace, monospace; letter-spacing: 2px; color: rgba(185,120,255,.75); }
.mg-photo.flash { animation: mgFlash .4s ease; } @keyframes mgFlash { 30% { box-shadow: inset 0 0 0 3px rgba(255,80,60,.8), inset 0 0 60px rgba(0,0,0,.7); } }
.mg-photo.solved { border-color: rgba(125,255,154,.45); }
.mg-photo.solved .shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); background-size: 250% 100%; animation: mgShineSweep 2.4s ease 1; pointer-events: none; }
@keyframes mgShineSweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.mg-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.mg-steps i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); } .mg-steps i.miss { background: #ff6a5a; } .mg-steps i.cur { background: rgb(185,120,255); box-shadow: 0 0 10px rgba(185,120,255,.6); }
.mg-hint { min-height: 18px; font-size: 13px; color: rgba(255,255,255,.55); } .mg-hint b { color: #d9b8ff; }
.mg-ac { position: relative; }
.mg-ac input { width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(185,120,255,.35); background: rgba(0,0,0,.4); color: #fff; font-size: 16px; outline: none; box-sizing: border-box; }
.mg-ac input:focus { border-color: rgb(185,120,255); box-shadow: 0 0 0 3px rgba(185,120,255,.18); }
.mg-ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; display: none; max-height: 260px; overflow: auto; padding: 4px; border-radius: 10px; background: #15131b; border: 1px solid rgba(185,120,255,.3); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.mg-ac-list.open { display: grid; }
.mg-ac-list button { height: 36px; padding: 0 10px !important; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.85); text-align: left; text-transform: none; letter-spacing: normal; font-weight: 600; cursor: pointer; }
.mg-ac-list button.on, .mg-ac-list button:hover { background: rgba(185,120,255,.18); color: #fff; }
.mg-guesslist { display: grid; gap: 4px; } .mg-guesslist span { padding: 5px 10px; border-radius: 7px; font-size: 13px; color: #ff9a8a; background: rgba(255,80,60,.08); }
.mg-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 16px; }
.mg-ladder span { display: grid; gap: 2px; padding: 8px 6px; border-radius: 8px; text-align: center; background: rgba(255,255,255,.04); }
.mg-ladder em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); font-weight: 800; } .mg-ladder b { font-size: 13px; color: #d9b8ff; }
@media (max-width: 560px) { .mg-ladder { grid-template-columns: repeat(3, 1fr); } }
.mg-gear-done { grid-template-columns: minmax(200px, 320px) 1fr; align-items: center; gap: 20px; }
@media (max-width: 640px) { .mg-gear-done { grid-template-columns: 1fr; } }
.mg-grid { font-size: 22px; letter-spacing: 3px; }
#minigames.mg-in-game .mg-hero { min-height: 0; }

/* Hero title: two lines, sized to fit ("Minigames." is longer than "Casino.") */
.mg-hero .void-heading { font-size: clamp(46px, 6.2vw, 92px); line-height: .92; }
.mg-hero .void-heading span { display: block; }


/* ── Loot Run: the rendered 3D house is the board (assets/minigames/house.webp) ── */
.mg-house3d { position: relative; aspect-ratio: 1128 / 1176; border-radius: 14px; overflow: hidden; background: #05070c url(/assets/minigames/house.webp?v=1) center / 100% 100% no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.5); user-select: none; }
.mg-house3d.shake { animation: mgShake .5s; }
.mg-hot { position: absolute; z-index: 2; display: grid; place-items: end center; padding: 0 0 8px !important; height: auto; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; text-transform: none; letter-spacing: normal; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; overflow: visible; min-height: 0; }
.mg-hot:hover:not(:disabled) { border-color: rgba(255,214,140,.55); background: radial-gradient(ellipse at 50% 70%, rgba(255,200,120,.16), transparent 70%); box-shadow: 0 0 28px rgba(255,190,110,.18), inset 0 0 24px rgba(255,190,110,.12); transform: none; }
.mg-hot .nm { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(0,0,0,.62); border: 1px solid rgba(255,255,255,.12); opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.mg-hot:hover:not(:disabled) .nm, .mg-hot:focus-visible .nm { opacity: 1; transform: none; }
.mg-hot:disabled:not(.done) { cursor: not-allowed; opacity: 1; }
.mg-hot .loot { position: absolute; inset: 10% 8%; display: none; place-items: center; align-content: center; gap: 4px; border-radius: 10px; background: rgba(8,10,8,.72); backdrop-filter: blur(3px); border: 1px solid rgba(160,255,140,.35); box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 22px rgba(140,255,120,.15); }
.mg-hot .loot img { max-width: 70%; max-height: 52%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
.mg-hot .loot b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: clamp(14px, 1.6vw, 20px); color: #c9ff8a; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.mg-hot.done { cursor: default; border-color: rgba(160,255,140,.25); }
.mg-hot.done .loot { display: grid; animation: mgIn .4s ease; }
.mg-hot.searching::after { content: ""; position: absolute; left: 50%; top: 45%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #ffd28a; animation: mgRot .7s linear infinite; }
.mg-hot.caught { border-color: #ff4a3a; background: radial-gradient(circle, rgba(255,60,40,.4), rgba(26,7,5,.6)); }
.mg-ftag { position: absolute; z-index: 1; pointer-events: none; display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; }
.mg-ftag b, .mg-ftag em, .mg-ftag .risk { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 900; letter-spacing: .4px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.1); color: #f1ead8; font-style: normal; }
.mg-ftag em { color: #c9ff8a; }
.mg-ftag .risk { color: #b8f5a0; } .mg-ftag .risk.mid { color: #ffd07a; } .mg-ftag .risk.hi { color: #ff9a8a; }
.mg-house3d .mg-floor-lock { position: absolute; inset: auto; z-index: 3; display: none; place-items: center; align-content: center; gap: 4px; background: rgba(4,5,8,.62); backdrop-filter: blur(2.5px) grayscale(.6); color: rgba(255,255,255,.8); font-weight: 800; font-size: 13px; border-radius: 6px; }
.mg-house3d .mg-floor-lock.on { display: grid; }
.mg-house3d .mg-dark { background: radial-gradient(circle 220px at var(--mx) var(--my), rgba(255,240,200,.06), rgba(0,0,0,0) 55%, rgba(0,0,0,.22) 100%); }
@media (max-width: 640px) { .mg-ftag em { display: none; } .mg-hot .nm { opacity: 1; transform: none; font-size: 9.5px; padding: 2px 6px; } }

/* Long Shot: 3D range under a transparent reticle canvas */
.mg-cv-wrap.scope { position: relative; }
.mg-cv-wrap.scope .mg-shot-3d { position: absolute; inset: 0; width: 100%; pointer-events: none; }
.mg-cv-wrap.scope #mg-shot-cv { position: relative; z-index: 1; }


#minigames .ff-hero-content .void-heading .ff-h-gold, #minigames .ff-hero-content .void-heading .ff-h-white { display: block !important; font-size: clamp(48px, 6.6vw, 96px) !important; line-height: .9 !important; }
@media (max-width: 900px) { #minigames .mg-hero .ff-hero-content .void-heading .ff-h-gold, #minigames .mg-hero .ff-hero-content .void-heading .ff-h-white { font-size: clamp(40px, 12vw, 58px) !important; } }


/* Gear Guess: the evidence photo sits on the 3D evidence table render as a polaroid */
.mg-photo { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.7) 85%), url(/assets/minigames/gear.webp?v=2) center / cover no-repeat, #0a0910; }
.mg-photo img { width: auto; max-width: 54%; max-height: 64%; padding: 5%; background: radial-gradient(circle, #24202e, #0e0c14); border: 12px solid #ebe6da; border-bottom-width: 44px; border-radius: 3px; box-sizing: border-box; transform: rotate(-3deg); box-shadow: 0 30px 50px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2); filter: none; object-fit: contain; }
.mg-photo .scan { mix-blend-mode: screen; }

/* ══════════ 10/18 overhaul: playable on phones, more colour, streaks / hot-cold / stashes ══════════
   (owner: "basically unplayable on mobile ... Everything needs more color ... doesnt catch the eye") */

/* In a game the hero goes (same as the casino); today's earnings sit in the table header instead. */
#minigames.mg-in-game .mg-hero { display: none; }
#minigames.mg-in-game .mg-root { margin-top: 0; }
.mg-chip-earn { display: none; align-items: baseline; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid rgba(214,255,106,.3); white-space: nowrap; }
.mg-chip-earn:empty { display: none !important; }
.mg-chip-earn small { font-size: 9.5px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.mg-chip-earn b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 17px; color: #d6ff6a; }
.mg-chip-earn em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); }
#minigames.mg-in-game .mg-chip-earn { display: inline-flex; }
.mg-back { display: inline-flex; align-items: center; gap: 8px; }
.mg-back span { font-size: 18px; line-height: 1; }
.mg-back em { font-style: normal; }

/* Colour: every table and tile carries its game's accent more boldly */
.mg-table { border-color: rgba(var(--mg), .42); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(var(--mg), .2), transparent 62%), radial-gradient(ellipse 60% 40% at 100% 100%, rgba(var(--mg), .08), transparent 70%), linear-gradient(180deg, #111215, #0a0a0c); box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 40px rgba(var(--mg), .1), inset 0 1px 0 rgba(255,255,255,.06); }
.mg-table-top h2 { background: linear-gradient(180deg, #fff 30%, rgb(var(--mg))); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(var(--mg), .35)); }
.mg-tile { border: 1px solid rgba(var(--mg), .38); background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(var(--mg), .14), transparent 70%), linear-gradient(180deg, #131418, #0a0a0c); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 26px rgba(var(--mg), .1); }
.mg-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, transparent, rgb(var(--mg)), transparent); opacity: .85; }
.mg-tile { position: relative; }
.mg-tile:hover:not(:disabled) { border-color: rgba(var(--mg), .8); box-shadow: 0 22px 54px rgba(0,0,0,.6), 0 0 44px rgba(var(--mg), .28); }
.mg-tile-body b { background: linear-gradient(180deg, #fff 35%, rgb(var(--mg))); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 30px; }
.mg-tile-foot i { background: linear-gradient(180deg, rgba(var(--mg), .95), rgba(var(--mg), .7)); color: #0b0b0b; box-shadow: 0 6px 16px rgba(var(--mg), .3); }
.mg-tile-art { background: radial-gradient(ellipse at 50% 62%, rgba(var(--mg), .34), transparent 66%), linear-gradient(180deg, #121417, #08090a); }
.mg-tile.wide { grid-template-rows: 250px auto; }
@media (max-width: 1000px) { .mg-tile, .mg-tile.wide { grid-template-rows: 200px auto; } }
.mg-stat { background: linear-gradient(180deg, rgba(var(--mg), .07), rgba(0,0,0,.3)); border-color: rgba(var(--mg), .16); }
.mg-stat-note { font-style: normal; font-size: 12.5px; font-weight: 800; color: #ffb04a; }
.mg-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mg-play-col { display: grid; gap: 10px; min-width: 0; align-content: start; }
.mg-actbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.mg-actbar .mg-cta, .mg-actbar .mg-ghost { height: 58px; font-size: 20px; }
.mg-actbar .mg-ghost { font-size: 15px; }
.mg-pop.stash { color: #ffd84a; font-size: 34px; text-shadow: 0 4px 18px rgba(0,0,0,.8), 0 0 30px rgba(255,200,60,.8); }

/* Lockpick: 3D lock renders on the picker, streak meter, hot / cold read-out */
.lk-img { display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 170px; margin: -6px auto 2px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 60%, rgba(255,190,90,.18), transparent 70%); }
.lk-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mg-lockcard:hover:not(:disabled) .lk-img img { transform: scale(1.07); }
.mg-lockcard { position: relative; overflow: hidden; }
.mg-lockcard s { margin-top: -6px; font-size: 13px; color: rgba(255,255,255,.4); }
.mg-lockcard.lk-rusty { background: radial-gradient(ellipse at 50% 0%, rgba(255,130,50,.22), transparent 60%), linear-gradient(180deg, #1a130e, #0b0908); border-color: rgba(255,140,60,.3); }
.mg-lockcard.lk-gate { background: radial-gradient(ellipse at 50% 0%, rgba(140,180,255,.2), transparent 60%), linear-gradient(180deg, #12151b, #0a0b0d); border-color: rgba(140,180,255,.28); }
.mg-lockcard.lk-locker { background: radial-gradient(ellipse at 50% 0%, rgba(150,255,110,.18), transparent 60%), linear-gradient(180deg, #121710, #090b08); border-color: rgba(150,255,110,.26); }
.mg-lockcard.lk-vault { background: radial-gradient(ellipse at 50% 0%, rgba(190,130,255,.24), transparent 60%), linear-gradient(180deg, #15111c, #0a090c); border-color: rgba(190,130,255,.32); }
.mg-streak { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.mg-streak.on { background: linear-gradient(90deg, rgba(255,120,30,.22), rgba(255,180,60,.06)); border-color: rgba(255,150,50,.45); box-shadow: 0 0 30px rgba(255,120,30,.15); }
.mg-streak b { display: block; font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .5px; color: #fff; }
.mg-streak span { font-size: 13px; color: rgba(255,255,255,.65); } .mg-streak strong { color: #ffb04a; }
.mg-streak-flames { display: flex; gap: 5px; }
.mg-streak-flames i { width: 14px; height: 26px; border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%; background: rgba(255,255,255,.08); }
.mg-streak-flames i.lit { background: radial-gradient(ellipse at 50% 80%, #fff3b0, #ffb02e 40%, #ff5a1a 75%); box-shadow: 0 0 12px rgba(255,140,40,.8); animation: mgFlame 1.1s ease-in-out infinite alternate; }
.mg-streak-flames i.lit:nth-child(2n) { animation-delay: .35s; }
@keyframes mgFlame { from { transform: scaleY(.9) translateY(1px); } to { transform: scaleY(1.08); } }
.mg-feel { position: absolute; left: 50%; top: 12%; z-index: 4; display: grid; justify-items: center; gap: 2px; padding: 8px 18px; border-radius: 12px; pointer-events: none; opacity: 0; transform: translate(-50%, -10px) scale(.9); transition: opacity .2s ease, transform .25s cubic-bezier(.2,1.4,.4,1); background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.mg-feel.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mg-feel b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 34px; letter-spacing: 2px; }
.mg-feel span { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.7); }
.mg-feel.hot { border: 1px solid rgba(255,150,50,.6); box-shadow: 0 0 34px rgba(255,120,30,.45); } .mg-feel.hot b { color: #ffb04a; text-shadow: 0 0 18px rgba(255,120,30,.8); }
.mg-feel.warm b { color: #ffe08a; } .mg-feel.warm { border: 1px solid rgba(255,224,138,.4); }
.mg-feel.cold { border: 1px solid rgba(110,190,255,.55); box-shadow: 0 0 30px rgba(80,160,255,.35); } .mg-feel.cold b { color: #8fd0ff; text-shadow: 0 0 16px rgba(80,160,255,.7); }

/* Loot Run: floor cards (the phone board); each floor gets warmer as the risk climbs */
.mg-floors { display: none; position: relative; gap: 10px; }
.mg-floors.shake { animation: mgShake .5s; }
.mg-floors .mg-caught { border-radius: 14px; }
.mg-fcard { --fc: 110,235,120; position: relative; display: grid; gap: 8px; padding: 10px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(var(--fc), .35);
  background: radial-gradient(ellipse 80% 70% at 50% 120%, rgba(var(--fc), .2), transparent 70%), linear-gradient(180deg, #17140f, #0c0b09); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 26px rgba(0,0,0,.45); }
.mg-fcard.f1 { --fc: 255,190,70; } .mg-fcard.f2 { --fc: 255,100,80; }
.mg-fcard header { display: flex; align-items: center; gap: 8px; }
.mg-fcard header b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .4px; color: rgb(var(--fc)); }
.mg-fcard header em { font-style: normal; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.6); }
.mg-fcard header .risk { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 900; color: #b8f5a0; background: rgba(120,220,120,.14); }
.mg-fcard header .risk.mid { color: #ffd07a; background: rgba(255,180,60,.16); } .mg-fcard header .risk.hi { color: #ff9a8a; background: rgba(255,80,60,.18); }
.mg-frow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mg-mspot { min-height: 0 !important; aspect-ratio: 3 / 4; padding: 4px 3px 7px !important; align-content: end; border-radius: 10px; border: 1px solid rgba(var(--fc), .22) !important; background: radial-gradient(ellipse at 50% 80%, rgba(var(--fc), .16), transparent 72%), rgba(0,0,0,.25) !important; }
.mg-mspot .mg-spot-img { width: 100%; height: auto; max-height: 72%; flex: 1; }
.mg-mspot .nm { font-size: 10.5px; line-height: 1.15; }
.mg-mspot:active:not(:disabled) { transform: scale(.96); }
.mg-fcard .mg-floor-lock { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; align-content: center; gap: 4px; padding: 10px; text-align: center; background: rgba(5,6,8,.72); backdrop-filter: blur(2.5px) grayscale(.7); color: rgba(255,255,255,.82); font-weight: 800; font-size: 13px; }
.mg-fcard .mg-floor-lock.on { display: grid; }
.mg-spot .loot.good { background: radial-gradient(circle, rgba(80,170,255,.3), rgba(8,12,20,.92) 70%); } .mg-spot .loot.good b { color: #8fd0ff; }
.mg-spot .loot.great { background: radial-gradient(circle, rgba(190,110,255,.36), rgba(14,8,20,.92) 70%); } .mg-spot .loot.great b { color: #d9a8ff; }
.mg-spot .loot.stash { background: radial-gradient(circle, rgba(255,200,60,.5), rgba(24,16,4,.92) 72%); box-shadow: inset 0 0 0 2px rgba(255,210,90,.7); animation: mgStash 1.4s ease-in-out infinite alternate; }
.mg-spot .loot.stash b { color: #ffd84a; } .mg-spot .loot em { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #1a1000; background: #ffd84a; padding: 1px 6px; border-radius: 4px; }
@keyframes mgStash { to { box-shadow: inset 0 0 0 2px rgba(255,230,140,1), 0 0 24px rgba(255,200,60,.6); } }
.mg-found span.good b { color: #8fd0ff; } .mg-found span.great b { color: #d9a8ff; } .mg-found span.stash { background: rgba(255,200,60,.14); } .mg-found span.stash b { color: #ffd84a; }
.mg-loot-hud { display: grid; gap: 12px; }
.mg-spot.done .nm { visibility: hidden; }

/* Long Shot: pips under the scope, compact turret in the trigger bar, foldable range card */
.mg-shot-bar { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
.mg-turret.mini { grid-template-columns: 44px 52px 44px; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(155,231,255,.25); }
.mg-turret.mini button { height: 48px; }
.mg-turret.mini b { font-size: 17px; }
.mg-shotstrip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mg-shotstrip i { display: grid; place-items: center; height: 34px; border-radius: 9px; font-style: normal; font-weight: 900; font-size: 14px; color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.mg-shotstrip i.head { color: #1a1100; background: linear-gradient(180deg, #ffe08a, #ffb52b); border-color: transparent; box-shadow: 0 0 14px rgba(255,190,60,.45); }
.mg-shotstrip i.body { color: #04121c; background: linear-gradient(180deg, #a8e4ff, #4fb4ff); border-color: transparent; }
.mg-shotstrip i.miss { color: #ff9a8a; background: rgba(255,80,60,.14); border-color: rgba(255,80,60,.3); }
.mg-shotstrip i.now { color: #fff; border-color: rgba(80,185,255,.8); animation: mgPip 1s ease-in-out infinite alternate; }
@keyframes mgPip { to { box-shadow: 0 0 16px rgba(80,185,255,.55); } }
.mg-cardbox summary { cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.55); list-style: none; }
.mg-cardbox summary::-webkit-details-marker { display: none; }
.mg-cardbox summary::after { content: " ▾"; } .mg-cardbox:not([open]) summary::after { content: " ▸"; }
.mg-shot-btns { display: none !important; }

/* ── Phones ── */
@media (max-width: 760px) {
  .mg-table { padding: 10px 10px 14px; gap: 10px; border-radius: 14px; }
  .mg-table-top { gap: 8px; padding-bottom: 2px; }
  .mg-table-top small { display: none; }
  .mg-table-top h2 { font-size: 25px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mg-back { width: 42px; height: 42px; justify-content: center; padding: 0 !important; } .mg-back em { display: none; }
  .mg-chip-earn { padding: 5px 9px; } .mg-chip-earn em { display: none; }
  .mg-mute { flex: none; }
  .mg-side { gap: 10px; }
  .mg-stat { padding: 10px 12px; }
  .mg-stat.big > b { font-size: 30px; }
  .mg-keys { display: none; }
  .mg-howto { font-size: 14px; }
  .mg-locks { gap: 8px; }
  .mg-lockcard { padding: 10px 8px 12px !important; }
  .mg-lockcard b { font-size: 16px; } .mg-lockcard strong { font-size: 24px; }
  .mg-streak { grid-template-columns: 1fr; gap: 8px; padding: 10px 12px; } .mg-streak b { font-size: 19px; }
  .mg-feel b { font-size: 28px; }
  /* Loot Run: the floor cards are the board; haul + noise + cash out ride along at the top */
  .mg-house3d { display: none; }
  .mg-floors { display: grid; }
  .mg-loot-stage { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .mg-lock-stage .mg-actbar .mg-ghost { font-size: 13px; }
  .mg-loot-stage > .mg-side { display: contents; }
  .mg-loot-hud { order: -1; position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 8; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(10,12,10,.92); backdrop-filter: blur(8px); border: 1px solid rgba(110,235,120,.35); box-shadow: 0 10px 26px rgba(0,0,0,.55); }
  .mg-loot-hud .mg-stat { padding: 0; background: none; border: 0; gap: 2px; }
  .mg-loot-hud .mg-stat.big > b { font-size: 26px; }
  .mg-loot-hud .mg-noise { height: 26px; }
  .mg-loot-hud .mg-cta { height: 46px; padding: 0 16px !important; font-size: 16px; }
  /* Long Shot */
  .mg-desk { display: none; }
  .mg-hud { font-size: 11.5px; padding: 4px 8px; }
  .mg-hud.br { min-width: 92px; }
  .mg-shot-bar .mg-ghost { font-size: 13px; padding: 0 8px !important; }
  /* Gear Guess: the photo is the star */
  .mg-photo { aspect-ratio: 1 / 1; }
  .mg-photo img { max-width: 76%; max-height: 76%; border-width: 10px; border-bottom-width: 34px; }
  /* Lobby: hero fits the screen, title on two lines */
  #minigames .mg-hero { height: auto !important; min-height: 0 !important; max-height: none !important; }
  #minigames .mg-hero .ff-hero-content { position: relative !important; top: auto !important; transform: none !important; padding: 24px 18px 20px !important; max-width: none !important; }
  #minigames .mg-hero .ff-hero-content .void-heading { display: flex !important; flex-direction: column !important; white-space: normal !important; }
  #minigames .mg-hero .ff-hero-content .void-heading .ff-h-gold, #minigames .mg-hero .ff-hero-content .void-heading .ff-h-white { display: block !important; font-size: clamp(40px, 13vw, 60px) !important; }
  .mg-hero-stats { gap: 8px; } .mg-earn, .mg-wallet { min-width: 0; flex: 1 1 140px; padding: 10px 14px; }
  .mg-tile-body b { font-size: 26px; }
  /* tighter (owner 10/18: "everythings so big & screens are smaller") */
  .mg-mspot { aspect-ratio: 1 / 1; }
  .mg-mspot .mg-spot-img { max-height: 62%; }
  .mg-fcard { padding: 8px; gap: 6px; } .mg-fcard header b { font-size: 17px; }
  .mg-photo { aspect-ratio: 4 / 3; }
  .mg-actbar .mg-cta, .mg-actbar .mg-ghost { height: 50px; font-size: 18px; } .mg-actbar .mg-ghost { font-size: 13px; }
  .mg-stat-row { gap: 8px; } .mg-stat.big > b { font-size: 26px; }
  .mg-lockcard .lk-img { max-width: 120px; }
}
/* ── Loot Run on phones, v2 (owner 10/19 "unplayable"): ground floor first, locked floors fold to one line,
   2×2 spots on the floors you can search, and the haul / noise / Cash out bar sits at the bottom of the screen. */
@media (max-width: 760px) {
  .mg-floors { display: flex; flex-direction: column; gap: 8px; }
  .mg-fcard.f0 { order: 1; } .mg-fcard.f1 { order: 2; } .mg-fcard.f2 { order: 3; }
  .mg-fcard { padding: 10px; gap: 8px; }
  .mg-fcard header b { font-size: 18px; }
  .mg-fcard.locked { padding: 8px 10px; opacity: .85; }
  .mg-fcard.locked .mg-frow { display: none; }
  .mg-fcard.locked .mg-floor-lock { position: static; display: flex; align-items: center; gap: 8px; padding: 0; background: none; backdrop-filter: none; text-align: left; font-size: 12.5px; }
  .mg-fcard.locked .mg-floor-lock b { font-size: 15px; }
  .mg-frow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mg-mspot { aspect-ratio: auto; height: 118px; padding: 8px 6px 9px !important; display: grid !important; grid-template-rows: minmax(0, 1fr) auto; place-items: center; overflow: hidden; }
  .mg-mspot .mg-spot-img { width: auto; height: 100%; max-height: 74px; max-width: 86%; filter: brightness(1.25) drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
  .mg-mspot .nm { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.85); }
  .mg-mspot .loot { gap: 4px; padding: 6px; }
  .mg-mspot .loot img { max-height: 54px; max-width: 70%; }
  .mg-mspot .loot b { font-size: 20px; }
  .mg-mspot .loot em { font-size: 10.5px; }
  .mg-loot-stage > .mg-side .mg-stat:has(.mg-riskrow) { display: none; }
  /* bottom bar: right after the floors, so it rides the bottom of the screen while you search */
  .mg-loot-hud { order: 2; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); grid-template-columns: auto minmax(0, 1fr) auto; }
  .mg-floors { order: 1; }
  .mg-loot-stage > .mg-side > :not(.mg-loot-hud) { order: 3; }
}

/* ── Game start screens (10/18 pass): a wide art banner with facts, then rules | play ── */
.mg-stage { display: grid; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(var(--mg), .28);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.25)); box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.mg-stage-art { position: relative; overflow: hidden; width: 100%; height: clamp(220px, 27vw, 380px); isolation: isolate;
  background: radial-gradient(ellipse at 50% 60%, rgba(var(--mg), .3), transparent 66%), #08090a; }
.mg-stage-art .mg-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 60%; animation: mgDrift 18s ease-in-out infinite alternate; }
@keyframes mgDrift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.12) translate3d(1.2%, -1.5%, 0); } }
.mg-stage-art .mg-sheen { animation: mgSheen 1.6s ease .4s forwards; }
.mg-stage-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, transparent 35%, rgba(6,7,9,.55) 72%, rgba(8,9,11,.96) 100%),
              radial-gradient(ellipse 70% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.5) 100%); }
.mg-stage-chips { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.mg-stage-chips span { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .2px; color: #fff;
  background: rgba(10,11,14,.66); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mg-stage-chips span.lead { color: #0a0b0d; background: rgb(var(--mg)); border-color: transparent; box-shadow: 0 0 22px rgba(var(--mg), .45); }
.mg-stage-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; padding: 22px 24px 24px; }
.mg-stage-h { margin: 0 0 8px; font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 1.6px; text-transform: uppercase; color: rgb(var(--mg)); }
.mg-intro-copy .mg-howto { margin: 0; font-size: 15.5px; line-height: 1.65; }
.mg-intro-act { display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(var(--mg), .2); }
.mg-intro-act .mg-floors-legend, .mg-intro-act .mg-ladder, .mg-intro-act .mg-list { margin: 0; }
.mg-intro-act .mg-cta { width: 100%; height: 56px; font-size: 21px; }
.mg-intro-act .mg-left { margin: 0; text-align: center; }
.mg-intro-act .mg-ladder { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .mg-stage-art { height: auto; aspect-ratio: 16 / 9; }
  .mg-stage-chips { left: 12px; right: 12px; bottom: 10px; gap: 6px; }
  .mg-stage-chips span { padding: 5px 10px; font-size: 12px; }
  .mg-stage-body { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .mg-intro-act { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .mg-stage-art .mg-art, .mg-stage-art .mg-sheen { animation: none !important; } }

/* Long Shot (10/19): "click to take aim" hint while the mouse isn't captured, and the breath toggle's on state */
.mg-scope-hint { position: absolute; left: 50%; bottom: 12%; z-index: 5; transform: translateX(-50%); padding: 9px 16px; border-radius: 10px; text-align: center; pointer-events: none;
  font: 400 18px/1.1 Impact, "Arial Black", sans-serif; letter-spacing: .6px; color: #fff; background: rgba(0,0,0,.72); border: 1px solid rgba(80,185,255,.45); box-shadow: 0 8px 22px rgba(0,0,0,.5); animation: mgHintPulse 2.2s ease-in-out infinite; }
.mg-scope-hint small { display: block; margin-top: 4px; font: 600 11.5px/1.3 system-ui, sans-serif; letter-spacing: 0; color: rgba(255,255,255,.7); }
.mg-scope-hint[hidden] { display: none; }
@keyframes mgHintPulse { 50% { border-color: rgba(80,185,255,.9); } }
#mg-breath.on { color: #0b0b0e; background: #8fd6ff; border-color: #8fd6ff; box-shadow: 0 0 16px rgba(80,185,255,.5); }
@media (prefers-reduced-motion: reduce) { .mg-scope-hint { animation: none; } }
/* Long Shot firing guide (owner 10/21: "don't see how you're supposed to hit the target") */
.mg-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: rgba(255,255,255,.78); font-size: 14.5px; line-height: 1.5; }
.mg-steps b { color: #fff; }
.mg-shot-guide { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(80,185,255,.3); background: rgba(80,185,255,.06); }
.mg-shot-guide:empty { display: none; }
.mg-shot-guide h4 { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8fd6ff; }
.mg-gstep { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.78); }
.mg-gstep b { color: #fff; }
.mg-gstep > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; color: #0b0b0e; background: #8fd6ff; }
.mg-gstep.done > i { background: #19f78f; }
.mg-gstep.todo { color: #fff; }
.mg-gstep .mg-ghost { padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }
.mg-phone-only { margin-top: 10px; }
@media (min-width: 761px) { .mg-phone-only { display: none !important; } }
@media (max-width: 760px) { .mg-shot-guide.mg-desk { display: none; } }
/* Lobby tile live previews (owner 10/21: "same way we have the casino ones"); mirrors the casino's .acp */
.mgp { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.mgp:empty { display: none; }
.mg-tile-art.mgp-on > .mg-art { opacity: 0; }
.mgp .mgp-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mgp-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mgp .mg-house3d { display: block !important; width: 100%; }
.mgp .mg-hot .loot b { font-size: 20px; }
.mgp .mg-photo { aspect-ratio: 4 / 3; }
.mgp .mgp-pol { display: grid; place-items: center; width: 46%; aspect-ratio: 1 / 1; padding: 4%; overflow: hidden; background: radial-gradient(circle, #24202e, #0e0c14); border: 12px solid #ebe6da; border-bottom-width: 44px; border-radius: 3px; box-sizing: content-box; transform: rotate(-3deg); box-shadow: 0 30px 50px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2); }
.mgp .mgp-pol img { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: none; box-shadow: none; transform: none; object-fit: contain; }
.mgp-guesses { display: flex; justify-content: center; gap: 10px; min-height: 40px; margin-top: 14px; }
.mgp-guesses span { padding: 8px 16px; border-radius: 999px; font: 800 18px/1.1 system-ui, sans-serif; color: #fff; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.15); animation: mgIn .3s ease; }
.mgp-guesses .miss { color: #ffb3b3; border-color: rgba(255,90,90,.45); }
.mgp-guesses .hit { color: #c9ff8a; border-color: rgba(140,255,120,.55); box-shadow: 0 0 22px rgba(140,255,120,.25); }
.mgp-flash { position: absolute; left: 50%; bottom: 7%; z-index: 6; transform: translate(-50%, 10px) scale(.9); opacity: 0; padding: 8px 18px; border-radius: 12px; background: rgba(5,5,7,.92); border: 2px solid rgba(255,255,255,.2); color: #fff; font: 900 17px/1.15 system-ui, sans-serif; white-space: nowrap; transition: opacity .25s, transform .25s; pointer-events: none; }
.mgp-flash.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.mgp-flash.win { border-color: rgba(25,247,143,.65); color: #d2ffe9; box-shadow: 0 0 30px rgba(25,247,143,.3); } .mgp-flash.win b { color: #19f78f; }
.mgp-flash.lose { border-color: rgba(255,77,109,.55); color: #ffc9d3; } .mgp-flash.lose b { color: #ff7a8f; }
.mg-tile.spent .mgp { filter: grayscale(.7) brightness(.6); }
/* ── Heli Run (owner 10/21): full-width featured tile, portrait game canvas + weekly board ── */
.mg-tile.wide.feature { grid-column: 1 / -1; grid-template-rows: 290px auto; }
@media (max-width: 1000px) { .mg-tile.wide.feature { grid-column: 1 / -1; grid-template-rows: 220px auto; } }
.mg-heli-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .mg-heli-stage { grid-template-columns: 1fr; } }
.mg-heli-play { display: grid; place-items: center; min-width: 0; }
.mg-heli-cv { position: relative; border-radius: 16px; overflow: hidden; line-height: 0; background: #160d2c; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,150,60,.25); }
.mg-heli-cv canvas { display: block; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.mg-heli-over { position: absolute; inset: 0; display: grid; place-items: center; line-height: normal; background: radial-gradient(circle at 50% 45%, rgba(10,6,16,.35), rgba(10,6,16,.8)); animation: mgIn .3s ease; }
.mg-heli-over[hidden] { display: none; }
.mg-heli-card { text-align: center; padding: 26px 30px 20px; min-width: min(300px, 82%); border-radius: 18px; background: linear-gradient(180deg, rgba(36,22,40,.95), rgba(14,10,18,.96)); border: 1px solid rgba(255,150,60,.35); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.mg-heli-card.best { border-color: rgba(255,210,90,.75); box-shadow: 0 0 40px rgba(255,190,70,.3), 0 20px 50px rgba(0,0,0,.6); }
.mg-heli-card small { display: block; font: 800 12px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; }
.mg-heli-card b { display: block; margin-top: 10px; font: 900 64px/1 system-ui, sans-serif; color: #fff; }
.mg-heli-card > em { display: block; margin-top: 4px; font: 700 13px/1 system-ui, sans-serif; font-style: normal; color: rgba(255,255,255,.55); }
.mg-heli-card p { margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.8); }
.mg-heli-card p.bad { color: #ff9aa9; }
.mg-heli-card strong { color: #ffd29a; }
.mg-heli-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.mg-heli-card > i { display: block; margin-top: 12px; font-size: 12px; font-style: normal; color: rgba(255,255,255,.45); }
.mg-heli-side { display: grid; gap: 12px; }
.mg-heli-prize { padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,150,60,.22), rgba(255,90,60,.08)); border: 1px solid rgba(255,150,60,.35); }
.mg-heli-prize small { display: block; font: 800 11px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; }
.mg-heli-prize b { display: block; margin-top: 6px; font: 900 32px/1.1 system-ui, sans-serif; color: #ffd29a; }
.mg-heli-prize em { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: rgba(255,255,255,.65); }
.mg-heli-board { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mg-heli-board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid transparent; }
.mg-heli-board li span { font: 900 13px/1 system-ui, sans-serif; text-align: center; color: rgba(255,255,255,.5); }
.mg-heli-board li b { overflow: hidden; font: 700 14px/1.2 system-ui, sans-serif; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.mg-heli-board li b em { font-style: normal; font-weight: 600; color: rgba(255,255,255,.45); }
.mg-heli-board li i { font: 900 15px/1 system-ui, sans-serif; font-style: normal; color: #ffd29a; }
.mg-heli-board li.first { background: linear-gradient(90deg, rgba(255,200,80,.22), rgba(255,200,80,.04)); border-color: rgba(255,200,80,.35); }
.mg-heli-board li.first span { color: #ffd25c; }
.mg-heli-board li.top span { color: #ffb27a; }
.mg-heli-board li.you { border-color: rgba(120,200,255,.5); }
.mg-heli-me, .mg-heli-last, .mg-heli-empty { margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.mg-heli-me b, .mg-heli-last b { color: #fff; }
.mg-heli-rules { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.45; }
.mg-heli-rules b { color: #fff; }

/* Heli Run 2nd/3rd prizes (owner 10/22) */
.mg-heli-places { display: block; margin: 2px 0 4px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); }
.mg-heli-places b { color: #ffd34d; font-size: 14px; }
.mg-heli-board .mg-heli-pz { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #1a1206; background: #ffd34d; vertical-align: middle; }

/* ── Chernarus Recon (owner 10/24): drone feed + guess map ── */
.rc-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rc-feed { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #0b0e0a; border: 1px solid rgba(var(--mg), .35); box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4); isolation: isolate; }
.rc-feed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; filter: contrast(1.04) saturate(.92); transition: opacity .25s ease, filter .4s ease, transform .9s cubic-bezier(.2,.8,.2,1); transform: scale(1.02); }
.rc-feed.swap > img { opacity: 0; transform: scale(1.08); }
.rc-feed.revealed > img { filter: contrast(1) saturate(.6) brightness(.55) blur(1px); }
/* camera: scanlines + vignette + a slow light sweep */
.rc-feed::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); mix-blend-mode: multiply; }
.rc-feed::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(160,255,220,.06), transparent); animation: rcSweep 5.5s linear infinite; }
@keyframes rcSweep { to { top: 100%; } }
.rc-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #d9fff0; font: 800 12.5px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 1.5px; text-shadow: 0 1px 2px rgba(0,0,0,.85); }
.rc-c { position: absolute; width: 34px; height: 34px; border: 2.5px solid rgba(217,255,240,.85); }
.rc-c.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; } .rc-c.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.rc-c.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; } .rc-c.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.rc-ret { position: absolute; left: 50%; top: 50%; width: 22%; transform: translate(-50%, -50%); fill: none; stroke: rgba(217,255,240,.8); stroke-width: 1.4; filter: drop-shadow(0 0 2px rgba(0,0,0,.8)); }
.rc-ret .dot { fill: #ff4d4d; stroke: none; }
.rc-top { position: absolute; left: 58px; right: 58px; top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-bot { position: absolute; left: 58px; right: 96px; bottom: 24px; display: flex; gap: 18px; }
.rc-rec { display: inline-flex; align-items: center; gap: 6px; } .rc-rec b { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; animation: rcBlink 1.1s steps(2, end) infinite; }
@keyframes rcBlink { 50% { opacity: .15; } }
.rc-time { padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.45); font-size: 15px; }
.rc-time.low { color: #ff6a5a; animation: rcBlink .7s steps(2, end) infinite; }
.rc-compass { position: absolute; right: 18px; bottom: 18px; width: 64px; height: 64px; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.rc-compass svg { width: 100%; height: 100%; overflow: visible; }
.rc-compass circle { fill: rgba(0,0,0,.45); stroke: rgba(217,255,240,.7); stroke-width: 1.5; }
.rc-compass .n { fill: #ff4d4d; } .rc-compass .s { fill: rgba(217,255,240,.8); }
.rc-compass text { fill: #fff; font: 900 9px system-ui, sans-serif; text-anchor: middle; }
.rc-timebar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.4); }
.rc-timebar u { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, rgb(var(--mg)), #d9fff0); box-shadow: 0 0 10px rgba(var(--mg), .7); transition: width .25s linear; }
.rc-veil { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.rc-veil.show { opacity: 1; pointer-events: auto; }
.rc-res { display: grid; justify-items: center; gap: 8px; max-width: 360px; padding: 20px 24px; border-radius: 16px; text-align: center; background: rgba(6,9,8,.88); border: 1px solid rgba(var(--mg), .45); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: mgIn .45s cubic-bezier(.2,.9,.3,1.3); }
.rc-res small { font: 900 12px/1 system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: rgb(var(--mg)); }
.rc-res.meh small { color: #ffc35c; } .rc-res.bad small { color: #ff7a6a; }
.rc-res strong { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 52px; line-height: 1; color: #fff; text-shadow: 0 0 26px rgba(var(--mg), .45); }
.rc-res strong em { font-size: 20px; font-style: normal; color: rgba(255,255,255,.6); }
.rc-res p { margin: 0; color: rgba(255,255,255,.8); font-size: 14.5px; } .rc-res p b { color: #fff; }
.rc-paid { padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: 14px; color: #0b1a12; background: rgb(var(--mg)); }
.rc-right { display: grid; gap: 12px; }
.rc-mapwrap { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0c1110; }
.rc-map { position: absolute; inset: 0; background: #0c1110; cursor: crosshair; }
.rc-map .leaflet-control-zoom a { background: rgba(10,12,12,.85); color: #fff; border-color: rgba(255,255,255,.15); }
.rc-maptag { position: absolute; left: 12px; top: 10px; z-index: 500; padding: 4px 9px; border-radius: 6px; font: 900 11px/1 system-ui, sans-serif; letter-spacing: 2px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.55); pointer-events: none; }
.rc-map .leaflet-control-container .leaflet-top.leaflet-left { top: 30px; }
.rc-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.rc-actions .mg-cta { height: 52px; }
.rc-climb { height: 52px; display: grid; align-content: center; gap: 2px; line-height: 1.1; }
.rc-climb em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #ffc35c; }
.rc-tally { display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; gap: 6px; }
.rc-tally span { display: grid; gap: 3px; padding: 7px 4px; border-radius: 9px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.rc-tally small { font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.45); } .rc-tally b { font-size: 13.5px; color: rgba(255,255,255,.75); }
.rc-tally .cur { border-color: rgba(var(--mg), .6); box-shadow: 0 0 12px rgba(var(--mg), .25); }
.rc-tally .great b { color: rgb(var(--mg)); } .rc-tally .ok b { color: #ffd15e; } .rc-tally .bad b { color: #ff7a6a; }
.rc-tally .sum { background: rgba(var(--mg), .12); border-color: rgba(var(--mg), .35); } .rc-tally .sum b { color: #fff; font-size: 15px; }
/* map pins */
.rc-pin { background: none; border: 0; }
.rc-pin i { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin-left: -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ffd15e; border: 2.5px solid #1a1206; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.rc-pin.real i { background: rgb(120,230,190); }
.rc-pin.guess.small i { width: 18px; height: 18px; margin-left: -9px; top: 10px; }
.rc-pin b { position: absolute; left: 0; right: 0; top: 5px; z-index: 1; text-align: center; font: 900 12px/16px system-ui, sans-serif; color: #08130e; }
/* start screen */
.rc-rules { display: grid; gap: 8px; margin: 0 0 12px; padding-left: 20px; color: rgba(255,255,255,.82); font-size: 14.5px; line-height: 1.5; }
.rc-rules b { color: #fff; }
.mgp-rc .rc-time { display: none; } /* the DAILY badge sits there on the lobby tile */
.mgp-rc .rc-top { justify-content: flex-start; gap: 26px; }
.rc-ladder { grid-template-columns: repeat(3, 1fr) !important; }
.rc-ladder b { color: rgb(var(--mg)) !important; }
.rc-board { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid rgba(var(--mg), .16); }
.rc-board h4 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin: 0 0 10px; font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 18px; letter-spacing: .5px; color: #fff; }
.rc-board h4 small { font: 800 12px system-ui, sans-serif; color: #ffd15e; letter-spacing: 0; }
.rc-board ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rc-board li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid transparent; }
.rc-board li span { font-weight: 900; color: rgba(255,255,255,.45); text-align: center; } .rc-board li:nth-child(-n+3) span { color: #ffd15e; }
.rc-board li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; } .rc-board li em { font-style: normal; font-weight: 900; color: rgb(var(--mg)); }
.rc-board li.you { border-color: rgba(var(--mg), .5); }
.rc-board p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.6); } .rc-board .rc-me { margin-top: 8px; color: rgba(255,255,255,.8); } .rc-board .rc-me b { color: #fff; }
/* end of day */
.rc-summary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.rc-sum-head { grid-column: 1 / -1; display: grid; gap: 6px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(var(--mg), .18), rgba(var(--mg), .03)); border: 1px solid rgba(var(--mg), .35); }
.rc-sum-head small { font: 900 12px system-ui, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: rgb(var(--mg)); }
.rc-sum-head strong { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: 44px; line-height: 1; color: #fff; } .rc-sum-head strong em { font-size: 18px; font-style: normal; color: rgba(255,255,255,.55); }
.rc-sum-head span { font-weight: 800; color: rgba(255,255,255,.8); }
.rc-sum-map { grid-row: span 3; min-height: 360px; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0c1110; }
.rc-sum-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; align-content: start; }
.rc-sum-list li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.rc-sum-list span { font-weight: 900; color: rgb(var(--mg)); text-align: center; } .rc-sum-list b { color: #fff; } .rc-sum-list em { font-style: normal; color: rgba(255,255,255,.6); font-size: 13.5px; } .rc-sum-list i { font-style: normal; font-weight: 900; color: #fff; min-width: 46px; text-align: right; }
.rc-sum-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; } .rc-sum-act em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.55); }
.rc-summary .rc-board { margin: 0; }
/* lobby tile preview: the feed fills the art, drifting like a hovering drone */
.mgp-rc { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.mgp-rc > img { animation: rcHover 9s ease-in-out infinite alternate; }
@keyframes rcHover { from { transform: scale(1.12) translate(-1.5%, 1%) rotate(-.6deg); } to { transform: scale(1.16) translate(1.5%, -1%) rotate(.6deg); } }
.mgp-rc .rc-ret { width: 13%; } .mgp-rc .rc-compass { width: 52px; height: 52px; }
@media (max-width: 860px) {
  .rc-stage, .rc-summary { grid-template-columns: 1fr; }
  .rc-feed { max-height: 62vh; aspect-ratio: auto; height: min(92vw, 62vh); }
  .rc-mapwrap { aspect-ratio: auto; height: min(92vw, 58vh); }
  .rc-sum-map { grid-row: auto; min-height: 0; height: min(90vw, 60vh); aspect-ratio: auto; }
}
@media (max-width: 520px) {
  .rc-hud { font-size: 11px; letter-spacing: 1px; }
  .rc-c { width: 24px; height: 24px; } .rc-top { left: 44px; right: 44px; top: 18px; } .rc-bot { left: 44px; right: 80px; bottom: 20px; gap: 10px; }
  .rc-compass { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .rc-res strong { font-size: 42px; }
  .rc-tally { grid-template-columns: repeat(5, 1fr); } .rc-tally .sum { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; gap: 8px; }
}
/* ── Trick or Treat (Halloween 2026) ── real DayZ pumpkin / treat renders on a moonlit patch */
.mg-tot-art { background: radial-gradient(circle at 78% 22%, rgba(255,236,190,.95) 0 5%, rgba(255,220,150,.28) 6%, transparent 18%), radial-gradient(ellipse at 50% 100%, rgba(255,120,30,.38), transparent 60%), linear-gradient(180deg, #1a0b26 0%, #120716 55%, #0a0505 100%); }
.mg-tot-art .ground { position: absolute; left: -5%; right: -5%; bottom: -14%; height: 42%; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #2a1508, #0b0503 70%); }
.mg-tot-art img { position: absolute; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.7)); }
.mg-tot-art .p { bottom: 10%; height: 46%; }
.mg-tot-art .p1 { left: 10%; transform: rotate(-8deg); height: 38%; }
.mg-tot-art .p2 { left: 50%; transform: translateX(-50%); height: 58%; filter: drop-shadow(0 0 26px rgba(255,140,40,.75)) drop-shadow(0 10px 18px rgba(0,0,0,.7)); animation: totGlow 2.6s ease-in-out infinite; }
.mg-tot-art .p3 { right: 9%; transform: rotate(9deg); height: 40%; }
.mg-tot-art .t { height: 18%; opacity: .95; animation: totFloat 4s ease-in-out infinite; }
.mg-tot-art .t1 { left: 26%; top: 14%; transform: rotate(-14deg); }
.mg-tot-art .t2 { right: 27%; top: 10%; animation-delay: -1.3s; }
.mg-tot-art .t3 { right: 6%; top: 34%; height: 15%; opacity: .55; animation-delay: -2.4s; }
@keyframes totGlow { 50% { filter: drop-shadow(0 0 40px rgba(255,160,50,.95)) drop-shadow(0 10px 18px rgba(0,0,0,.7)); } }
@keyframes totFloat { 50% { translate: 0 -8px; } }

.mg-tot-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.mg-tot-patch { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 22px 18px 18px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 108%, rgba(255,120,30,.22), transparent 55%), linear-gradient(180deg, #170a22, #0d0610 60%, #0a0605); border: 1px solid rgba(255,140,40,.22); box-shadow: inset 0 0 60px rgba(0,0,0,.6); }
.mg-tot-patch .moon { position: absolute; right: 22px; top: 14px; width: 54px; height: 54px; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 40% 40%, #fff6dc, #f2d79a 60%, #c9a35d); box-shadow: 0 0 60px rgba(255,226,160,.35); opacity: .75; }
.mg-tot-patch.shake { animation: mgShake .5s; }
.mg-pk { position: relative; aspect-ratio: 1 / 1; border: 0; border-radius: 16px; padding: 0 !important; cursor: pointer; background: radial-gradient(ellipse at 50% 82%, rgba(0,0,0,.55), transparent 62%); transition: transform .15s ease; }
.mg-pk .pk { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.65)); transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .35s ease, filter .25s ease; pointer-events: none; }
.mg-pk:not(:disabled):hover .pk { transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 0 18px rgba(255,150,50,.55)) drop-shadow(0 8px 12px rgba(0,0,0,.65)); }
.mg-pk:disabled { cursor: default; }
.mg-pk.smashing .pk { animation: totWobble .65s ease-in-out; }
@keyframes totWobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg) scale(1.04); } 40% { transform: rotate(8deg) scale(.97); } 60% { transform: rotate(-6deg) scale(1.05); } 80% { transform: rotate(4deg) scale(.95, 1.04); } }
.mg-pk .in { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .4s cubic-bezier(.2,.9,.3,1.4); pointer-events: none; }
.mg-pk .in img { width: 70%; height: 58%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.7)); }
.mg-pk .in b { font-family: Impact, "Arial Black", sans-serif; font-weight: 400; font-size: clamp(13px, 1.6vw, 18px); color: #c9ff8a; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.mg-pk .in em { font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #ffd84a; }
.mg-pk.open .pk, .mg-pk.trick .pk { opacity: .08; transform: scale(.9); filter: grayscale(.6) brightness(.6); }
.mg-pk.open .in, .mg-pk.trick .in { opacity: 1; transform: none; }
.mg-pk.open { background: radial-gradient(circle at 50% 45%, rgba(120,255,110,.14), transparent 65%); }
.mg-pk.golden { background: radial-gradient(circle at 50% 45%, rgba(255,210,60,.3), transparent 66%); box-shadow: inset 0 0 0 1px rgba(255,210,60,.45); }
.mg-pk.golden .in b { color: #ffd84a; }
.mg-pk.trick { background: radial-gradient(circle at 50% 45%, rgba(255,60,50,.16), transparent 65%); }
.mg-pk.trick .in b { color: #ff6a5a; }
.mg-pk.trick:not(.caught) .in { opacity: .55; }
.mg-pk.caught { background: radial-gradient(circle at 50% 45%, rgba(255,40,30,.4), transparent 70%); box-shadow: inset 0 0 0 2px rgba(255,70,60,.7), 0 0 30px rgba(255,40,30,.35); }
.mg-pk .mg-pop { font-size: 22px; top: 22%; }
.mg-tot-hud { display: grid; gap: 12px; }
#mg-tot-risk.mid { color: #ffb04a; } #mg-tot-risk.hi { color: #ff6a5a; }
@media (max-width: 900px) { .mg-tot-stage { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .mg-tot-stage { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .mg-tot-stage > *, .mg-tot-stage > .mg-side > * { width: 100%; box-sizing: border-box; }
  .mg-pk .in em { display: none; }
  .mg-pk .in b { font-size: 13px; }
  .mg-tot-stage > .mg-side { display: contents; }
  .mg-tot-hud { order: -1; position: sticky; top: calc(58px + env(safe-area-inset-top, 0px)); z-index: 8; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(14,8,10,.94); border: 1px solid rgba(255,140,40,.35); box-shadow: 0 10px 26px rgba(0,0,0,.55); }
  .mg-tot-hud .mg-stat { padding: 0; background: none; border: 0; gap: 2px; }
  .mg-tot-hud .mg-stat.big > b { font-size: 26px; }
  .mg-tot-hud .mg-cta { height: 46px; padding: 0 16px !important; font-size: 16px; }
  .mg-tot-patch { gap: 6px; padding: 14px 10px 10px; }
  .mg-tot-patch .moon { width: 36px; height: 36px; right: 12px; top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mg-tot-art .p2, .mg-tot-art .t, .mg-pk.smashing .pk { animation: none !important; } }

/* ── Horde (owner 11/1): full-width map canvas, sprint button on touch screens ── */
.hd-stage { display: grid; }
.hd-cv { -webkit-user-select: none; user-select: none; position: relative; border-radius: 16px; overflow: hidden; line-height: 0; background: #14130e; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(150,235,80,.25); }
.hd-cv canvas { display: block; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.hd-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; line-height: normal; font: 800 14px/1.3 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #c9ff7a; background: radial-gradient(circle at 50% 45%, #1d2412, #0b0d08); }
.hd-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(160,255,80,.2); border-top-color: #a6ff3c; animation: hdSpin .8s linear infinite; }
@keyframes hdSpin { to { transform: rotate(360deg); } }
.hd-sprint { display: none; position: absolute; right: 14px; bottom: 120px; width: 78px; height: 78px; padding: 0 !important; border-radius: 50%; border: 2px solid rgba(190,255,90,.6); background: radial-gradient(circle at 40% 35%, rgba(160,255,80,.35), rgba(20,30,10,.75)); color: #e4ffb8; font: 900 12px/1 system-ui, sans-serif; letter-spacing: .08em; line-height: 78px; touch-action: none; -webkit-user-select: none; user-select: none; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.hd-sprint.on { background: radial-gradient(circle at 40% 35%, rgba(200,255,120,.75), rgba(90,160,30,.85)); color: #10180a; transform: scale(.94); }
@media (pointer: coarse) { .hd-sprint { display: block; } }
/* mouse lock (11/2): crosshair the locked mouse drives + a hint until the first click */
.hd-xhair { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; z-index: 3; border-radius: 50%; border: 2px solid rgba(214,255,140,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 12px rgba(160,255,80,.45); will-change: transform; }
.hd-xhair::before, .hd-xhair::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(214,255,140,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.hd-xhair::before { width: 2px; height: 8px; margin: -4px 0 0 -1px; }
.hd-xhair::after { width: 8px; height: 2px; margin: -1px 0 0 -4px; }
.hd-xhair[hidden], .hd-lock[hidden] { display: none; }
.hd-lock { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; pointer-events: none; padding: 8px 16px; border-radius: 999px; background: rgba(10,14,8,.72); border: 1px solid rgba(160,255,80,.35); color: #e4ffb8; font: 700 13px/1.2 system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; backdrop-filter: blur(6px); }
.hd-cv:has(.hd-xhair:not([hidden])) canvas { cursor: none; }
.hd-card { border-color: rgba(150,235,80,.4); background: linear-gradient(180deg, rgba(22,32,16,.95), rgba(9,12,7,.97)); }
.hd-card small { color: #b8f27a; }
.hd-stats { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.hd-stats span { display: grid; gap: 2px; font-size: 12px; color: rgba(255,255,255,.6); }
.hd-stats span b { margin: 0; font: 900 20px/1 system-ui, sans-serif; color: #e4ffb8; }
.mg-t-horde .hd-prize { background: linear-gradient(135deg, rgba(150,235,80,.2), rgba(60,120,30,.08)); border-color: rgba(150,235,80,.35); }
.mg-t-horde .hd-prize small { color: #b8f27a; }
.mg-t-horde .hd-prize > b { color: #e4ffb8; }
.hd-prize .mg-heli-places b { display: inline; margin: 0; font-size: 14px; }
/* Horde multiplayer: live count + skin picker (owner 11/1) */
.hd-live { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(150,235,80,.08); border: 1px solid rgba(150,235,80,.3); font-size: 13px; color: rgba(255,255,255,.8); }
.hd-live i { width: 9px; height: 9px; border-radius: 50%; background: #9dff3c; box-shadow: 0 0 10px #9dff3c; animation: hdPulse 1.4s ease-in-out infinite; }
.hd-live b { font-size: 16px; color: #e4ffb8; }
@keyframes hdPulse { 50% { opacity: .35; } }
.hd-skins-h { margin-top: 22px; }
.hd-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.hd-skin { position: relative; display: grid; justify-items: start; gap: 3px; padding: 8px 10px 10px !important; border-radius: 12px; text-align: left; cursor: pointer; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25)); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.hd-skin canvas { width: 100%; height: auto; aspect-ratio: 168 / 72; border-radius: 8px; background: radial-gradient(ellipse at 60% 50%, rgba(255,255,255,.06), rgba(0,0,0,.35)); }
.hd-skin b { font: 800 13px/1.2 system-ui, sans-serif; }
.hd-skin em { font-style: normal; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.55); }
.hd-skin:not(.locked):hover { transform: translateY(-2px); border-color: var(--sk); }
.hd-skin.on { border-color: var(--sk); box-shadow: 0 0 0 1px var(--sk), 0 0 22px color-mix(in srgb, var(--sk) 35%, transparent); }
.hd-skin.on em { color: var(--sk); }
.hd-skin.locked { cursor: default; }
.hd-skin.locked canvas { filter: saturate(.75) brightness(.55); }
.hd-skin.locked em { color: #ffcf7a; }
.hd-skin u { display: block; width: 100%; height: 4px; margin-top: 2px; border-radius: 4px; background: rgba(255,255,255,.1); text-decoration: none; overflow: hidden; }
.hd-skin u s { display: block; height: 100%; background: linear-gradient(90deg, #9dff3c, #ffd34d); text-decoration: none; }
.hd-skin small { font-size: 10px; color: rgba(255,255,255,.45); }
.hd-skin .lock { position: absolute; top: 12px; right: 14px; font-size: 14px; }
/* the skin's in-game picture (like the Sinkhole picker's .sk-sw .shot) */
.hd-skin .hd-shot { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 9px; margin-bottom: 3px; background: #14130e; box-shadow: 0 0 0 1px color-mix(in srgb, var(--sk) 45%, transparent); }
.hd-skin.on .hd-shot { box-shadow: 0 0 0 2px var(--sk), 0 0 16px -4px var(--sk); }
.hd-skin.locked .hd-shot { filter: grayscale(.85) brightness(.6); }
.hd-skin canvas[hidden] { display: none; }
.hd-loading .mg-cta { margin-top: 6px; }
.hd-loading[hidden] { display: none; }

/* ── Badlands Hunt (owner 11/1): thermal scope view ── */
.hn-stage { display: grid; justify-items: center; }
.hn-cv { -webkit-user-select: none; user-select: none; position: relative; border-radius: 14px; overflow: hidden; line-height: 0; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,184,74,.25); }
.hn-cv canvas { display: block; cursor: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.hn-reload { display: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; padding: 0 14px !important; height: 40px; border-radius: 10px; border: 1px solid rgba(255,184,74,.6); background: rgba(10,10,10,.7); color: #ffb84a; font: 800 12px/40px ui-monospace, Consolas, monospace; letter-spacing: .1em; touch-action: none; }
@media (pointer: coarse) { .hn-reload { display: block; } }
.hn-mode { position: absolute; left: 16px; top: 38px; height: 26px; padding: 0 10px !important; border-radius: 13px; border: 1px solid rgba(255,184,74,.45); background: rgba(10,10,10,.55); color: #ffcf8a; font: 800 10px/24px ui-monospace, Consolas, monospace; letter-spacing: .08em; cursor: pointer; }
.hn-mode:hover { background: rgba(255,184,74,.18); }
@media (max-width: 640px) { .hn-mode { left: 8px; top: 26px; height: 22px; line-height: 20px; font-size: 9px; } }
.hn-card { border-color: rgba(255,184,74,.4); background: linear-gradient(180deg, rgba(30,26,20,.95), rgba(10,9,8,.97)); }
.hn-card small { color: #ffb84a; }
.hn-card .hd-stats { flex-wrap: wrap; gap: 16px; }
.hn-card .hd-stats span b { color: #fff; }
.mg-t-hunt .hn-prize { background: linear-gradient(135deg, rgba(255,184,74,.18), rgba(120,80,30,.08)); border-color: rgba(255,184,74,.35); }
.hn-prize .mg-heli-places b { display: inline; margin: 0; font-size: 14px; }
.hn-preview { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #ffd9a0; background: rgba(255,184,74,.12); border: 1px dashed rgba(255,184,74,.45); }
/* Snake Pit touch joystick (11/3) */
.hd-joy { position: absolute; z-index: 6; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; pointer-events: none; border: 2px solid rgba(166,255,77,.45); background: radial-gradient(closest-side, rgba(166,255,77,.12), rgba(0,0,0,.25)); }
.hd-joy[hidden] { display: none; }
.hd-joy i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e9ffc9, #8dff3c 55%, #3b7a12); box-shadow: 0 0 18px rgba(141,255,60,.6); }

/* ═════ Sinkhole (11/3) ═════ */
.sk-stage { position: relative; }
.sk-cv { position: relative; border-radius: 16px; overflow: hidden; line-height: 0; background: #1c1b16; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(200,150,90,.3); -webkit-user-select: none; user-select: none; }
.sk-hud { position: absolute; inset: 0; pointer-events: none; font-family: "Barlow Condensed", system-ui, sans-serif; line-height: 1; }
.sk-time { position: absolute; top: 12px; left: 50%; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: 22px; letter-spacing: .06em; }
.sk-time.low { color: #ff6a5a; animation: cxPulse 1s ease-in-out infinite; }
.sk-score { position: absolute; top: 12px; left: 12px; display: grid; gap: 3px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.55); }
.sk-score small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #d9c09a; } .sk-score b { font-size: 26px; color: #fff; }
.sk-ranks { position: absolute; top: 12px; right: 12px; margin: 0; padding: 8px 10px; list-style: none; display: grid; gap: 4px; border-radius: 12px; background: rgba(0,0,0,.55); min-width: 130px; }
.sk-ranks li { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #d7dce4; } .sk-ranks li.me { color: #fff; font-weight: 800; }
.sk-ranks li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); } .sk-ranks li b { margin-left: auto; color: #fff; }
@media (max-width: 560px) { .sk-ranks { min-width: 0; font-size: 12px; } .sk-ranks li { font-size: 12px; } .sk-score b { font-size: 20px; } .sk-time { font-size: 18px; } }
/* Sinkhole 3D (owner 11/3): name tags over the pits, skin picker in the lobby */
.sk-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.sk-tag { position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid var(--c, #fff); color: #fff; font: 800 13px/1.2 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; will-change: transform; }
.sk-tag.me { background: var(--c, #8dff3c); color: #0b0c0f; border-color: transparent; }
.sk-cv::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: var(--flash, 0); pointer-events: none; z-index: 2; }
.sk-hud { z-index: 3; }
.sk-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 6px; }
.sk-sw { position: relative; display: grid; justify-items: center; gap: 4px; min-height: 0 !important; padding: 10px 6px 8px !important; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25)); color: #e8ebf0; cursor: pointer; font: 700 13px/1.1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .04em; }
.sk-sw:hover:not(:disabled) { border-color: var(--rim); }
.sk-sw.on { border-color: var(--rim); box-shadow: 0 0 0 1px var(--rim), 0 0 18px -4px var(--rim); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.2)); }
.sk-sw .pit { width: 52px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow) 0%, #000 55%, #0b0806 78%, #3a2c1e 92%); box-shadow: 0 0 0 2px var(--rim), 0 0 12px var(--rim); }
.sk-sw.m-prism .pit { box-shadow: 0 0 12px #c58bff; border: 2px solid transparent; background: radial-gradient(closest-side, var(--glow) 0%, #000 55%, #0b0806 78%, #3a2c1e 92%) padding-box, conic-gradient(#ff5f6d, #ffc371, #8dff3c, #4fc3ff, #c58bff, #ff5f6d) border-box; }
.sk-sw.m-chrome .pit { box-shadow: 0 0 0 2px var(--rim), 0 0 14px #fff; }
.sk-sw.locked { opacity: .55; cursor: not-allowed; }
.sk-sw.locked .pit { filter: grayscale(.8); }
.sk-sw small { font: 600 11px/1.15 system-ui, sans-serif; color: #aab1bc; letter-spacing: 0; text-align: center; }
.sk-cv:has(.hd-xhair:not([hidden])) canvas { cursor: none; }
.sk-cv .hd-xhair, .sk-cv .hd-lock { z-index: 4; }
.sk-cv .hd-lock { top: 58px; }

.sk-sw .shot { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rim) 50%, transparent); }
.sk-sw.on .shot { box-shadow: 0 0 0 2px var(--rim), 0 0 16px -4px var(--rim); }
.sk-sw.locked .shot { filter: grayscale(.85) brightness(.7); }

.sk-cv.sk-play canvas, .sk-cv.sk-play { cursor: none !important; }
.sk-cv:not(.sk-play), .sk-cv:not(.sk-play) canvas, .sk-cv .mg-heli-over, .sk-cv .mg-heli-over * { cursor: auto !important; }
.sk-cv .mg-heli-over button { cursor: pointer !important; }

/* ═════ Minigames hero v2 (owner 11/3: "needs a rework. It looks like ass"): the scene sits back, a fan of the real game
   covers floats on the right (each glows in its game's colour), a slow green-gold sheen + glints. Transform/opacity
   animations only, so phones run it too. ═════ */
#minigames .mg-hero { border: 1px solid transparent !important; background: linear-gradient(#050806, #050806) padding-box, linear-gradient(120deg, rgba(141,255,60,.7), rgba(255,214,110,.6), rgba(79,227,255,.45), rgba(141,255,60,.7)) border-box !important; box-shadow: 0 0 44px -16px rgba(141,255,60,.45), 0 20px 50px -20px rgba(0,0,0,.85); }
#minigames .mg-hero-scene { opacity: .38; filter: saturate(.8) blur(1.5px); }
#minigames .mg-hero .ff-hero-overlay { background: linear-gradient(90deg, rgba(4,7,5,.96) 0%, rgba(4,7,5,.8) 34%, rgba(4,7,5,.2) 62%, transparent 80%), radial-gradient(60% 80% at 76% 50%, rgba(141,255,60,.12), transparent 70%) !important; }
.mg-hero-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.mg-hero-sheen::before { content: ""; position: absolute; top: -25%; bottom: -25%; left: -70%; width: 240%; background: linear-gradient(110deg, transparent 32%, rgba(141,255,60,.14) 40%, rgba(255,226,140,.16) 47%, rgba(79,227,255,.12) 54%, transparent 62%); animation: mgSheen 10s ease-in-out infinite alternate; will-change: transform; }
@keyframes mgSheen { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.mg-hero-fan { position: absolute; right: 3%; top: 50%; width: min(620px, 50%); aspect-ratio: 1.55; transform: translateY(-50%); z-index: 2; pointer-events: none; }
.mgf { position: absolute; margin: 0; width: 46%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #0b0f0c;
    box-shadow: 0 0 0 1px rgba(var(--ac), .65), 0 0 26px -4px rgba(var(--ac), .55), 0 18px 34px -10px rgba(0,0,0,.9); animation: mgFloat 6s ease-in-out infinite; }
.mgf img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mgf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 35%), linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%); }
.mgf figcaption { position: absolute; left: 10px; bottom: 8px; z-index: 1; font: 800 15px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 4px #000; }
.mgf figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: rgb(var(--ac)); box-shadow: 0 0 8px rgb(var(--ac)); vertical-align: 1px; }
.mgf-0 { left: 27%; top: 30%; z-index: 5; width: 50%; rotate: -2deg; animation-delay: -1s; }
.mgf-1 { left: 0; top: 4%; z-index: 3; rotate: -9deg; animation-delay: -3s; }
.mgf-2 { right: 0; top: 2%; z-index: 4; rotate: 8deg; animation-delay: -2s; }
.mgf-3 { left: 2%; bottom: 0; z-index: 2; rotate: 7deg; animation-delay: -4.2s; }
.mgf-4 { right: 2%; bottom: 2%; z-index: 3; rotate: -7deg; animation-delay: -5s; }
@keyframes mgFloat { 50% { translate: 0 -8px; } }
.mg-hero-glints { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mg-hero-glints i { position: absolute; width: 14px; height: 14px; opacity: 0; transform: scale(.2); background: radial-gradient(closest-side, #fff, rgba(255,255,255,0) 70%); animation: csTwinkle 4.6s ease-in-out infinite; }
.mg-hero-glints i::before, .mg-hero-glints i::after { content: ""; position: absolute; left: 50%; top: -70%; width: 2px; height: 240%; margin-left: -1px; background: linear-gradient(transparent, #eaffd0 50%, transparent); }
.mg-hero-glints i::after { transform: rotate(90deg); }
.mg-hero-glints i:nth-child(1) { left: 56%; top: 16%; animation-delay: -.4s; } .mg-hero-glints i:nth-child(2) { left: 70%; top: 70%; animation-delay: -1.6s; }
.mg-hero-glints i:nth-child(3) { left: 88%; top: 24%; animation-delay: -2.7s; } .mg-hero-glints i:nth-child(4) { left: 94%; top: 82%; animation-delay: -3.5s; }
.mg-hero-glints i:nth-child(5) { left: 62%; top: 48%; animation-delay: -1.1s; } .mg-hero-glints i:nth-child(6) { left: 80%; top: 52%; animation-delay: -4.1s; }
.mg-hero-glints i:nth-child(7) { left: 40%; top: 10%; animation-delay: -2.2s; } .mg-hero-glints i:nth-child(8) { left: 12%; top: 86%; animation-delay: -3s; }
@keyframes csTwinkle { 0%, 72%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 82% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: .2; transform: scale(.5) rotate(70deg); } }
#minigames .mg-hero .ff-hero-content { position: relative; z-index: 4; }
@media (min-width: 901px) {
    #minigames .mg-hero { min-height: 440px !important; display: flex !important; align-items: center !important; }
    #minigames .mg-hero .ff-hero-content { padding: 40px 0 40px 56px !important; max-width: 44% !important; }
    #minigames .mg-hero .ff-hero-content .void-heading { display: block !important; }
    #minigames .mg-hero .ff-hero-content .void-heading .ff-h-white, #minigames .mg-hero .ff-hero-content .void-heading .ff-h-gold { display: block !important; font-size: clamp(44px, 4.8vw, 78px) !important; line-height: .95 !important; }
    #minigames .mg-hero .ff-sub { font-size: 16px !important; color: #d4dbd2 !important; max-width: 40ch; margin-top: 12px !important; }
}
@media (max-width: 900px) {
    #minigames .mg-hero { padding-bottom: 250px !important; }
    #minigames .mg-hero-fan { right: auto; left: 50%; top: auto; bottom: 14px; transform: translateX(-50%); width: min(440px, 94%); }
    .mgf figcaption { font-size: 12px; }
    .mgf-3, .mgf-4 { display: none; }
    .mgf-1 { top: 12%; } .mgf-2 { top: 10%; } .mgf-0 { top: 34%; }
}
#minigames.mg-in-game .mg-hero-fan { display: none; }
@media (prefers-reduced-motion: reduce) { .mgf, .mg-hero-sheen::before, .mg-hero-glints i { animation: none !important; } }
@media (min-width: 901px) { #minigames .mg-hero { height: auto !important; min-height: 460px !important; } #minigames .mg-hero .mg-hero-stats { flex-wrap: nowrap; max-width: 560px; } #minigames .mg-hero .mg-hero-stats > div { flex: 1 1 0; min-width: 0; } }
@media (min-width: 901px) { #minigames .mg-hero .ff-hero-content { position: relative !important; top: auto !important; left: auto !important; bottom: auto !important; transform: none !important; align-self: center !important; } }
@media (max-width: 900px) { #minigames .mg-hero .ff-hero-overlay { background: linear-gradient(180deg, rgba(4,7,5,.92) 0%, rgba(4,7,5,.7) 42%, rgba(4,7,5,.1) 60%, transparent 70%) !important; } #minigames .mg-hero-scene { opacity: .3; } }

/* Sinkhole live rounds (11/3) */
.sk-lobby { display: grid; place-items: center; min-height: 420px; padding: 20px; border-radius: 16px; background: radial-gradient(70% 90% at 50% 40%, rgba(200,150,90,.14), transparent 70%), #0d0c0a; border: 1px solid rgba(200,150,90,.3); }
.sk-lobby-box { display: grid; justify-items: center; gap: 10px; text-align: center; }
.sk-lobby-box b { font: 800 30px/1 "Barlow Condensed", system-ui, sans-serif; color: #fff; letter-spacing: .04em; }
.sk-lobby-box p { margin: 0; color: #d9c09a; }
.sk-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(200,150,90,.25); border-top-color: #e0a85a; animation: skSpin 1s linear infinite; }
@keyframes skSpin { to { transform: rotate(360deg); } }
.sk-lb-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 520px; }
.sk-lb-list li { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(200,150,90,.35); color: #fff; font: 700 14px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .04em; }
.sk-dead { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 3; padding: 12px 22px; border-radius: 14px; background: rgba(120,20,20,.75); color: #fff; font: 800 22px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .06em; pointer-events: none; }
.sk-final { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.sk-final li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); } .sk-final li.me { background: rgba(141,255,60,.14); }
.sk-final span { width: 20px; color: #d9c09a; font-weight: 800; } .sk-final b { flex: 1; color: #fff; } .sk-final i { font-style: normal; color: #fff; font-weight: 700; }
