/* Original vector mark and the interactive hero. The board stays still while
   the spatial overview moves, so targets remain reliable for mouse and touch. */
#mm-impact .mi-brand-logo { width: 48px; height: 48px; display: block; flex: none; }
#mm-impact .mi-game { --mi-game-plane-color: #9df4d0; --mi-game-plane-line: #9df4d088; --mi-game-plane-fill: #9df4d00d; --mi-game-plane-hover: #9df4d024; --mi-game-plane-dot: #9df4d0aa; padding: 23px; transform: none; transition: none; }
#mm-impact .mi-game-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#mm-impact .mi-game-header h2 { font-size: 25px; line-height: 1.2; letter-spacing: -.045em; margin-top: 5px; }
#mm-impact .mi-game-header .mi-kicker { font-size: 11px; letter-spacing: .08em; }
#mm-impact .mi-game-badge { border: 1px solid #7fa6b861; background: #9df4d010; color: #bff8df; font-size: 11px; padding: 6px 8px; border-radius: 9px; white-space: nowrap; }
#mm-impact .mi-game-rules { font-size: 12px; color: #c2d0e3; margin-top: 12px; }
#mm-impact .mi-game-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 13px; margin-top: 21px; align-items: center; }
#mm-impact .mi-game-visual { position: relative; min-width: 0; display: grid; gap: 8px; }
#mm-impact .mi-game-stage { min-width: 0; height: 210px; touch-action: none; overscroll-behavior: contain; }
#mm-impact .mi-game-visual canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#mm-impact .mi-game-visual canvas[data-dragging="true"] { cursor: grabbing; }
#mm-impact .mi-game-visual-note { color: #9eb4cd; font-size: 11px; line-height: 1.6; text-align: center; }
#mm-impact .mi-game-corner-key { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; color: #ffb9cc; }
#mm-impact .mi-game-corner-key::before { content: ''; width: 8px; height: 8px; background: #ff8caa; clip-path: polygon(0 0, 100% 0, 0 100%); }
#mm-impact .mi-game-view-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
#mm-impact .mi-game-view-controls button { display: grid; place-items: center; flex: none; width: 28px; height: 32px; padding: 0; border: 1px solid #5a7798; border-radius: 7px; background: #112238; color: #d3e6fc; font-size: 18px; line-height: 1; }
#mm-impact .mi-game-view-controls button:not(:disabled):hover { border-color: #9df4d0; color: #b2ffdf; }
#mm-impact .mi-game-view-controls button:disabled { opacity: .4; }
#mm-impact .mi-game-rulebook { margin-top: 12px; border-top: 1px solid #6381a344; color: #bdcfe3; font-size: 11px; line-height: 1.7; }
#mm-impact .mi-game-rulebook summary { min-height: 40px; width: fit-content; padding-block: 10px; }
#mm-impact .mi-game-rulebook ul { margin: 0 0 10px; padding-left: 18px; }
#mm-impact .mi-game-rulebook li + li { margin-top: 5px; }
#mm-impact .mi-game-rulebook p { margin-bottom: 10px; }
#mm-impact .mi-game-play { min-width: 0; border-left: 1px solid #6381a344; padding-left: 13px; }
#mm-impact .mi-game-planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#mm-impact .mi-game-planes button { min-width: 0; min-height: 46px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 5px 2px; font-size: 11px; line-height: 1.3; border: 1px solid var(--mi-layer-line); border-radius: 9px; background: var(--mi-layer-fill); color: var(--mi-layer-color); }
#mm-impact .mi-game-planes button > span { display: inline-flex; align-items: center; gap: 5px; }
#mm-impact .mi-game-planes button > span::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
#mm-impact .mi-game-planes small { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
#mm-impact .mi-game-planes [aria-pressed="true"] { background: var(--mi-layer-color); border-color: var(--mi-layer-color); color: #102536; }
#mm-impact .mi-game-planes .has-last-move:not([aria-pressed="true"]) { box-shadow: inset 0 -2px #edf6ff; }
#mm-impact .mi-game-planes .has-winning-line { box-shadow: 0 0 16px var(--mi-layer-fill); }
#mm-impact .mi-game-board-header { display: flex; flex-direction: column; gap: 3px; margin-block: 12px 9px; font-size: 11px; color: #b9cbe0; }
#mm-impact .mi-game-board-header > span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--mi-game-plane-color); }
#mm-impact [data-game-plane-label]::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mi-game-plane-color); }
#mm-impact .mi-game-board-header i { font-style: normal; color: #6f89a8; padding-inline: 4px; }
#mm-impact .mi-game-x, #mm-impact .mi-game-o { display: inline-block; width: 17px; height: 17px; font-size: 0; vertical-align: middle; background: center / contain no-repeat; }
#mm-impact .mi-game-x { background-image: url(../images/game/cross.svg); }
#mm-impact .mi-game-o { background-image: url(../images/game/orb.svg); }
#mm-impact .mi-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#mm-impact .mi-game-cell { position: relative; display: grid; place-items: center; min-width: 0; min-height: 48px; padding: 0; border: 1px solid var(--mi-game-plane-line); border-radius: 10px; background: var(--mi-game-plane-fill); color: #b2ffdf; font-size: 0; font-weight: 700; line-height: 1; transition: background .15s, border-color .15s; }
#mm-impact .mi-game-cell[data-game-cell="0"]::before { content: ''; position: absolute; top: 4px; left: 4px; width: 11px; height: 11px; background: #ff8caa; clip-path: polygon(0 0, 100% 0, 0 100%); filter: drop-shadow(0 0 3px #ff8caa66); }
#mm-impact .mi-game-cell:not(:empty)::after { content: ''; display: block; width: 36px; height: 36px; background: center / contain no-repeat; }
#mm-impact .mi-game-cell[data-mark="X"]::after { background-image: url(../images/game/cross.svg); }
#mm-impact .mi-game-cell[data-mark="O"]::after { background-image: url(../images/game/orb.svg); }
#mm-impact .mi-game-cell:empty::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--mi-game-plane-dot); }
#mm-impact .mi-game-cell:not(:disabled):hover { background: var(--mi-game-plane-hover); border-color: var(--mi-game-plane-color); }
#mm-impact .mi-game-cell:disabled { opacity: 1; }
#mm-impact .mi-game-cell[data-mark="O"] { color: #b3d7ff; }
#mm-impact .mi-game-cell.is-last-move { border-color: #b3d7ff; }
#mm-impact .mi-game-cell.is-winning { color: #102536; background: var(--mi-game-plane-color); border-color: var(--mi-game-plane-color); box-shadow: 0 0 18px var(--mi-game-plane-hover); }
#mm-impact .mi-game-cell.is-winning::after { filter: drop-shadow(0 1px 1px #102536); }
#mm-impact .mi-game-status { min-height: 53px; margin-top: 12px; font-size: 11px; line-height: 1.65; color: #c2d4e6; }
#mm-impact [data-game-thinking="true"] .mi-game-status { color: #b2ffdf; }
#mm-impact [data-game-over="true"] .mi-game-status { color: #c4ffe4; font-weight: 600; }
#mm-impact .mi-game-bottom { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid #5a789444; font-size: 11px; color: #a4bcd6; }
#mm-impact .mi-game-reset { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 11px; border: 0; background: transparent; color: #deecff; padding: 0; }
#mm-impact .mi-game-reset:hover { color: #9df4d0; }
#mm-impact:not(.mi-js) .mi-game-body { display: none; }
#mm-impact .mi-game-noscript { margin-top: 20px; color: #bdcce0; font-size: 12px; }

