body.minecraftle-home {
  background: #f6f7f5;
  color: #1f2420;
}

body.minecraftle-home .minecraftle-hero {
  padding: 12px 0 8px;
  background: #f6f7f5;
  color: #1f2420;
  overflow: visible;
}

body.minecraftle-home .minecraftle-hero::before,
body.minecraftle-home .minecraftle-hero::after { display: none; }

body.minecraftle-home header { background: #fff; border-bottom: 1px solid #d8ddd6; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.minecraftle-home header nav a { color: #3a443f; }
body.minecraftle-home header .logo-brand { color: #28412d; font-size: 22px; font-weight: 700; background: none; -webkit-text-fill-color: #28412d; }
body.minecraftle-home header nav a.active { background: #edf4ee; color: #28412d; }
body.minecraftle-home .language-selector select { background: #fff; color: #28412d; border: 1px solid #d8ddd6; }

body.minecraftle-home .minecraftle-hero .container,
body.minecraftle-home .featured-game.minecraftle-game .container {
  max-width: 1040px;
}

body.minecraftle-home .minecraftle-hero .eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4e6a52;
  font: 700 12px/1 var(--font-display);
}

body.minecraftle-home .minecraftle-hero h1,
body.minecraftle-home .minecraftle-hero h2 {
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: #1f2420;
}

body.minecraftle-home .minecraftle-hero .hero-lede {
  margin: 6px auto;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.45;
  color: #5f6b61;
}

body.minecraftle-home .minecraftle-modes {
  display: inline-flex;
  gap: 8px;
  margin-top: 6px;
  padding: 4px;
  border: 1px solid #d8ddd6;
  border-radius: 8px;
  background: #fff;
}

body.minecraftle-home .minecraftle-loop {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  color: #66756d;
  font: 700 12px/1 var(--font-body), sans-serif;
}
body.minecraftle-home .minecraftle-loop b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border-radius: 50%;
  background: #e5eee6;
  color: #315438;
}
body.minecraftle-home .minecraftle-loop i { color: #b8c2ba; font-style: normal; }
body.minecraftle-home .empty-mark { color: #afbbb1; font: 400 22px/1 var(--font-body), sans-serif; }

body.minecraftle-home .mode-button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5f6b61;
  font: 700 15px/1 var(--font-primary);
}

body.minecraftle-home .mode-button.is-active {
  background: #edf4ee;
  border-color: #cdd9cf;
  color: #28412d;
}

body.minecraftle-home .featured-game.minecraftle-game {
  padding: 0 0 24px;
}

body.minecraftle-home .featured-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  grid-template-areas: none;
  gap: 12px;
}

body.minecraftle-home .featured-content > * { grid-area: auto; min-width: 0; }
body.minecraftle-home .games-showcase { order: 2; }
body.minecraftle-home .legacy-game-details { order: 3; border-top: 1px solid #d8ddd6; padding: 16px 0; }
body.minecraftle-home .legacy-game-details summary { cursor: pointer; font-weight: 700; }
body.minecraftle-home .game-info { display: none; }
body.minecraftle-home .games-showcase { background: transparent; box-shadow: none; border-radius: 0; min-height: 0; max-height: none; height: auto; padding: 12px 0 0; }
body.minecraftle-home .games-showcase h3 { color: #28412d; }
body.minecraftle-home .games-carousel { height: 190px; min-height: 0; padding: 0; mask-image: none; -webkit-mask-image: none; }
body.minecraftle-home .games-carousel-track { flex-direction: row; animation-name: scrollLeft; }
body.minecraftle-home .carousel-game-card { width: 220px; }
body.minecraftle-home .carousel-game-thumb { height: 124px; padding-bottom: 0; }
body.minecraftle-home .carousel-game-thumb img { background: #e8eee9; color: transparent; }

body.minecraftle-home .crafting-puzzle {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-body), sans-serif;
  letter-spacing: 0;
}

body.minecraftle-home .puzzle-topline,
body.minecraftle-home .puzzle-stats,
body.minecraftle-home .puzzle-legend,
body.minecraftle-home .puzzle-status,
body.minecraftle-home .puzzle-result,
body.minecraftle-home .guess-history,
body.minecraftle-home .ingredient-panel {
  background: transparent;
}

body.minecraftle-home .puzzle-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font: 700 12px/1 var(--font-display);
  color: #35573a;
}

body.minecraftle-home .puzzle-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

body.minecraftle-home .puzzle-stats > * {
  padding: 4px 0;
  border: 0;
  font: 700 14px/1.2 var(--font-primary);
  color: #4d5a50;
}

body.minecraftle-home .puzzle-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

body.minecraftle-home .crafting-board-wrap,
body.minecraftle-home .ingredient-panel,
body.minecraftle-home .guess-history,
body.minecraftle-home .puzzle-result,
body.minecraftle-home .puzzle-toolbar,
body.minecraftle-home .puzzle-actions,
body.minecraftle-home .puzzle-legend,
body.minecraftle-home .puzzle-status {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.minecraftle-home .crafting-board-wrap {
  padding: 0;
}

body.minecraftle-home .board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  margin-bottom: 8px;
  color: #5f6b61;
  font: 700 12px/1.2 var(--font-body), sans-serif;
}
body.minecraftle-home #selected-ingredient { color: #315438; }

body.minecraftle-home .crafting-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.minecraftle-home .crafting-slot,
body.minecraftle-home .crafting-cell {
  position: relative;
  display: grid;
  place-items: center;
  height: 96px;
  min-height: 0;
  padding: 10px;
  border: 1px solid #d9ddd6;
  border-radius: 8px;
  background: #fff;
  color: #1f2420;
}

body.minecraftle-home .crafting-slot:hover,
body.minecraftle-home .crafting-cell:hover {
  border-color: #aebcaf;
  transform: translateY(-1px);
}

body.minecraftle-home .crafting-slot.is-filled,
body.minecraftle-home .crafting-cell.is-filled,
body.minecraftle-home .crafting-slot.is-active,
body.minecraftle-home .crafting-cell.is-active {
  border-color: #94ad96;
  background: #f4f7f4;
}

body.minecraftle-home .crafting-slot .ingredient-icon,
body.minecraftle-home .crafting-cell .ingredient-icon {
  width: 36px;
  height: 36px;
}

body.minecraftle-home .crafting-slot .slot-mark,
body.minecraftle-home .crafting-cell .cell-feedback {
  position: absolute;
  bottom: 8px;
  right: 8px;
  margin-top: 4px;
  font: 700 11px/1 var(--font-display);
  color: #66756d;
}

body.minecraftle-home .ingredient-panel {
  padding: 0;
}

body.minecraftle-home .ingredient-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

body.minecraftle-home .ingredient-heading h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #1f2420;
}

body.minecraftle-home .ingredient-heading button,
body.minecraftle-home .game-icon button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d8ddd6;
  border-radius: 8px;
  background: #fff;
  color: #1f2420;
}

body.minecraftle-home .ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.minecraftle-home .ingredient-choice {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 8px;
  height: 76px;
  padding: 8px 10px;
  border: 1px solid #d9ddd6;
  border-radius: 8px;
  background: #fff;
  color: #1f2420;
  font: 700 12px/1.1 var(--font-body);
  text-align: center;
}

body.minecraftle-home .ingredient-choice svg {
  width: 32px;
  height: 32px;
}

body.minecraftle-home .ingredient-choice.is-selected {
  border-color: #7f9c82;
  background: #eef4ef;
}

body.minecraftle-home .puzzle-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.minecraftle-home .puzzle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 0;
  color: #5f6b61;
}

