/* מילת היום */
.csg-stage[data-csg-game="milat-hayom"] { --mh: #2f7d4f; --mh-deep: #1d4f33; --mh-gold: #e0a92b; --mh-grey: #7b7f8a; }
.mh { max-width: 440px; margin-inline: auto; background: linear-gradient(180deg, #f3faf5, #fff); border: 1px solid #dcebe1; border-radius: 22px; padding: 16px 14px 18px; box-shadow: 0 14px 34px rgb(29 79 51 / 14%); color: #17241c; }
.mh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mh-title { display: flex; flex-direction: column; line-height: 1.2; }
.mh-title b { font-size: 22px; font-weight: 800; color: var(--mh-deep); }
.mh-title span { font-size: 13px; color: #5c6b62; }
.mh-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.mh-stats span { background: #e5f2ea; color: var(--mh-deep); border-radius: 999px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.mh-hintrow { min-height: 34px; display: flex; justify-content: center; align-items: center; margin-bottom: 8px; }
.mh-hintbtn { border: 1px dashed #b9d5c3; background: #fff; color: var(--mh-deep); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mh-hintbtn small { font-weight: 500; color: #6b7a71; }
.mh-hintbtn[hidden], .mh-hint[hidden] { display: none; }
.mh-hint { margin: 0; background: #fff8e3; color: #6a4b06; border-radius: 12px; padding: 6px 14px; font-size: 15px; font-weight: 700; text-align: center; }

.mh-grid { display: grid; gap: 6px; width: min(100%, 320px); margin: 0 auto; direction: rtl; }
.mh-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mh-tile { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #d4ddd7; border-radius: 10px; background: #fff; font-size: clamp(24px, 8vw, 32px); font-weight: 800; color: #17241c; user-select: none; }
.mh-row.is-current .mh-tile { border-color: #b4c9bb; }
.mh-tile.is-filled { border-color: #6f8a78; animation: mh-pop .12s ease; }
.mh-tile.is-correct { background: var(--mh); border-color: var(--mh); color: #fff; }
.mh-tile.is-present { background: var(--mh-gold); border-color: var(--mh-gold); color: #fff; }
.mh-tile.is-absent { background: var(--mh-grey); border-color: var(--mh-grey); color: #fff; }
.mh-tile.is-flip { animation: mh-flip .44s ease both; }
.mh-row.is-shake { animation: mh-shake .4s ease; }
@keyframes mh-pop { 50% { transform: scale(1.08); } }
@keyframes mh-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes mh-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .mh-tile, .mh-row { animation: none !important; } }

.mh-msg { min-height: 24px; margin: 10px 0 6px; text-align: center; font-size: 14.5px; color: #4f5e55; }
.mh-msg.is-warn { color: #b3361f; font-weight: 700; }

.mh-kb { display: grid; gap: 6px; user-select: none; touch-action: manipulation; }
.mh-kb[hidden] { display: none; }
.mh-kbrow { display: flex; gap: 5px; justify-content: center; }
.mh-key { flex: 1 1 0; max-width: 44px; min-width: 0; height: 52px; border: 0; border-radius: 8px; background: #e2e8e4; color: #17241c; font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; padding: 0; }
.mh-key:active { transform: translateY(1px); background: #cfd8d2; }
.mh-kbrow--act { margin-top: 2px; }
.mh-key--wide { max-width: 170px; height: 48px; font-size: 17px; background: #cfd8d2; color: #17241c; }
.mh-key--go { flex-grow: 1.4; background: var(--mh); color: #fff; box-shadow: 0 3px 0 var(--mh-deep); }
.mh-key.is-correct { background: var(--mh); color: #fff; }
.mh-key.is-present { background: var(--mh-gold); color: #fff; }
.mh-key.is-absent { background: #9aa09c; color: #eef0ef; }

.mh-end { text-align: center; padding: 6px 4px 0; }
.mh-end[hidden] { display: none; }
.mh-end h3 { margin: 4px 0 6px; font-size: 22px; color: var(--mh-deep); }
.mh-word { display: inline-block; font-size: 34px; font-weight: 800; letter-spacing: 4px; color: #fff; background: var(--mh); border-radius: 14px; padding: 4px 18px; margin-bottom: 8px; }
.mh-info { margin: 0 auto 12px; max-width: 360px; font-size: 15.5px; line-height: 1.55; background: #f0f7f2; border-radius: 12px; padding: 10px 12px; }
.mh-endstats { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.mh-endstats span { background: #e5f2ea; border-radius: 12px; padding: 6px 10px; font-size: 12.5px; color: #3d5245; min-width: 76px; }
.mh-endstats b { display: block; font-size: 20px; color: var(--mh-deep); }
.mh-next { margin: 0 0 10px; font-size: 14px; color: #4f5e55; }
.mh-next b { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.mh-endbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.mh-end .csg-btn--board { margin-top: 2px; }
.mh .mh-ghost { background: #e5f2ea; color: var(--mh-deep); box-shadow: none; }
@media (max-width: 380px) { .mh { padding: 12px 8px 14px; border-radius: 16px; } .mh-key { height: 48px; font-size: 17px; } .mh-kbrow { gap: 4px; } }
