.tetris-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 250;
  user-select: none;
}

.tetris-bubble {
  position: relative;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: tetris-breathe 3s ease-in-out infinite;
}

@keyframes tetris-breathe {
  0%, 100% { box-shadow: 0 6px 24px rgba(124, 92, 252, 0.4); }
  50% { box-shadow: 0 6px 36px rgba(124, 92, 252, 0.65); }
}

.tetris-bubble:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.6);
  animation: none;
}

.tetris-logo {
  display: grid;
  grid-template-columns: 10px 10px;
  grid-template-rows: 10px 10px;
  gap: 3px;
}

.tl-block {
  display: block;
  border-radius: 2px;
}

.tl-cyan { background: #00f0f0; }
.tl-yellow { background: #f0f000; }
.tl-purple { background: #a000f0; }
.tl-green { background: #00f000; }

.tetris-body {
  display: none;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  gap: 10px;
}

.tetris-panel.tetris-open .tetris-body {
  display: flex;
}

.tetris-panel.tetris-open .tetris-bubble {
  display: none;
}

.tetris-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tetris-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.tetris-score {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.tetris-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.tetris-close:hover { color: var(--text); }

.tetris-board {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  grid-template-rows: repeat(16, 18px);
  gap: 1px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px;
}

.tetris-cell {
  width: 18px;
  height: 18px;
  background: var(--bg2);
  border-radius: 1px;
  transition: background 0.05s ease, opacity 0.3s ease;
}

.tetris-controls {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.tetris-btn {
  width: 36px;
  height: 36px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tetris-btn:hover { background: var(--card-hover); }
.tetris-btn:active { background: var(--accent); color: #fff; }