body.minecraftle-home .puzzle-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 13px/1 var(--font-primary);
}

body.minecraftle-home .puzzle-legend .exact::before,
body.minecraftle-home .puzzle-legend .present::before,
body.minecraftle-home .puzzle-legend .absent::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

body.minecraftle-home .puzzle-legend .exact::before { background: #5f8d63; }
body.minecraftle-home .puzzle-legend .present::before { background: #d8b047; }
body.minecraftle-home .puzzle-legend .absent::before { background: #98a29b; }

body.minecraftle-home .puzzle-status,
body.minecraftle-home .puzzle-hint,
body.minecraftle-home .puzzle-disclaimer,
body.minecraftle-home #share-status {
  color: #5f6b61;
  font-size: 14px;
  line-height: 1.45;
}

body.minecraftle-home .submit-guess,
body.minecraftle-home .puzzle-toolbar button,
body.minecraftle-home .puzzle-actions button,
body.minecraftle-home .ingredient-heading button {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #cfd8d0;
  border-radius: 8px;
  background: #fff;
  color: #28412d;
  font: 700 14px/1 var(--font-primary);
}

body.minecraftle-home .submit-guess:disabled,
body.minecraftle-home .ingredient-choice:disabled,
body.minecraftle-home .mode-button:disabled,
body.minecraftle-home .game-icon button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.minecraftle-home .submit-guess:hover,
body.minecraftle-home .puzzle-toolbar button:hover,
body.minecraftle-home .puzzle-actions button:hover,
body.minecraftle-home .ingredient-heading button:hover,
body.minecraftle-home .game-icon button:hover {
  border-color: #aebcaf;
}

body.minecraftle-home .puzzle-result {
  margin-top: 12px;
}

body.minecraftle-home .puzzle-result h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
}

body.minecraftle-home .puzzle-result p {
  margin: 0;
}

body.minecraftle-home .puzzle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body.minecraftle-home .guess-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body.minecraftle-home .history-row {
  display: grid;
  gap: 8px;
}

body.minecraftle-home .history-label,
body.minecraftle-home .history-summary {
  font: 700 13px/1.2 var(--font-primary);
  color: #5f6b61;
}

body.minecraftle-home .history-grid,
body.minecraftle-home .answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.minecraftle-home .history-cell {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px;
  border: 1px solid #d9ddd6;
  border-radius: 8px;
  background: #fff;
  font: 700 12px/1 var(--font-primary);
  color: #1f2420;
}

body.minecraftle-home .history-cell.empty {
  color: #98a29b;
}

body.minecraftle-home .history-cell.exact {
  background: #edf4ee;
  border-color: #96b098;
}

body.minecraftle-home .history-cell.present {
  background: #f9efed;
  border-color: #d9a5a0;
}

body.minecraftle-home .history-cell.absent {
  background: #f2f3f1;
  border-color: #cfd4cf;
}

body.minecraftle-home #share-fallback {
  margin-top: 10px;
}

