/* «نبتتي وصورتي» (games/match-name-image/). Ported from the Siwar standalone
   kids game; every rule is scoped to the game stage. */

.kg-match-name-image {
  /* The site's tokens under the game's own names (site.css defines the green scale). */
  --primary-dark: var(--green-900);
  --primary-medium: var(--green-600);
  --primary-soft: var(--green-400);
  --primary-light: var(--green-100);
  --primary-lighter: var(--green-50);
  --bg-main: #fff;
  --bg-card: #fff;
  --border-card: #d2d6db;
  --border-soft: #e5e7eb;
  --text-primary: #161616;
  --text-secondary: #6c737f;
  --text-muted: #9da4ae;
  --color-correct: #1b8354;
  --color-correct-soft: #dff6e7;
  --color-wrong: #b42318;
  --color-wrong-soft: #fef3f2;
  --color-reward: #f2c94c;
  --color-reward-soft: #fff7de;
  --radius-btn: 4px;
  --radius-md: 16px;
  --radius-lg: 16px;
}

.kg-match-name-image .mni-app,
.kg-match-name-image .mni-app *,
.kg-match-name-image .mni-app *::before,
.kg-match-name-image .mni-app *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.kg-match-name-image .mni-app {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: clip;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
}

.kg-match-name-image button {
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.kg-match-name-image button:focus-visible,
.kg-match-name-image .mni-screen-title:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 2px;
}

/* On the dark bars the ring is white. */
.kg-match-name-image .mni-topbar button:focus-visible,
.kg-match-name-image .mni-page-header button:focus-visible,
.kg-match-name-image .mni-page-header .mni-screen-title:focus-visible,
.kg-match-name-image .mni-topbar .mni-screen-title:focus-visible,
.kg-match-name-image .mni-end-hero .mni-screen-title:focus-visible {
  outline-color: #fff;
}

.kg-match-name-image .mni-screen-title:focus:not(:focus-visible) {
  outline: none;
}

.kg-match-name-image .mni-ico-18 {
  width: 18px;
  height: 18px;
}

.kg-match-name-image .mni-ico-20 {
  width: 20px;
  height: 20px;
}

.kg-match-name-image .mni-flip {
  transform: rotate(180deg);
}

/* ---------- Screens ---------- */

.kg-match-name-image .mni-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  animation: kg-match-fade-in 0.3s ease;
}

@keyframes kg-match-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kg-match-name-image .mni-screen-how,
.kg-match-name-image .mni-screen-level,
.kg-match-name-image .mni-screen-end {
  padding-bottom: 32px;
  background: var(--bg-main);
}

/* ---------- Top bar ---------- */

.kg-match-name-image .mni-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  background: var(--primary-dark);
  color: #fff;
}

.kg-match-name-image .mni-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.kg-match-name-image .mni-topbar-title svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.kg-match-name-image .mni-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg-match-name-image .mni-icon-btn,
.kg-match-name-image .mni-back-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.kg-match-name-image .mni-back-btn {
  width: 40px;
  height: 40px;
}

.kg-match-name-image .mni-icon-btn:hover,
.kg-match-name-image .mni-back-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kg-match-name-image .mni-icon-btn svg,
.kg-match-name-image .mni-back-btn svg {
  width: 18px;
  height: 18px;
}

.kg-match-name-image .mni-stars-display {
  display: flex;
  gap: 3px;
}

.kg-match-name-image .mni-star-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
}

.kg-match-name-image .mni-star-icon.is-filled {
  color: var(--color-reward);
}

/* ---------- Start ---------- */

.kg-match-name-image .mni-screen-start {
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  background: var(--primary-lighter);
  color: var(--text-primary);
  text-align: center;
}

.kg-match-name-image .mni-start-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius-md);
  background: #fff;
  animation: kg-match-float 4s ease-in-out infinite;
}

@keyframes kg-match-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.kg-match-name-image .mni-start-logo svg {
  width: 64px;
  height: 64px;
}

.kg-match-name-image .mni-start-title {
  margin-bottom: 8px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
}

.kg-match-name-image .mni-start-subtitle {
  max-width: 320px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 28px;
}

.kg-match-name-image .mni-start-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

/* ---------- Buttons ---------- */

/* The flat site button (.btn in site.css) under the game's own class names. */
.kg-match-name-image .mni-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.kg-match-name-image .mni-btn-primary,
.kg-match-name-image .mni-btn-purple {
  background: var(--green-600);
  color: #fff;
}

.kg-match-name-image .mni-btn-primary:hover,
.kg-match-name-image .mni-btn-purple:hover {
  background: var(--green-700);
}

.kg-match-name-image .mni-btn-primary:active,
.kg-match-name-image .mni-btn-purple:active {
  background: var(--green-900);
}

.kg-match-name-image .mni-btn-secondary,
.kg-match-name-image .mni-btn-ghost {
  padding: 7px 15px;
  border: 1px solid var(--border-card);
  background: #fff;
  color: var(--text-primary);
}

.kg-match-name-image .mni-btn-secondary:hover,
.kg-match-name-image .mni-btn-ghost:hover {
  background: #f3f4f6;
}

