:root {
  --green: #6aaa64;
  --yellow: #c9b458;
  --grey: #787c7e;
  --concealed: #d3d6da;
  --bg: #121213;
}

.waffle-wrapper {
  margin-bottom: 50px;
}

.waffle-title {
  text-align: center;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

.waffle-grid {
  display: grid;
  grid-template-columns: repeat(5, 64px);
  grid-template-rows: repeat(5, 64px);
  gap: 6px;
}

.tile {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  user-select: none;
}

/* Revealed states */
.tile--green {
  background: var(--green);
  color: #fff;
}

.tile--yellow {
  background: var(--yellow);
  color: #fff;
}

.tile--grey {
  background: var(--grey);
  color: #fff;
}

/* Concealed (yellow + grey before reveal) */
.tile--concealed {
  background: var(--concealed);
  color: #444;
}

.tile-reveal-btn {
  border: none;
  background: #e5e7eb;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tile-reveal-btn:hover {
  background: #d1d5db;
}

.tile-reveal-btn:active {
  transform: translateY(1px);
}

:root {
  /* Adjust this one number to make the whole grid bigger/smaller */
  --waffle-tile-size: 80px; /* try 80–90px to match your Figma */
}

/* Center the grid container */
.waffle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: left;
}

/* 5×5 grid, with gaps, using the tile size variable */
.waffle-grid {
  display: grid;
  grid-auto-rows: var(--waffle-tile-size);
  gap: 18px; /* space between tiles, tweak to taste */
}

/* Base tile size */
.tile {
  width: var(--waffle-tile-size);
  height: var(--waffle-tile-size);
  border-radius: 16px; /* rounded corners like your Figma */
  font-size: 32px; /* larger letter */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make the inner Reveal pill scale nicely inside the bigger tile */
.tile--concealed .tile-reveal-btn {
  width: 70%;
  padding: 6px 0;
  border-radius: 999px;
  font-size: 14px;
}

.waffle-answer-content {
  margin-top: 40px; /* space above the section */
  padding-top: 40px; /* space between line and heading */
  border-top: 1px solid #e5e7eb; /* subtle divider line */
}

.tile {
  width: var(--waffle-tile-size);
  height: var(--waffle-tile-size);
  border-radius: 16px;

  /* --- TEXT PROPERTIES (correct Waffle rules) --- */
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 41.6px; /* match original game */
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  user-select: none;

  /* --- ALIGNMENT (already correct) --- */
  display: flex;
  align-items: center;
  justify-content: center;

  /* --- SMALL OFFSET to match Waffle's vertical feel --- */
  padding-top: 4.5px; /* matches real game’s slightly lowered text */
}

.tile--green,
.tile--yellow,
.tile--grey {
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.28),
    inset 0 -4px 5px rgba(0, 0, 0, 0.32);
}
.tile:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}

.twf-divider {
  width: 100%;
  border-bottom: 1px solid #E5E7EB; /* Tailwind gray-300 */
  margin: 52px 0 24px 0;            /* 32px above, 24px below */
}