body.minecraftle-home #share-fallback textarea,
body.minecraftle-home #share-text {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid #d8ddd6;
  border-radius: 8px;
  background: #fff;
  color: #1f2420;
  font: 400 14px/1.45 var(--font-body);
  resize: vertical;
}

body.minecraftle-home .game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.minecraftle-home .game-icon button svg,
body.minecraftle-home .game-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

body.minecraftle-home .game-icon button:focus-visible,
body.minecraftle-home .mode-button:focus-visible,
body.minecraftle-home .ingredient-choice:focus-visible,
body.minecraftle-home .crafting-cell:focus-visible,
body.minecraftle-home .submit-guess:focus-visible,
body.minecraftle-home .puzzle-actions button:focus-visible,
body.minecraftle-home #share-fallback textarea:focus-visible {
  outline: 2px solid #28412d;
  outline-offset: 2px;
}

body.minecraftle-home .puzzle-disclaimer {
  margin-top: 12px;
  font-size: 12px;
}

body.minecraftle-home .submit-guess { width: 100%; margin-top: 12px; background: #284f36; color: white; }
body.minecraftle-home .crafting-cell.exact { background: #d7eddc; border: 2px solid #5c8f66; }
body.minecraftle-home .crafting-cell.present { background: #fff1c7; border: 2px dashed #ad8825; }
body.minecraftle-home .crafting-cell.absent { background: #e4e7e4; border: 2px dotted #87948c; }
body.minecraftle-home .history-cell.present { background: #fff1c7; border-color: #ad8825; }
body.minecraftle-home .history-cell { position: relative; height: 42px; min-height: 0; padding: 4px; }
body.minecraftle-home .history-cell img { width: 24px; height: 24px; }
body.minecraftle-home .history-cell small { position: absolute; bottom: 2px; right: 2px; font-size: 10px; }
body.minecraftle-home .history-grid { width: 140px; }
body.minecraftle-home .history-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid #d8ddd6; padding: 12px 0; }
body.minecraftle-home .answer-grid { margin: 12px 0; }
body.minecraftle-home .puzzle-topline { line-height: 1.5; }
body.minecraftle-home #guess-count { white-space: nowrap; }
body.minecraftle-home .puzzle-hint { min-height: 40px; margin: 0; }
body.minecraftle-home [hidden] { display: none !important; }
body.minecraftle-home #clear-board { width: 40px; padding: 0; flex: 0 0 40px; font-size: 22px; }
body.minecraftle-home #save-result { width: 44px; font-size: 24px; padding: 8px; }
body.minecraftle-home .crafting-cell.is-filled .ingredient-icon { animation: minecraftle-pop .18s ease-out; }
@keyframes minecraftle-pop { from { transform: scale(.72); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body.minecraftle-home .crafting-cell.is-filled .ingredient-icon { animation: none; }
  body.minecraftle-home .crafting-cell:hover { transform: none; }
}

@media (max-width: 768px) {
  body.minecraftle-home header .container { flex-direction: row; gap: 8px; }
  body.minecraftle-home header .logo { margin: 0; }
  body.minecraftle-home header { padding: 8px 0; }
  body.minecraftle-home .language-selector { margin: 0 0 0 auto; }
  body.minecraftle-home .language-selector select { max-width: 88px; }
  body.minecraftle-home .nav-toggle { order: 3; flex: 0 0 40px; height: 40px; }
  body.minecraftle-home .nav-toggle-bar { background: #28412d; }
  body.minecraftle-home header nav { visibility: hidden; background: #fff; height: 100dvh; }
  body.minecraftle-home header nav.is-open { visibility: visible; }
  body.minecraftle-home header nav a { color: #28412d; }
}

@media (max-width: 640px) {
  body.minecraftle-home .puzzle-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.minecraftle-home .crafting-board { max-width: 280px; margin: 0 auto; }

  body.minecraftle-home .ingredient-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.minecraftle-home .ingredient-choice { height: 52px; padding: 6px; }
  body.minecraftle-home .ingredient-choice span:not(.empty-mark) { display: none; }
  body.minecraftle-home .puzzle-hint { min-height: 24px; }
  body.minecraftle-home .puzzle-topline { font-family: var(--font-body), sans-serif; font-size: 12px; }
  body.minecraftle-home .puzzle-stats > * { font-family: var(--font-body), sans-serif; font-size: 12px; }
}

@media (min-width: 641px) {
  body.minecraftle-home .games-showcase { max-width: 960px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body.minecraftle-home .minecraftle-hero {
    padding-top: 12px;
  }

  body.minecraftle-home .minecraftle-hero h1,
  body.minecraftle-home .minecraftle-hero h2 {
    font-size: 36px;
  }

  body.minecraftle-home .minecraftle-hero .hero-lede {
    font-size: 16px;
  }

  body.minecraftle-home .minecraftle-modes,
  body.minecraftle-home .puzzle-actions,
  body.minecraftle-home .puzzle-toolbar {
    width: 100%;
  }

  body.minecraftle-home .mode-button,
  body.minecraftle-home .submit-guess,
  body.minecraftle-home .puzzle-actions button,
  body.minecraftle-home .puzzle-toolbar button,
  body.minecraftle-home .ingredient-heading button,
  body.minecraftle-home .game-icon button {
    width: 100%;
  }

  body.minecraftle-home .minecraftle-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.minecraftle-home .minecraftle-loop { width: 100%; justify-content: center; }

  body.minecraftle-home .puzzle-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.minecraftle-home .ingredient-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.minecraftle-home .crafting-cell,
  body.minecraftle-home .crafting-slot {
    height: 68px;
    min-height: 0;
  }

  body.minecraftle-home .crafting-board {
    gap: 6px;
  }
}

@media (max-width: 390px) {
  body.minecraftle-home .minecraftle-hero h1,
  body.minecraftle-home .minecraftle-hero h2 {
    font-size: 36px;
  }

  body.minecraftle-home .crafting-cell,
  body.minecraftle-home .crafting-slot {
    height: 64px;
    min-height: 0;
    padding: 8px;
  }

  body.minecraftle-home .ingredient-choice {
    padding: 8px;
  }
  body.minecraftle-home .ingredient-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
