.more-games-page { min-height: 100dvh; overflow-x: hidden; background: #073f36; }
.more-games-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  padding: max(92px, calc(env(safe-area-inset-top) + 84px)) clamp(20px, 6vw, 96px) 158px;
  background:
    linear-gradient(rgba(4, 28, 23, .16), rgba(4, 28, 23, .2)),
    url("/api/storage/public-objects/newfun-house/newfun-more-games-board.png") center / cover fixed no-repeat;
}
.mg-back {
  position: absolute;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(245, 213, 140, .75);
  border-radius: 999px;
  background: rgba(12, 48, 39, .95);
  color: #fff0c8;
  font-size: .84rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.mg-back span { color: #f3ce78; font-size: 1.25rem; line-height: 1; }
.mg-heading { margin: 0 auto 14px; color: #fff0c8; text-align: center; }
.mg-heading p { margin: 0; font-size: .82rem; font-weight: 800; text-shadow: 0 2px 3px rgba(0, 0, 0, .65); }
.mg-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.mg-section { width: min(1100px, 100%); margin: 0 auto 18px; }
.mg-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.mg-section-heading h2 { margin: 0; color: #ffe29a; font: 1.15rem "Lilita One", Georgia, serif; text-shadow: 0 2px 3px rgba(0, 0, 0, .55); }
.mg-section-heading span { color: rgba(255, 240, 200, .84); font-size: .7rem; font-weight: 800; }
.mg-grid { display: grid; gap: 10px; }
.mg-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg-coming-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mg-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(241, 203, 112, .55);
  border-radius: 13px 5px 13px 5px;
  background: linear-gradient(145deg, rgba(7, 67, 53, .94), rgba(5, 42, 37, .96));
  box-shadow: inset 0 0 0 2px rgba(241, 203, 112, .07), 0 7px 18px rgba(0, 0, 0, .22);
  color: #fff0c8;
}
.mg-card-playable { min-height: 126px; text-decoration: none; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease; }
.mg-card-playable:hover, .mg-card-playable:focus-visible { transform: translateY(-2px); border-color: #ffe29a; background: linear-gradient(145deg, rgba(18, 90, 69, .97), rgba(8, 58, 48, .98)); outline: none; }
.mg-card-playable:focus-visible { box-shadow: 0 0 0 3px rgba(255, 226, 154, .65), 0 7px 18px rgba(0, 0, 0, .25); }
.mg-card-soon { min-height: 90px; gap: 8px; padding: 8px; border-color: rgba(222, 222, 209, .25); background: linear-gradient(145deg, rgba(42, 53, 48, .82), rgba(34, 42, 39, .9)); color: #deded5; filter: saturate(.55); }
.mg-card-art { display: block; flex: 0 0 84px; width: 84px; height: 100px; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; }
.mg-card-info { display: grid; min-width: 0; justify-items: start; gap: 5px; }
.mg-card h2 { margin: 0; color: #f6d98e; font: clamp(1rem, 1.45vw, 1.32rem)/1.05 "Lilita One", Georgia, serif; text-wrap: balance; text-shadow: 0 2px 3px rgba(0, 0, 0, .6); }
.mg-card-blurb { display: -webkit-box; margin: 0; overflow: hidden; color: #f0e5c8; font-size: .74rem; font-weight: 700; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mg-card-soon .mg-card-art { flex-basis: 52px; width: 52px; height: 64px; }
.mg-card-soon h2 { color: #ded8c5; font-size: .88rem; }
.mg-card-soon .mg-card-blurb { color: #c8c8be; font-size: .64rem; -webkit-line-clamp: 2; }
.mg-coming, .mg-play { display: inline-flex; min-height: 26px; align-items: center; justify-content: center; padding: 4px 10px; border: 1px solid #efd082; border-radius: 999px; background: #104b3f; color: #fff0c8; font-size: .7rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.mg-play { min-height: 27px; padding-inline: 15px; }
.mg-play:hover { background: #1a6753; }
.mg-card-soon .mg-coming { min-height: 22px; padding: 3px 8px; border-color: rgba(223, 221, 208, .35); background: rgba(62, 67, 62, .85); color: #deded5; font-size: .61rem; }
.mg-card-preview { cursor: pointer; text-decoration: none; transition: border-color 150ms ease, background 150ms ease; }
.mg-card-preview:hover, .mg-card-preview:focus-visible { border-color: rgba(255, 226, 154, .75); background: linear-gradient(145deg, rgba(52, 67, 58, .9), rgba(37, 50, 44, .96)); outline: none; }
.mg-card-preview:focus-visible { box-shadow: 0 0 0 3px rgba(255, 226, 154, .5), 0 7px 18px rgba(0, 0, 0, .25); }
.mg-player-quirkie { z-index: 20; width: clamp(74px, 9vw, 100px); height: clamp(98px, 16vh, 130px); }

@media (min-width: 621px) and (max-width: 899px) {
  .more-games-scene { padding-inline: 26px; }
  .mg-coming-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mg-card-soon { min-height: 84px; }
}
@media (max-width: 620px) {
  .more-games-scene { padding: max(96px, calc(env(safe-area-inset-top) + 86px)) 14px 158px; background-attachment: scroll; }
  .mg-back { min-height: 36px; padding: 6px 10px; font-size: .77rem; }
  .mg-heading { margin-bottom: 12px; }
  .mg-heading p { font-size: .75rem; }
  .mg-section { margin-bottom: 14px; }
  .mg-section-heading h2 { font-size: 1.02rem; }
  .mg-play-grid { grid-template-columns: 1fr; gap: 8px; }
  .mg-coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .mg-card-playable { min-height: 106px; padding: 7px 9px; gap: 10px; }
  .mg-card-playable .mg-card-art { flex-basis: 70px; width: 70px; height: 86px; }
  .mg-card h2 { font-size: 1rem; }
  .mg-card-blurb { font-size: .7rem; }
  .mg-card-soon { min-height: 88px; align-items: flex-start; gap: 5px; padding: 7px 6px; }
  .mg-card-soon .mg-card-art { flex-basis: 38px; width: 38px; height: 53px; }
  .mg-card-soon .mg-card-info { gap: 3px; }
  .mg-card-soon h2 { font-size: .8rem; }
  .mg-card-soon .mg-card-blurb { font-size: .59rem; }
  .mg-card-soon .mg-coming { min-height: 20px; padding-inline: 6px; font-size: .55rem; }
  .mg-card-soon:last-child { grid-column: 2; }
  .mg-player-quirkie { width: 84px; height: 116px; }
}
@media (max-width: 390px) {
  .more-games-scene { padding-inline: 10px; }
  .mg-card-playable .mg-card-art { flex-basis: 64px; width: 64px; }
  .mg-player-quirkie { width: 88px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-card-playable { transition: none; }
  .mg-card-preview { transition: none; }
}