.kg-match-name-image .mni-btn-secondary:active,
.kg-match-name-image .mni-btn-ghost:active {
  background: #e5e7eb;
}

.kg-match-name-image .mni-btn-block {
  width: 100%;
}

/* ---------- How to play / levels ---------- */

.kg-match-name-image .mni-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--primary-dark);
  color: #fff;
}

.kg-match-name-image .mni-page-header h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.kg-match-name-image .mni-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}

.kg-match-name-image .mni-how-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kg-match-name-image .mni-how-cta {
  margin-top: 24px;
}

.kg-match-name-image .mni-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding: 23px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.kg-match-name-image .mni-info-card-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--green-700);
}

.kg-match-name-image .mni-info-card-icon svg {
  width: 22px;
  height: 22px;
}

.kg-match-name-image .mni-info-card-body h3 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.kg-match-name-image .mni-info-card-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.kg-match-name-image .mni-level-card {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-bottom: 14px;
  padding: 23px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

@media (hover: hover) {
  .kg-match-name-image .mni-level-card:hover {
    border-color: var(--primary-medium);
    background: var(--primary-lighter);
  }
}

.kg-match-name-image .mni-level-card-badge {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 700;
}

.kg-match-name-image .mni-level-card[data-level='easy'] .mni-level-card-badge {
  background: var(--color-correct-soft);
  color: #104631;
}

/* Badge digits are darker shades of the original hues, for at least 4.5:1 contrast. */
.kg-match-name-image .mni-level-card[data-level='medium'] .mni-level-card-badge {
  background: var(--color-reward-soft);
  color: #7d5f00;
}

.kg-match-name-image .mni-level-card[data-level='hard'] .mni-level-card-badge {
  background: var(--color-wrong-soft);
  color: #912018;
}

.kg-match-name-image .mni-level-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.kg-match-name-image .mni-level-card-title {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
}

.kg-match-name-image .mni-level-card-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.kg-match-name-image .mni-level-card-arrow {
  display: flex;
  color: var(--text-muted);
  transform: rotate(180deg);
}

.kg-match-name-image .mni-level-card-arrow svg {
  width: 20px;
  height: 20px;
}

/* ---------- Game ---------- */

.kg-match-name-image .mni-game-progress {
  padding: 12px 18px 16px;
  background: var(--primary-medium);
  color: #fff;
}

.kg-match-name-image .mni-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.kg-match-name-image .mni-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.18);
}

.kg-match-name-image .mni-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 100px;
  background: #fff;
  transition: width 0.4s ease;
}

.kg-match-name-image .mni-game-body {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.kg-match-name-image .mni-game-instruction {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--green-200);
  border-radius: 8px;
  background: var(--primary-lighter);
  color: var(--green-700);
  font-size: 15px;
  font-weight: 600;
}

.kg-match-name-image .mni-game-instruction svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.kg-match-name-image .mni-match-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 4px 0;
}

.kg-match-name-image .mni-match-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.kg-match-name-image .mni-match-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* States never rely on colour alone: idle is a plain white card with a hollow dot,
   selected has a thick dark outline and a filled dot, matched has a check in its dot
   (and the drawn link), wrong has a cross and shakes. */
.kg-match-name-image .mni-match-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

@media (hover: hover) {
  .kg-match-name-image .mni-match-item:hover:not(.is-matched):not(.is-selected) {
    border-color: var(--text-secondary);
    background: #f3f4f6;
  }
}

.kg-match-name-image .mni-match-item.is-selected {
  border-color: var(--primary-dark);
  background: var(--primary-light);
  box-shadow: inset 0 0 0 2px var(--primary-dark);
}

.kg-match-name-image .mni-match-item.is-matched {
  border-color: var(--color-correct);
  background: var(--primary-lighter);
  cursor: default;
}

.kg-match-name-image .mni-match-item.is-wrong {
  border-color: var(--color-wrong);
  background: var(--color-wrong-soft);
  box-shadow: inset 0 0 0 1px var(--color-wrong);
  animation: kg-match-shake 0.5s ease;
}

@keyframes kg-match-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}

.kg-match-name-image .mni-match-name {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.kg-match-name-image .mni-match-text {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  overflow-wrap: anywhere;
  text-align: right;
}

.kg-match-name-image .mni-match-image {
  padding: 8px 14px;
}

.kg-match-name-image .mni-match-img {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 86px;
  padding: 6px 8px 6px 0;
}

.kg-match-name-image .mni-match-photo {
  position: absolute;
  inset: 6px;
  width: auto;
  height: auto;
  max-width: calc(100% - 12px);
  max-height: calc(100% - 12px);
  margin: auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  -webkit-user-drag: none;
}

.kg-match-name-image .mni-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 100%;
  border-radius: 8px;
  background: var(--primary-lighter);
  color: var(--green-700);
}

.kg-match-name-image .mni-photo-fallback svg {
  width: 36px;
  height: 36px;
}

.kg-match-name-image .mni-match-dot {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* The state mark is drawn around the dot's centre, so the links keep their anchor. */
.kg-match-name-image .mni-match-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-correct) center / 14px 14px no-repeat;
}

