/* Town games: full screen over the paused 3D town. */
#mg{position:fixed;inset:0;z-index:2700;display:flex;flex-direction:column;background:#1c1b19;color:#f5f3ee;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#mg[hidden]{display:none}
#mg>header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;flex:none}
#mg>header b{font-size:17px}
#mg-x{width:44px;height:44px;border:0;border-radius:50%;background:#2e2c28;color:inherit;font-size:24px;line-height:1;cursor:pointer}
#mg-body{flex:1;min-height:0;position:relative;overflow:auto;display:flex}
#mg-c{display:block;touch-action:none;user-select:none;-webkit-user-select:none}
.mg-card{margin:auto;width:min(460px,100%);box-sizing:border-box;padding:20px;text-align:center}
.mg-card h2{margin:6px 0;font-size:24px}
.mg-card p{margin:8px 0;font-size:15px;line-height:1.45;color:#d9d5cb}
.mg-big{font-size:58px;line-height:1.1}
.mg-ml{color:#a8a398!important}
.mg-pay{font-weight:700;color:#f5f3ee!important}
.mg-tip{font-size:13px!important;color:#a8a398!important}
.mg-card .primary,.mg-card .secondary{min-height:48px;padding:0 18px;font-size:15px;font-weight:700;cursor:pointer}
.mg-card>.primary{width:100%;margin-top:10px;text-align:center}
.mg-row{display:flex;gap:8px;margin-top:12px}
.mg-row button{flex:1;margin:0!important;text-align:center;display:block}
.mg-count{color:#a8a398!important;font-size:13px!important}
.mg-given{font-size:17px!important}
.mg-hint{min-height:22px;font-weight:600}
.mg-coins{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.mg-coins button{min-height:52px;font-size:17px}