/* The previews are actual public screenshots; the original capture opens on click. */
#mm-impact .mi-project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 20px; }
#mm-impact .mi-project { display: flex; flex-direction: column; height: 100%; }
#mm-impact .mi-project-shot { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--mi-line); background: #13263b; }
#mm-impact .mi-project-shot img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
#mm-impact .mi-project-shot:hover img { transform: scale(1.025); }
#mm-impact .mi-shot-zoom { position: absolute; right: 10px; bottom: 10px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #ffffff77; border-radius: 50%; color: white; background: #0a1425cc; font-size: 15px; }
#mm-impact .mi-project-content { display: flex; flex-direction: column; flex: 1; padding: 23px; }
#mm-impact .mi-project-content > .mi-kicker { min-height: 3.4em; }
#mm-impact .mi-project-content > details { margin-top: auto; padding-top: 17px; }
#mm-impact .mi-project-shot { flex: none; }
#mm-impact .mi-project-content > p.mi-shot-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; font-size: 11px; color: var(--mi-muted); margin-top: 0; margin-bottom: 16px; }
#mm-impact .mi-shot-source span { opacity: .85; }
#mm-impact .mi-project-content h3 { font-size: 27px; }
#mm-impact .mi-project-content .mi-kicker { font-size: 11px; line-height: 1.7; letter-spacing: .07em; }

