.ww-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.ww-level-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.ww-level-btn {
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.ww-level-btn[aria-pressed="true"] {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}
.ww-level-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.ww-grid {
  display: grid;
  gap: 3px;
  background: #2a2338;
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 3px var(--color-border);
  max-width: 100%;
  overflow: auto;
}

.ww-tile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 6px;
  background: #f4ecff;
  cursor: default;
  position: relative;
  user-select: none;
}
.ww-tile--wall {
  background: #4a4058;
}
.ww-tile--floor,
.ww-tile--snack,
.ww-tile--exit {
  cursor: pointer;
}
.ww-tile--floor:hover,
.ww-tile--snack:hover,
.ww-tile--exit:hover {
  background: #e4d6ff;
}
.ww-tile--dog {
  background: #ddd0f5;
}
.ww-tile--danger:not(.ww-tile--wall):not(.ww-tile--dog) {
  background: #ffd7d0;
}
.ww-tile--danger.ww-tile--floor:hover,
.ww-tile--danger.ww-tile--snack:hover,
.ww-tile--danger.ww-tile--exit:hover {
  background: #ffc3b8;
}
.ww-tile--cat {
  background: #fff3c4 !important;
}
.ww-tile--caught {
  background: #ff8a80 !important;
}

.ww-zzz {
  position: absolute;
  top: -6px;
  right: -2px;
  font-size: 0.6rem;
  opacity: 0.8;
}

@media (max-width: 480px) {
  .ww-tile { width: 30px; height: 30px; font-size: 1.05rem; }
}
