/* v6 mini-games (DESIGN_MINIGAMES.md): games sheet, full-screen game shell, sweeper / blocks / jump */

/* ------------------------------------------------------------------ games sheet */
.games-sheet > .games { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.gm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 44px; }
.gm-bal .jade-amt { font-size: 15px; padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.gm-meter { padding: 10px 12px; border-radius: 14px; background: var(--panel-raise); border: 1px solid var(--line); margin-bottom: 10px; }
.gm-meter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; }
.gm-count { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.gm-count b { color: #bff0d3; font-weight: 800; }
.gm-count .jade-svg, .gm-count .jade-img { width: 16px; height: 16px; }
.gm-bar { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.gm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #49b07f, #b6ecc9); transition: width .6s var(--ease); }
.gm-meter small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #a9dcbf; line-height: 1.4; }
.gm-meter.done { border-color: rgba(110, 196, 150, .35); }
.gm-list { display: grid; gap: 10px; padding-bottom: 6px; }
.gm-card {
  display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: stretch; text-align: left; width: 100%;
  padding: 8px; border-radius: 18px; background: var(--panel-raise); border: 1px solid var(--line);
  transition: transform .15s var(--ease), background .2s, opacity .2s;
}
.gm-card:active { transform: scale(.985); background: rgba(255, 255, 255, .08); }
.gm-card.loading { opacity: .6; pointer-events: none; }
.gm-cover { position: relative; display: block; border-radius: 12px; overflow: hidden; min-height: 84px; background: linear-gradient(160deg, #3d5a45, #1f3127); }
/* the PNG is a pseudo-layer above the drawn placeholder: if it fails to load, the placeholder stays visible */
.gm-cover::after { content: ''; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; background-repeat: no-repeat; }
.gm-cover { background-size: 0 0; } /* the element's own image is only consumed by ::after */
.gm-cover-mines { background-color: #3f5e3a; }
.gm-cover-blocks { background-color: #24493c; }
.gm-cover-jump { background-color: #4a6a73; }
.gm-cover-merge { background-color: #2f5a4a; }
.gm-cover-runner { background-color: #5a5a3c; }
.gm-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(236, 230, 218, .55);
  background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .12), transparent 60%), linear-gradient(160deg, rgba(143, 179, 122, .35), rgba(15, 20, 17, .4)); }
.gm-ph .ic { width: 34px; height: 34px; stroke-width: 1.4; }
.gm-txt { display: flex; flex-direction: column; min-width: 0; padding: 2px 2px 2px 0; }
.gm-name { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.gm-rule { margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--text-2); line-height: 1.4; }
.gm-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gm-reward { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: #bff0d3; white-space: nowrap; }
.gm-reward .jade-svg, .gm-reward .jade-img { width: 16px; height: 16px; }
.gm-reward.off { color: var(--text-3); }
.gm-reward.off .jade-svg, .gm-reward.off .jade-img { opacity: .5; filter: grayscale(.6); }
.gm-play { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 800; color: #1b140c;
  background: linear-gradient(180deg, #ebb46c, var(--amber) 60%, var(--amber-2)); }
.gm-play .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ full-screen shell */
.game-ov {
  position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, #2a3a2e 0%, #141c17 55%, #0b0f0c 100%);
  touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  opacity: 0; transform: translateY(14px); transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
}
.game-ov.open { opacity: 1; transform: none; }
.game-blocks {
  background: linear-gradient(rgba(9, 14, 11, .45), rgba(9, 14, 11, .7)), url('../assets/games/blocks_bg.png') center / cover no-repeat,
    radial-gradient(120% 70% at 50% 0%, #29433a 0%, #12201a 60%, #0a110d 100%);
}
.game-mines { background: radial-gradient(120% 70% at 50% 0%, #34472f 0%, #18221a 55%, #0c110d 100%); }
.game-jump { background: #b9cfc3; }
.gv-top {
  flex: none; display: grid; grid-template-columns: 38px 1fr minmax(38px, auto); align-items: center; gap: 10px;
  padding: calc(var(--sat) + 8px) calc(12px + var(--tg-right)) 8px calc(12px + var(--tg-left));
  background: linear-gradient(rgba(10, 14, 11, .82), rgba(10, 14, 11, .55)); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; z-index: 3;
}
.gv-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--panel-raise); border: 1px solid var(--line); }
.gv-x .ic { width: 16px; height: 16px; }
.gv-x:active { background: var(--amber-soft); }
.gv-title { font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-stat { justify-self: end; }
.gv-chip { display: inline-flex; gap: 5px; height: 30px; align-items: center; padding: 0 11px; border-radius: 99px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
.gv-chip b { font-weight: 800; }
.gv-chip small { color: var(--text-2); font-weight: 700; font-size: 12px; }
.gv-chip .ic { width: 16px; height: 16px; color: #e8806a; }
.gv-prog { flex: none; height: 3px; background: rgba(255, 255, 255, .06); position: relative; z-index: 3; }
.gv-prog i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); transition: transform .35s var(--ease);
  background: linear-gradient(90deg, var(--amber), #6ec496); }
.gv-body { flex: 1; min-height: 0; position: relative; padding: 0 var(--tg-right) var(--sab) var(--tg-left); }
.game-jump .gv-body { padding: 0; }

.gv-layer { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 6, .5);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: gv-fade .25s var(--ease-out); }
.gv-card { width: min(340px, 100%); text-align: center; padding: 22px 18px 18px; border-radius: 22px; background: var(--panel-strong);
  border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(0, 0, 0, .5); }
.gv-card h3 { margin: 8px 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.015em; }
.gv-card p { margin: 0 0 6px; color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 1.45; }
.gv-card small { display: block; color: var(--text-3); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.gv-card .cf-actions { margin-top: 10px; }
.gv-wait .gv-card { width: auto; min-width: 200px; padding: 18px 22px; }
.gv-wait p { margin: 10px 0 0; color: var(--text); font-weight: 700; }
.gv-spin { width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; border: 3px solid rgba(110, 196, 150, .2); border-top-color: #6ec496; animation: gv-rot .9s linear infinite; }
.gv-result .gv-card { transform: translateY(16px) scale(.96); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.gv-result.show .gv-card { transform: none; opacity: 1; }

.gv-coin { position: relative; width: 116px; height: 96px; margin: 0 auto; display: grid; place-items: center; }
.gv-coin .gv-jade { width: 64px; height: 64px; filter: drop-shadow(0 6px 14px rgba(40, 160, 110, .45)); animation: gv-pop .7s var(--ease-out) both; }
.gv-coin b { position: absolute; right: -6px; top: 6px; font-size: 24px; font-weight: 800; color: #bff0d3; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); animation: gv-up .8s .25s var(--ease-out) both; }
.gv-rays { position: absolute; inset: -6px; border-radius: 50%; animation: gv-rot 9s linear infinite, gv-fade .8s both;
  background: repeating-conic-gradient(from 0deg, rgba(110, 196, 150, .22) 0 10deg, transparent 10deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); }
.gv-spark { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #c9f3da; box-shadow: 0 0 8px #6ec496; opacity: 0; animation: gv-spark 1s .15s var(--ease-out) both; }
.gv-spark.s1 { --dx: -54px; --dy: -30px; } .gv-spark.s2 { --dx: 50px; --dy: -38px; animation-delay: .22s; }
.gv-spark.s3 { --dx: -44px; --dy: 30px; animation-delay: .3s; } .gv-spark.s4 { --dx: 56px; --dy: 22px; animation-delay: .18s; }
.gv-spark.s5 { --dx: 4px; --dy: -52px; animation-delay: .36s; }
.gv-coin .gv-cup { width: 56px; height: 56px; color: var(--amber); stroke-width: 1.4; animation: gv-pop .7s var(--ease-out) both; }
.gv-coin.lose .gv-leaf { width: 52px; height: 52px; color: var(--sage); stroke-width: 1.4; animation: gv-sway 2.4s ease-in-out infinite; }
@keyframes gv-fade { from { opacity: 0; } }
@keyframes gv-rot { to { transform: rotate(360deg); } }
@keyframes gv-pop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes gv-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes gv-spark { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); } }
@keyframes gv-sway { 50% { transform: rotate(-8deg) translateY(2px); } }

/* ------------------------------------------------------------------ sweeper */
.mn { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px; }
.mn-grid {
  --cell: 40px; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-auto-rows: var(--cell); gap: 2px;
  padding: 6px; border-radius: 16px; background: rgba(6, 10, 8, .55); border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(0, 0, 0, .4);
  touch-action: none;
}
.mn-c {
  position: relative; display: grid; place-items: center; border-radius: 8px; font-weight: 800; font-size: calc(var(--cell) * .5); line-height: 1;
  /* drawn bamboo tile: green culm with two nodes */
  background:
    linear-gradient(180deg, transparent 30%, rgba(40, 70, 30, .55) 30%, rgba(40, 70, 30, .55) 35%, transparent 35%, transparent 68%, rgba(40, 70, 30, .55) 68%, rgba(40, 70, 30, .55) 73%, transparent 73%),
    linear-gradient(90deg, #5b8f45, #8cc06a 40%, #6ea153 70%, #4b7a39);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .25);
  transition: transform .12s var(--ease), filter .12s;
}
.art-tile .mn-c { background: url('../assets/games/mines_tile.png') center / cover; }
.mn-c.hold { transform: scale(.93); filter: brightness(1.1); }
.mn-c.pressed { transform: scale(.9); filter: brightness(.8) saturate(.8); }
.mn-grid.busy .mn-c:not(.pressed) { cursor: progress; }
.mn-c.open, .art-tile .mn-c.open { background: linear-gradient(160deg, #d8d3bd, #bfb99f); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); transform: none; filter: none; }
.art-open .mn-c.open { background: url('../assets/games/mines_open.png') center / cover; }
.mn-c[data-n="1"] { color: #2c5c8f; } .mn-c[data-n="2"] { color: #2d6b38; } .mn-c[data-n="3"] { color: #a8382a; }
.mn-c[data-n="4"] { color: #3a3c8c; } .mn-c[data-n="5"] { color: #7a2a24; } .mn-c[data-n="6"] { color: #1d6c6c; }
.mn-c[data-n="7"] { color: #222; } .mn-c[data-n="8"] { color: #5a5a5a; }
.mn-c.open[data-n] { text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.mn-c.flag::after, .mn-c.mine::after { content: ''; position: absolute; inset: 12%; background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; }
.mn-c.flag::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 22V3' stroke='%23c9b47a' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M8 3.5h11l-3 4 3 4H8z' fill='%23c8402e' stroke='%237a2017' stroke-width='.8'/%3E%3C/svg%3E"); animation: mn-flag .25s var(--ease-out); }
.art-flag .mn-c.flag::after { background-image: url('../assets/games/mines_flag.png'); }
.mn-c.mine, .art-tile .mn-c.mine { background: linear-gradient(160deg, #cfc9b2, #b2ac93); }
.art-open .mn-c.mine { background: url('../assets/games/mines_open.png') center / cover; }
.mn-c.mine::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='7' width='10' height='14' rx='2' fill='%23b8392b' stroke='%235e1a12'/%3E%3Cpath d='M7 10h10M7 18h10' stroke='%23e2a65b' stroke-width='1.2'/%3E%3Cpath d='M12 7c0-2 1-3 3-4' stroke='%23463a2a' stroke-width='1.3' fill='none'/%3E%3Ccircle cx='15.5' cy='2.8' r='1.4' fill='%23f2c14e'/%3E%3C/svg%3E"); }
.art-bomb .mn-c.mine::after { background-image: url('../assets/games/mines_bomb.png'); inset: 6%; }
.mn-c.boom, .art-open .mn-c.boom { background: radial-gradient(circle, #f2c14e 0%, #d4612f 45%, #8a2a1c 100%); animation: mn-boom .5s var(--ease-out); }
.mn-c.wrong::before { content: ''; position: absolute; inset: 18%; z-index: 1; background:
  linear-gradient(45deg, transparent 45%, #e8806a 45%, #e8806a 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #e8806a 45%, #e8806a 55%, transparent 55%); }
.mn-c.nudge { animation: mn-nudge .3s; }
.mn-grid.shake { animation: mn-shake .45s; }
.mn-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 420px); padding: 0 4px; }
.mn-hint { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.35; }
.mn-mode { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 99px; font-weight: 800; font-size: 14px;
  background: var(--panel-raise); border: 1px solid var(--line-strong); color: var(--text); transition: background .2s, color .2s; }
.mn-mode .ic { width: 18px; height: 18px; color: #e8806a; }
.mn-mode.on { background: linear-gradient(180deg, #ebb46c, var(--amber) 60%, var(--amber-2)); color: #1b140c; border-color: transparent; }
.mn-mode.on .ic { color: #7a2017; }
@keyframes mn-flag { from { transform: translateY(-30%) scale(.6); opacity: 0; } }
@keyframes mn-boom { 0% { transform: scale(1.35); } 100% { transform: none; } }
@keyframes mn-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes mn-shake { 20% { transform: translate(-5px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(3px, 0); } }

/* ------------------------------------------------------------------ blocks */
.bl { height: 100%; display: flex; flex-direction: column; padding: 10px 12px 8px; }
.bl-main { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; gap: 12px; touch-action: none; }
.bl-board { display: block; border-radius: 10px; box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 0 0 1px rgba(236, 226, 205, .12); }
.bl-side { flex: none; width: 74px; display: flex; flex-direction: column; gap: 10px; }
.bl-box { padding: 8px 6px; border-radius: 14px; text-align: center; background: rgba(10, 16, 12, .6); border: 1px solid var(--line); }
.bl-box small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.bl-next { display: block; margin: 0 auto; }
.bl-lines { font-size: 18px; font-weight: 800; color: #bff0d3; }
.bl-ctrl { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 10px; touch-action: none; }
.bl-ctrl button { height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--text); background: rgba(14, 20, 16, .72);
  border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .08s, background .12s; }
.bl-ctrl button svg { width: 26px; height: 26px; }
.bl-ctrl button.down { transform: scale(.94); background: var(--amber-soft); color: var(--amber); }
.bl-ctrl button[data-a="hard"] { color: #bff0d3; }

/* ------------------------------------------------------------------ jump */
.jp { position: absolute; inset: 0; }
.jp-cv { display: block; width: 100%; height: 100%; touch-action: none; }
.jp-start { position: absolute; inset: 0; display: grid; place-items: end center; padding: 16px 16px calc(var(--sab) + 26px); background: linear-gradient(transparent 50%, rgba(5, 8, 6, .45)); }
.jp-start .gv-card { padding: 18px; }
.jp-start .big-btn { margin-top: 8px; }

@media (max-height: 640px) {
  .bl-ctrl button { height: 48px; }
  .mn-hint { display: none; }
}

/* ------------------------------------------------------------------ second life offer */
.gv-card.revive .big-btn { margin-top: 8px; }
.gv-card.revive .big-btn .ic { width: 20px; height: 20px; flex: none; }
/* icon + label as one centred group on a single line */
.gv-card.revive .gv-revive { justify-content: center; gap: 8px; padding: 0 14px; font-size: 15.5px; }
.gv-card.revive .gv-revive span { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-card.revive small { margin: 2px 0 6px; color: #a9dcbf; }
.gv-coin .gv-heart { width: 50px; height: 50px; color: #e8806a; stroke-width: 1.4; animation: gv-beat 1.2s ease-in-out infinite; }
@keyframes gv-beat { 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } 60% { transform: none; } }
.mn-c.defused::after { filter: saturate(.6); }
.mn-c.defused { box-shadow: inset 0 0 0 2px rgba(110, 196, 150, .7); }

/* ------------------------------------------------------------------ merge (Jade 2048) */
.game-merge {
  background: linear-gradient(rgba(9, 14, 11, .35), rgba(9, 14, 11, .6)), url('../assets/games/merge_bg.png') center / cover no-repeat,
    radial-gradient(120% 70% at 50% 0%, #3a4a40 0%, #18211b 60%, #0b0f0c 100%);
}
.mg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 12px; touch-action: none; }
.mg-board { position: relative; border-radius: 18px; background: rgba(8, 13, 10, .62); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05); }
.mg-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, var(--cell)); grid-auto-rows: var(--cell); gap: var(--gap); padding: var(--gap); }
.mg-cells i { border-radius: 12px; background: rgba(236, 226, 205, .06); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.mg-tiles { position: absolute; inset: 0; }
.mg-t { position: absolute; left: 0; top: 0; width: var(--cell); height: var(--cell); transition: transform .11s ease-out; will-change: transform;
  --glow: 0; filter: drop-shadow(0 calc(1px + var(--glow) * 0.6px) calc(var(--glow) * 2.4px) color-mix(in srgb, var(--tint) 75%, transparent)); }
.mg-t i { position: absolute; inset: 0; background-size: 100% 100%; border-radius: 12px; }
.mg-t b { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; letter-spacing: -.02em; color: #f6fbf7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 10px rgba(0, 0, 0, .25); font-size: calc(var(--cell) * .42); }
.mg-t b.d3 { font-size: calc(var(--cell) * .34); }
.mg-t b.d4 { font-size: calc(var(--cell) * .27); }
.mg-t.dark b { color: #1f3a2b; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.mg-t[data-v="512"] b, .mg-t[data-v="1024"] b, .mg-t[data-v="2048"] b { color: #fff8e6; }
.mg-t.new i, .mg-t.new b { animation: mg-new .18s ease-out both; }
.mg-t.pop i, .mg-t.pop b { animation: mg-pop .2s ease-out both; }
.mg-t.out { opacity: 0; transition: opacity .25s, transform .25s; }
.mg-board.nudge-L { animation: mg-nx .18s; --nx: -4px; } .mg-board.nudge-R { animation: mg-nx .18s; --nx: 4px; }
.mg-board.nudge-U { animation: mg-ny .18s; --ny: -4px; } .mg-board.nudge-D { animation: mg-ny .18s; --ny: 4px; }
.mg-board.stuck .mg-tiles { filter: saturate(.5) brightness(.8); transition: filter .4s; }
.mg-board.won { box-shadow: 0 0 0 2px rgba(224, 173, 76, .7), 0 0 40px rgba(224, 173, 76, .35); }
.mg-hint { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
@keyframes mg-new { from { transform: scale(.2); opacity: 0; } }
@keyframes mg-pop { 0% { transform: scale(.8); } 55% { transform: scale(1.14); } 100% { transform: none; } }
@keyframes mg-nx { 50% { transform: translateX(var(--nx)); } }
@keyframes mg-ny { 50% { transform: translateY(var(--ny)); } }

/* ------------------------------------------------------------------ runner */
.game-runner { background: #d5dccd; }
.game-runner .gv-body { padding: 0; }
.rn { position: absolute; inset: 0; }
.rn-cv { display: block; width: 100%; height: 100%; touch-action: none; }

/* HUD: the Games button is the 4th round button — keep room for the valley name on 360–430 px phones */
@media (max-width: 430px) {
  #hud .hud-ic + .hud-ic { margin-left: -3px; }
}
@media (max-width: 340px) {
  #hud .hud-ic { width: 30px; height: 30px; }
  #hud .hud-ic + .hud-ic { margin-left: -2px; }
}