/* A quiet footer replaces the former contact pitch. Email exists only in Impressum. */
#mm-impact .mi-site-footer { padding-block: 20px 28px; }
#mm-impact .mi-site-footer .mi-footer { border-top: 0; padding-top: 0; }
#mm-impact .mi-legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 17px; border-top: 1px solid var(--mi-night-line); padding-top: 12px; }
#mm-impact .mi-legal { min-width: 0; }
#mm-impact .mi-legal summary { min-height: 44px; width: fit-content; padding-block: 11px; font-size: 12px; color: #bdcde0; }
#mm-impact .mi-legal-content { color: #b3c5dc; font-size: 12px; line-height: 1.8; padding-block: 12px; overflow-wrap: anywhere; }
#mm-impact .mi-legal h2 { font-size: 19px; color: #f0f5fd; margin-bottom: 14px; }
#mm-impact .mi-legal h3 { color: #e4eefb; font-size: 13px; margin-top: 17px; }
#mm-impact .mi-legal p { margin-top: 9px; }
#mm-impact .mi-legal a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  #mm-impact .mi-hero { grid-template-columns: 1fr; gap: 35px; }
  #mm-impact .mi-lab { width: 100%; max-width: 500px; justify-self: center; }
  #mm-impact .mi-project-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  #mm-impact .mi-project-content h3 { font-size: 31px; }
}
@media (max-width: 680px) {
  #mm-impact .mi-brand-logo { width: 43px; height: 43px; }
  #mm-impact .mi-legal-grid { grid-template-columns: 1fr; gap: 0; }
  #mm-impact .mi-game { padding: 20px; }
  #mm-impact .mi-game-view-controls button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 420px) {
  #mm-impact .mi-game { padding: 18px; }
  #mm-impact .mi-game-header h2 { font-size: 23px; }
  #mm-impact .mi-game-header .mi-kicker { font-size: 11px; letter-spacing: .04em; }
  #mm-impact .mi-game-badge { padding-inline: 6px; }
  #mm-impact .mi-game-body { grid-template-columns: 1fr; margin-top: 8px; gap: 15px; }
  #mm-impact .mi-game-stage { height: 170px; }
  #mm-impact .mi-game-play { border-left: 0; border-top: 1px solid #6381a344; padding: 14px 0 0; width: 100%; max-width: 260px; justify-self: center; }
  #mm-impact .mi-game-cell { min-height: 56px; }
  #mm-impact .mi-game-status { min-height: 39px; }
}
@media (max-width: 350px) {
  #mm-impact .mi-game-view-controls { width: 100%; max-width: 176px; margin-inline: auto; }
}
@media (pointer: coarse) {
  #mm-impact .mi-game-view-controls button { min-width: 44px; min-height: 44px; }
}

/* Direct language choices stay visible with the mobile navigation closed. */
#mm-impact .mi-brand { margin-right: auto; }
#mm-impact .mi-language-picker { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid #6d87aa66; border-radius: 12px; background: #0b192b; }
#mm-impact .mi-language-picker button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 44px; min-height: 44px; padding: 4px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #bdcde0; font: 600 10px/1.3 Manrope, 'Microsoft YaHei', sans-serif; }
#mm-impact .mi-language-picker img { display: block; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff22; }
#mm-impact .mi-language-picker button:hover { background: #ffffff0a; color: #f0f5fd; }
#mm-impact .mi-language-picker [aria-pressed="true"] { border-color: #9df4d0; background: #9df4d018; color: #d2ffed; }
#mm-impact[lang^="zh"] { font-family: Manrope, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
#mm-impact[lang^="zh"] h1, #mm-impact[lang^="zh"] h2, #mm-impact[lang^="zh"] h3 { letter-spacing: 0; }
#mm-impact[lang^="zh"] .mi-hero h1 { line-height: 1.12; }
#mm-impact[lang^="zh"] .mi-kicker { letter-spacing: .03em; text-transform: none; }
@media (max-width: 860px) {
  #mm-impact .mi-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  #mm-impact .mi-brand { grid-column: 1; grid-row: 1; min-width: 0; }
  #mm-impact .mi-menu { grid-column: 2; grid-row: 1; }
  #mm-impact.mi-js .mi-menu { display: inline-flex; }
  #mm-impact .mi-language-picker { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  #mm-impact .mi-nav { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; width: 100%; gap: 4px 22px; padding-top: 4px; }
  #mm-impact.mi-js:not([data-menu-open="true"]) .mi-nav { display: none; }
}