.kg-match-name-image .is-selected .mni-match-dot {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary-dark);
}

.kg-match-name-image .is-matched .mni-match-dot {
  border-color: var(--color-correct);
  background: var(--color-correct);
}

.kg-match-name-image .is-matched .mni-match-dot::after {
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.kg-match-name-image .is-wrong .mni-match-dot {
  border-color: var(--color-wrong);
  background: var(--color-wrong);
}

.kg-match-name-image .is-wrong .mni-match-dot::after {
  display: block;
  background-color: var(--color-wrong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

/* ---------- Plant info / round complete ---------- */

.kg-match-name-image .mni-match-info {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--green-200);
  border-radius: 8px;
  background: var(--primary-lighter);
  color: var(--green-900);
  animation: kg-match-slide-up 0.3s ease;
}

.kg-match-name-image .mni-match-info.is-shown {
  display: flex;
}

@keyframes kg-match-slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kg-match-name-image .mni-match-info-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-correct);
}

.kg-match-name-image .mni-match-info-icon svg {
  width: 16px;
  height: 16px;
}

.kg-match-name-image .mni-match-info-text {
  flex: 1;
  min-width: 0;
}

.kg-match-name-image .mni-match-info-text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
}

.kg-match-name-image .mni-match-info-text small {
  font-size: 13px;
  opacity: 0.85;
}

.kg-match-name-image .mni-round-complete {
  display: none;
  margin-top: 22px;
  padding: 24px 23px;
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  background: var(--primary-lighter);
  text-align: center;
  animation: kg-match-slide-up 0.4s ease;
}

.kg-match-name-image .mni-round-complete.is-shown {
  display: block;
}

.kg-match-name-image .mni-round-complete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-correct);
  color: #fff;
  animation: kg-match-star-pop 0.6s ease;
}

@keyframes kg-match-star-pop {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

.kg-match-name-image .mni-round-complete-icon svg {
  width: 32px;
  height: 32px;
}

.kg-match-name-image .mni-round-complete-title {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.kg-match-name-image .mni-round-complete-subtitle {
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.kg-match-name-image .mni-round-complete .mni-btn {
  min-width: 220px;
}

/* ---------- End ---------- */

.kg-match-name-image .mni-end-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: -36px;
  padding: 40px 24px 60px;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
}

.kg-match-name-image .mni-end-stars {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.kg-match-name-image .mni-end-star {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
}

.kg-match-name-image .mni-end-star.is-earned {
  color: var(--color-reward);
  animation: kg-match-star-pop 0.6s ease;
}

.kg-match-name-image .mni-end-title {
  position: relative;
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.kg-match-name-image .mni-end-subtitle {
  position: relative;
  font-size: 15px;
  opacity: 0.85;
}

.kg-match-name-image .mni-end-stats {
  position: relative;
  z-index: 2;
  width: calc(100% - 36px);
  max-width: 360px;
  margin: 0 auto 24px;
  padding: 11px 23px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: #fff;
}

.kg-match-name-image .mni-end-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.kg-match-name-image .mni-end-stats-row:last-child {
  border-bottom: none;
}

.kg-match-name-image .mni-end-stats-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.kg-match-name-image .mni-end-stats-label svg {
  width: 16px;
  height: 16px;
}

.kg-match-name-image .mni-end-stats-value {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
}

.kg-match-name-image .mni-end-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}

.kg-match-name-image .mni-end-actions .mni-btn {
  width: 100%;
}

/* ---------- Toast / confetti ---------- */

.kg-match-name-image .mni-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  max-width: calc(100vw / var(--site-zoom, 1) - 32px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-50%) translateY(80px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.kg-match-name-image .mni-toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kg-match-name-image .mni-celebration {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

.kg-match-name-image .mni-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

.kg-match-name-image .mni-confetti.is-falling {
  animation: kg-match-confetti-fall 1.6s ease-out forwards;
}

@keyframes kg-match-confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(80vh) rotate(720deg);
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .kg-match-name-image .mni-match-board {
    gap: 90px;
  }

  .kg-match-name-image .mni-match-name {
    font-size: 24px;
  }

  .kg-match-name-image .mni-match-img {
    height: 80px;
  }

  .kg-match-name-image .mni-start-title {
    font-size: 40px;
  }
}

@media (max-width: 380px) {
  .kg-match-name-image .mni-match-board {
    gap: 38px;
  }

  .kg-match-name-image .mni-match-name {
    font-size: 17px;
  }

  .kg-match-name-image .mni-match-img {
    height: 52px;
  }

  .kg-match-name-image .mni-match-item {
    min-height: 70px;
    padding: 10px 12px;
  }

  .kg-match-name-image .mni-start-title {
    font-size: 32px;
  }

  .kg-match-name-image .mni-topbar-title {
    font-size: 16px;
  }

  .kg-match-name-image .mni-game-instruction {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kg-match-name-image .mni-app *,
  .kg-match-name-image .mni-app *::before,
  .kg-match-name-image .mni-app *::after {
    animation: none !important;
    transition: none !important;
  }
}
