/* Nihongo Dojo · Mini Games · Neobrutalism. Scoped, supaya modul lain tetap utuh. */
.header-popover { width: min(256px, calc(100vw - 26px)); max-height: min(460px, calc(100dvh - 95px)); overflow-y: auto; overscroll-behavior: contain; }
.header-popover__divider { display: block; margin: 7px 5px 9px; border-top: 2px dashed currentColor; opacity: .35; }
.header-popover__heading { display: block; padding: 2px 10px 7px; font-size: 12px; font-weight: 700; letter-spacing: .09em; }
.header-popover a[data-nd-mini] { margin: 2px 0; padding: 10px 9px; border: 2px solid transparent; font-weight: 700; }
.header-popover a[data-nd-mini]:hover, .header-popover a[data-nd-mini]:focus-visible { border-color: #1a1a1a; background: #FFE46C; color: #1a1a1a !important; }

.nd-games, .mg-overlay { --mg-ink: #1a1a1a; --mg-border: 3px solid #1a1a1a; --mg-hard: 4px 4px 0 #1a1a1a; --mg-paper: #fffdf8; --mg-yellow: #ffe46c; --mg-pink: #f9b5d8; --mg-blue: #8ce2f1; --mg-mint: #86e5ab; --mg-purple: #bda2fa; color: var(--mg-ink); }
.nd-games { min-height: 100vh; min-height: 100dvh; width: 100%; padding: max(13px, env(safe-area-inset-top)) clamp(11px, 3vw, 28px) max(22px, env(safe-area-inset-bottom)); }
.nd-games__shell { width: 100%; max-width: 960px; margin: 0 auto; min-width: 0; }
.mg-topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: clamp(16px, 3vw, 27px); flex-wrap: wrap; }
.mg-topbar__brand { color: var(--mg-ink); font-size: clamp(13px, 1.8vw, 18px); font-weight: 700; white-space: nowrap; }
.mg-topbar__brand b { color: #b30f70; }
.mg-topbar__brand span { font-size: .74em; letter-spacing: .06em; }
.mg-button { min-height: 45px; padding: 10px 16px; border: var(--mg-border); border-radius: 13px; box-shadow: var(--mg-hard); background: var(--mg-paper); color: var(--mg-ink) !important; font: 700 clamp(13px, 1.5vw, 16px)/1.24 var(--font-ui); text-align: center; cursor: pointer; touch-action: manipulation; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.mg-button:focus-visible, .mg-choice:focus-visible, .mg-token:focus-visible, .mg-sushi-plate:focus-visible { outline: 3px dashed #155dc8; outline-offset: 4px; }
.mg-button:active, .mg-choice:active, .mg-token:active, .mg-sushi-plate:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--mg-ink); }
@media (hover: hover) { .mg-button:hover, .mg-choice:hover, .mg-token:hover { filter: brightness(.97); transform: translate(-1px,-2px); box-shadow: 5px 6px 0 var(--mg-ink); } }
.mg-button[disabled], .mg-choice[disabled], .mg-token[disabled] { cursor: not-allowed; opacity: .5; }
.mg-button--yellow { background: var(--mg-yellow); }
.mg-button--light { background: var(--mg-paper); }
.mg-button--mint { background: var(--mg-mint); }
.mg-button--pink { background: var(--mg-pink); }
.mg-back { flex-shrink: 0; }
.mg-game-heading { background: var(--mg-blue); color: var(--mg-ink); border: var(--mg-border); border-radius: 22px; box-shadow: var(--mg-hard); padding: clamp(12px,2.5vw,21px); display: flex; align-items: center; gap: clamp(12px,2.6vw,24px); margin-bottom: clamp(15px, 2.4vw, 23px); }
.mg-game-heading__icon { font-size: clamp(40px,7vw,74px); width: clamp(72px,14vw,114px); aspect-ratio: 1; display: grid; place-items: center; background: var(--mg-paper); border: var(--mg-border); border-radius: 20px; transform: rotate(-5deg); flex-shrink: 0; }
.mg-game-heading__copy { min-width: 0; }
.mg-game-heading__eyebrow { font-size: clamp(10px, 1.6vw, 13px); font-weight: 700; letter-spacing: .08em; }
.mg-game-heading h1 { font-size: clamp(25px, 5vw, 44px); letter-spacing: -.06em; line-height: 1.05; margin: 5px 0; }
.mg-game-heading p { font-size: clamp(12px, 1.8vw, 16px); margin: 5px 0 0; }
.nd-games[data-game="bento"] .mg-game-heading { background: var(--mg-pink); }
.nd-games[data-game="yokai"] .mg-game-heading { background: var(--mg-purple); }
.mg-game-root { min-width: 0; }
.mg-panel { border: var(--mg-border); box-shadow: var(--mg-hard); border-radius: 18px; background: var(--mg-paper); padding: clamp(12px, 2.5vw, 22px); margin-bottom: 17px; min-width: 0; }
.mg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px,1.5vw,14px); margin-bottom: 17px; }
.mg-stat { border: var(--mg-border); box-shadow: 3px 3px 0 var(--mg-ink); border-radius: 14px; background: var(--mg-yellow); padding: clamp(9px,1.8vw,14px); text-align: center; min-width: 0; }
.mg-stat:nth-child(2) { background: var(--mg-mint); }.mg-stat:nth-child(3) { background: var(--mg-pink); }
.mg-stat__label { display: block; font-size: clamp(10px,1.55vw,13px); letter-spacing: .06em; }
.mg-stat__value { display: block; font-size: clamp(21px,3vw,31px); line-height: 1.2; font-weight: 700; }
.mg-order-label, .mg-bento-label, .mg-yokai-label { margin: 0 0 8px; font-size: clamp(11px,1.5vw,13px); color: #525263; font-weight: 700; letter-spacing: .07em; }
.mg-prompt { font-size: clamp(19px,3.4vw,29px); font-weight: 700; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.mg-prompt span { display: inline-block; color: #8a136a; }
.mg-caption { margin: 8px 0 0; font-size: clamp(12px,1.5vw,15px); color: #56535f; }
.mg-feedback { min-height: 44px; display: flex; align-items: center; font-size: clamp(13px,1.75vw,16px); line-height: 1.4; font-weight: 700; padding: 9px 12px; border: 2px dashed #b8b5ba; border-radius: 11px; margin-top: 15px; background: #f7f4eb; color: #393945; overflow-wrap: anywhere; }
.mg-feedback[data-kind="good"] { border-color: #267c4a; background: #d9ffe8; color: #14512b; }
.mg-feedback[data-kind="bad"] { border-color: #b73b46; background: #ffe3e7; color: #8d1529; }
.mg-feedback[data-kind="info"] { border-color: #477cce; background: #e5f2ff; color: #184a80; }
.mg-footer { padding: 15px 0; text-align: center; font-size: clamp(11px,1.5vw,14px); color: #625d66; }

/* Sushi Conveyor */
.mg-kana-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.mg-kana-progress__cell { display: grid; place-items: center; min-width: clamp(38px,7vw,55px); height: clamp(43px,7vw,55px); padding: 4px 9px; border: var(--mg-border); border-radius: 10px; background: #f3f0e9; color: #67636c; font: 700 clamp(20px,3vw,29px)/1 var(--font-jp); }
.mg-kana-progress__cell.is-hit { background: var(--mg-mint); color: var(--mg-ink); animation: mg-pop .25s ease both; }
.mg-conveyor { position: relative; height: clamp(205px, 31vw, 290px); overflow: hidden; border: var(--mg-border); border-radius: 20px; background: repeating-linear-gradient(95deg,#f5d89d 0 30px,#ffe4b1 30px 60px); box-shadow: var(--mg-hard); isolation: isolate; }
.mg-conveyor::before { content: ''; position: absolute; inset: 12px 0; z-index: -1; background: repeating-linear-gradient(90deg,#273244 0 25px,#3e5066 25px 50px); border-block: 7px solid #121b2a; box-shadow: inset 0 5px 0 #7b8a9d, inset 0 -5px 0 #7b8a9d; }
.mg-conveyor::after { content: ''; position: absolute; bottom: 7px; left: 12px; right: 12px; height: 7px; border-radius: 20px; background: repeating-linear-gradient(90deg,#38475a 0 20px,#ffd15c 20px 29px); opacity: .7; }
.mg-conveyor__sign { position: absolute; z-index: 1; left: 10px; top: 9px; background: var(--mg-yellow); border: 2px solid var(--mg-ink); border-radius: 8px; padding: 4px 8px; font-size: clamp(10px, 1.6vw, 12px); box-shadow: 2px 2px 0 var(--mg-ink); pointer-events: none; }
.mg-sushi-plate { position: absolute; left: 0; top: 0; z-index: 2; width: clamp(59px, 10vw, 78px); height: clamp(59px, 10vw, 78px); display: grid; place-items: center; border: 3px solid var(--mg-ink); border-radius: 50%; box-shadow: 2px 4px 0 rgba(0,0,0,.85); font: 900 clamp(26px,5vw,36px)/1 var(--font-jp); color: var(--mg-ink); background: #fff9e9; cursor: pointer; will-change: transform; touch-action: manipulation; }
.mg-sushi-plate::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 3px dashed #ff94c4; opacity: .85; pointer-events: none; }
.mg-sushi-plate:nth-child(3n+1) { background: #e5fff6; }.mg-sushi-plate:nth-child(3n+2) { background: #fff5cb; }
.mg-sushi-plate:active { filter: brightness(.93); }
.mg-conveyor.is-flash-good { animation: mg-sushi-good .28s ease; }.mg-conveyor.is-flash-bad { animation: mg-sushi-bad .28s ease; }
.mg-mini-tip { margin: 11px 3px 0; font-size: clamp(12px, 1.5vw,15px); color: #525264; }

/* Bento Builder */
.mg-bento-board { background: #e7f7df; }
.mg-bento-head { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 13px; }
.mg-bento-head strong { font-size: clamp(15px,2vw,19px); }.mg-bento-head span { font-size: 12px; }
.mg-bento-slots { min-height: 113px; border: 3px solid var(--mg-ink); border-radius: 18px; padding: clamp(9px,2vw,16px); background: repeating-linear-gradient(45deg,#fff8ed 0 14px,#fff2e6 14px 28px); display: flex; flex-wrap: wrap; gap: clamp(7px,1.2vw,12px); align-content: center; }
.mg-bento-slot { min-width: clamp(45px,8vw,79px); height: clamp(47px,6vw,62px); padding: 5px 9px; border: 2px dashed #8b8a81; border-radius: 11px; background: rgba(255,255,255,.6); font: 700 clamp(15px,2.2vw,21px)/1.15 var(--font-jp); color: #8d8a86; }
.mg-bento-slot.is-filled { border: 2px solid var(--mg-ink); background: var(--mg-yellow); box-shadow: 2px 3px 0 var(--mg-ink); color: var(--mg-ink); cursor: pointer; }
.mg-bento-slot.is-filled:nth-child(4n) { background: var(--mg-pink); }.mg-bento-slot.is-filled:nth-child(3n) { background: var(--mg-blue); }
.mg-bento-slot.is-filled:focus-visible { outline: 3px dashed #155dc8; outline-offset: 3px; }
.mg-bento-board.is-complete { animation: mg-bento-win .5s ease; }
.mg-bento-tray { display: flex; flex-wrap: wrap; gap: clamp(9px,1.7vw,13px); margin-top: 15px; }
.mg-token { min-height: 49px; min-width: 53px; padding: 9px 14px; border: var(--mg-border); border-radius: 13px; background: var(--mg-paper); box-shadow: 3px 3px 0 var(--mg-ink); color: var(--mg-ink); font: 700 clamp(16px,2.3vw,21px)/1.1 var(--font-jp); touch-action: manipulation; }
.mg-token:nth-child(4n+2) { background: var(--mg-blue); }.mg-token:nth-child(4n+3) { background: var(--mg-pink); }.mg-token:nth-child(4n+4) { background: var(--mg-yellow); }
.mg-token.is-picked { opacity: .4; filter: grayscale(1); box-shadow: none; text-decoration: line-through; }
.mg-bento-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 11px; margin-top: 19px; }
.mg-bento-actions .mg-button { flex: 1 1 145px; max-width: 275px; }
.mg-bento-syntax { background: #eaf5ff; border: 2px solid #a5c3e0; border-radius: 12px; padding: 11px 13px; margin-top: 12px; color: #294d70; font-size: clamp(12px,1.5vw,14px); }

/* Yokai Hunter */
.mg-yokai-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px, 310px); gap: 16px; align-items: stretch; }
.mg-yokai-arena { position: relative; height: clamp(260px, 43vh, 420px); height: clamp(260px, 43dvh, 420px); min-width: 0; overflow: hidden; border: var(--mg-border); border-radius: 20px; background: linear-gradient(180deg,#222b52 0%,#4a4b8e 53%,#b98aaf 100%); box-shadow: var(--mg-hard); isolation: isolate; }
.mg-yokai-arena::before { content: '✦　 ✧　　 ✦　✧'; position: absolute; left: 6%; right: 0; top: 21%; font-size: clamp(19px,3vw,33px); letter-spacing: 28px; color: #dcd5ff; opacity: .8; }
.mg-yokai-arena::after { content: ''; position: absolute; bottom: -40px; left: -5%; right: -5%; height: 95px; background: #30465d; border: 3px solid #182238; border-radius: 50% 50% 0 0; z-index: -1; }
.mg-yokai-line { position: absolute; left: 0; right: 0; top: 13%; height: 0; border-top: 4px dashed #ffe27a; z-index: 3; }
.mg-yokai-line span { position: absolute; left: 10px; bottom: 6px; padding: 2px 8px; background: #ffe27a; color: #182032; border: 2px solid #1a1a1a; border-radius: 7px; font-size: 12px; }
.mg-yokai-monster { position: absolute; left: 50%; top: 82%; transform: translate(-50%,-50%); width: clamp(105px,18vw,142px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid #181525; border-radius: 44% 44% 40% 40%; background: #fd93d0; box-shadow: 7px 8px 0 #181525; color: #1a1a1a; z-index: 2; pointer-events: none; }
.mg-yokai-monster::before, .mg-yokai-monster::after { content: ''; position: absolute; width: 29px; height: 39px; top: -26px; border: 3px solid #181525; background: #ffe2a4; clip-path: polygon(50% 0,100% 100%,0 100%); }.mg-yokai-monster::before { left: 11px; transform: rotate(-18deg); }.mg-yokai-monster::after { right: 11px; transform: rotate(18deg); }
.mg-yokai-monster__face { font-size: clamp(20px, 3vw, 28px); line-height: 1; }
.mg-yokai-monster__kanji { font: 900 clamp(37px,6vw,57px)/1.08 var(--font-jp); }
.mg-yokai-monster.is-slashed { animation: mg-yokai-slash .44s ease forwards; }
.mg-yokai-sword { position: absolute; top: 46%; left: 50%; width: 160px; height: 13px; background: #fff9c1; border: 3px solid #fff; border-radius: 30px; z-index: 5; transform: translate(-50%,-50%) rotate(-38deg) scaleX(0); opacity: 0; box-shadow: 0 0 18px #fff; pointer-events: none; }
.mg-yokai-sword.is-active { animation: mg-sword .4s ease-out forwards; }
.mg-yokai-answer { padding: clamp(12px,2vw,19px); display: flex; flex-direction: column; justify-content: center; }
.mg-yokai-answer h2 { margin: 0 0 9px; font-size: clamp(18px,2.5vw,23px); }
.mg-yokai-answer__hint { font-size: 13px; margin: 0 0 15px; color: #5d5c66; }
.mg-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.mg-choice { min-width: 0; min-height: 57px; padding: 7px 6px; border: var(--mg-border); border-radius: 13px; box-shadow: 3px 3px 0 var(--mg-ink); background: var(--mg-blue); color: var(--mg-ink); font: 700 clamp(13px,1.8vw,17px)/1.2 var(--font-ui); overflow-wrap: anywhere; touch-action: manipulation; }
.mg-choice:nth-child(2) { background: var(--mg-yellow); }.mg-choice:nth-child(3) { background: var(--mg-mint); }.mg-choice:nth-child(4) { background: var(--mg-pink); }
.mg-choice.is-right { background: #85f0ae !important; }.mg-choice.is-wrong { background: #ff979d !important; }
.mg-yokai-time { overflow: hidden; background: #fff7e1; border: 2px solid var(--mg-ink); height: 13px; border-radius: 20px; margin: 13px 0; }
.mg-yokai-time div { width: 100%; height: 100%; transform-origin: left; background: #52d691; }
.mg-spark { position: absolute; left: 50%; top: 50%; z-index: 8; pointer-events: none; font-size: clamp(17px, 3vw, 30px); animation: mg-spark .68s ease-out forwards; }

/* Modal dipasang di luar game agar tetap terlihat saat beranda disembunyikan. */
.mg-overlay { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); background: rgba(16,21,31,.72); overflow-y: auto; }
.mg-modal { width: min(100%, 450px); max-height: calc(100dvh - 30px); padding: clamp(18px, 4vw, 28px); overflow-y: auto; background: #fffaf0; border: 3px solid #1a1a1a; border-radius: 24px; box-shadow: 7px 7px 0 #070707; text-align: center; color: #1a1a1a !important; animation: mg-modal-in .28s cubic-bezier(.2,.8,.25,1) both; }
.mg-modal__emoji { font-size: clamp(47px,9vw,68px); line-height: 1.15; }.mg-modal__label { margin: 13px 0 5px; font-weight: 700; font-size: 12px; letter-spacing: .12em; color: #8b3270; }
.mg-modal h2 { font-size: clamp(25px, 6vw, 34px); margin: 5px 0 12px; line-height: 1.13; }
.mg-modal__copy { font-weight: 600; font-size: clamp(14px,2vw,16px); color: #46414a; line-height: 1.55; margin: 0 0 17px; white-space: pre-line; }
.mg-modal__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 19px; }
.mg-modal__scores > div { padding: 12px 7px; border: 3px solid #1a1a1a; border-radius: 13px; background: #8ce2f1; }
.mg-modal__scores > div + div { background: #ffe46c; }.mg-modal__scores span { display: block; font-size: clamp(10px,2vw,12px); }.mg-modal__scores strong { display: block; font-size: 28px; }
.mg-modal__actions { display: grid; gap: 12px; }.mg-modal__actions .mg-button { width: 100%; }
.mg-countdown { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); background: rgba(16,21,31,.58); }
.mg-countdown__card { width: min(100%, 300px); padding: clamp(18px, 4vw, 28px); background: #fffaf0; border: 3px solid #1a1a1a; border-radius: 24px; box-shadow: 7px 7px 0 #070707; text-align: center; animation: mg-modal-in .2s ease both; }
.mg-countdown__label { margin: 0 0 10px; color: #8b3270; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mg-countdown__number { font-size: clamp(56px, 18vw, 110px); line-height: 1; font-weight: 900; color: #1a1a1a; text-shadow: 4px 4px 0 #ffe46c; }
.mg-countdown__number.is-go { color: #14512b; text-shadow: 4px 4px 0 #86e5ab; }
.mg-countdown__hint { margin: 12px 0 0; font-size: clamp(13px, 2vw, 15px); font-weight: 700; color: #46414a; }
html[data-tema="gelap"] .nd-games { color: #f4f1e9; }
html[data-tema="gelap"] .nd-games .mg-topbar__brand { color: #f4f1e9; }
html[data-tema="gelap"] .nd-games .mg-topbar__brand b { color: #f9b5d8; }
html[data-tema="gelap"] .nd-games .mg-footer { color: #d3ceda; }
html[data-tema="gelap"] .nd-games .mg-panel { background: #2c3243; color: #f4f1e9; }
html[data-tema="gelap"] .nd-games :is(.mg-order-label,.mg-bento-label,.mg-yokai-label,.mg-caption,.mg-mini-tip,.mg-yokai-answer__hint) { color: #e0dbe8; }
html[data-tema="gelap"] .nd-games .mg-prompt span { color: #fcb7d9; }
html[data-tema="gelap"] .nd-games .mg-bento-board { background: #284b48; }
html[data-tema="gelap"] .nd-games .mg-bento-board, html[data-tema="gelap"] .nd-games .mg-game-heading, html[data-tema="gelap"] .nd-games .mg-stat, html[data-tema="gelap"] .nd-games :is(.mg-token,.mg-choice,.mg-bento-slot,.mg-button,.mg-sushi-plate) { color: #1a1a1a !important; }
html[data-tema="gelap"] .nd-games .mg-bento-slot:not(.is-filled) { color: #767676 !important; }
html[data-tema="gelap"] .nd-games .mg-feedback { color: #303442; }
html[data-tema="gelap"] .nd-games .mg-bento-syntax { color: #294d70; }

@media (max-width: 680px) {
  .mg-yokai-layout { grid-template-columns: 1fr; }
  .mg-yokai-arena { height: clamp(230px, 38dvh, 330px); }
  .mg-yokai-answer { padding: 13px; }
  .mg-yokai-answer h2 { margin-bottom: 4px; }
  .mg-choices { grid-template-columns: 1fr 1fr; }
  .mg-choice { min-height: 52px; }
  .mg-game-heading__icon { border-radius: 14px; }
}
@media (max-width: 380px) {
  .mg-topbar { gap: 9px; }
  .mg-topbar__brand { font-size: 12px; }
  .mg-topbar__brand span { display: none; }
  .mg-back { padding: 9px 10px; min-height: 42px; font-size: 12px; }
  .mg-game-heading { border-radius: 15px; }
  .mg-game-heading__icon { width: 59px; font-size: 34px; }
  .mg-stats { gap: 6px; }.mg-stat { padding: 8px 4px; }.mg-stat__value { font-size: 19px; }
  .mg-token { padding: 8px 10px; min-width: 45px; }
  .mg-bento-slots { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .mg-modal,.mg-countdown__card,.mg-bento-board.is-complete,.mg-yokai-monster.is-slashed,.mg-spark,.mg-sushi-plate,.mg-conveyor { animation-duration: .01ms !important; } }
@keyframes mg-pop { 0% { transform: scale(.7); } 75% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes mg-bento-win { 0%,100% { transform: none; } 35% { transform: rotate(-1deg) scale(1.015); } 70% { transform: rotate(1deg); } }
@keyframes mg-sushi-good { 50% { filter: brightness(1.27); } }
@keyframes mg-sushi-bad { 15%, 75% { filter: saturate(2) hue-rotate(315deg); } }
@keyframes mg-yokai-slash { 0% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-65%) scale(.3) rotate(24deg); } }
@keyframes mg-sword { 0% { transform: translate(-50%,-50%) rotate(-38deg) scaleX(0); opacity: 0; } 35% { transform: translate(-50%,-50%) rotate(-38deg) scaleX(1.2); opacity: 1; } 100% { transform: translate(-50%,-50%) rotate(-38deg) scaleX(1.4); opacity: 0; } }
@keyframes mg-spark { 0% { opacity: 1; transform: translate(-50%, -50%) translate(0,0) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--dx),var(--dy)) scale(1.2) rotate(50deg); } }
@keyframes mg-modal-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Koreksi kontras khusus Bento: header di atas papan hijau gelap wajib terang. */
html[data-tema="gelap"] .nd-games .mg-bento-board .mg-bento-head,
html[data-tema="gelap"] .nd-games .mg-bento-board .mg-bento-head strong,
html[data-tema="gelap"] .nd-games .mg-bento-board .mg-bento-head span { color: #f4f1e9 !important; }
