/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --background: hsl(40, 30%, 95%);
  --foreground: hsl(30, 20%, 25%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(30, 20%, 25%);
  --primary: hsl(25, 55%, 48%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(35, 25%, 88%);
  --secondary-foreground: hsl(30, 20%, 30%);
  --muted: hsl(35, 20%, 90%);
  --muted-foreground: hsl(30, 15%, 50%);
  --accent: hsl(30, 25%, 82%);
  --border: hsl(35, 20%, 88%);
  --destructive: hsl(0, 70%, 55%);

  --game-board: hsl(30, 18%, 50%);
  --game-title: hsl(30, 25%, 35%);
  --score-bg: hsl(35, 15%, 88%);
  --score-label: hsl(30, 15%, 55%);
  --score-value: hsl(30, 25%, 35%);

  --tile-empty: hsl(30, 15%, 62%);
  --tile-2: hsl(40, 35%, 92%);
  --tile-4: hsl(40, 40%, 85%);
  --tile-8: hsl(25, 65%, 60%);
  --tile-16: hsl(18, 75%, 55%);
  --tile-32: hsl(10, 80%, 55%);
  --tile-64: hsl(5, 85%, 48%);
  --tile-128: hsl(45, 80%, 55%);
  --tile-256: hsl(45, 85%, 50%);
  --tile-512: hsl(42, 90%, 45%);
  --tile-1024: hsl(38, 95%, 42%);
  --tile-2048: hsl(35, 100%, 40%);
  --tile-text-dark: hsl(30, 25%, 30%);
  --tile-text-light: hsl(0, 0%, 100%);

  --toolbar-bg: hsl(35, 20%, 88%);
  --toolbar-icon: hsl(30, 15%, 55%);
}

/* Dark Mode */
.dark {
  --background: hsl(30, 15%, 12%);
  --foreground: hsl(40, 25%, 90%);
  --card: hsl(30, 12%, 16%);
  --card-foreground: hsl(40, 25%, 90%);
  --primary: hsl(25, 60%, 55%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(30, 12%, 20%);
  --secondary-foreground: hsl(40, 20%, 85%);
  --muted: hsl(30, 10%, 18%);
  --muted-foreground: hsl(35, 12%, 55%);
  --accent: hsl(30, 15%, 25%);
  --border: hsl(30, 10%, 22%);
  --destructive: hsl(0, 60%, 50%);

  --game-board: hsl(30, 12%, 25%);
  --game-title: hsl(40, 25%, 85%);
  --score-bg: hsl(30, 12%, 20%);
  --score-label: hsl(35, 12%, 60%);
  --score-value: hsl(40, 20%, 90%);

  --tile-empty: hsl(30, 10%, 30%);
  --toolbar-bg: hsl(30, 10%, 20%);
  --toolbar-icon: hsl(35, 12%, 60%);
}

/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

.hidden { display: none !important; }

/* Header */
.header {
  width: 100%;
  padding: 16px;
  position: relative;
}

.header-content {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--muted);
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
}

/* Menu */
.menu-wrapper {
  position: relative;
}

.menu-btn {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  transition: background-color 0.2s;
}

.menu-btn:hover {
  background-color: var(--muted);
}

.menu-btn svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
}

.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--foreground);
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: var(--muted);
}

.menu-item.active {
  background-color: rgba(199, 125, 72, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--game-title);
}

.score-box {
  background-color: var(--score-bg);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  position: relative;
}

.score-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--score-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--score-value);
  font-variant-numeric: tabular-nums;
}

.score-add {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: var(--background);
  padding: 2px 4px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
}

.score-add.animate {
  animation: score-float 0.6s ease-out forwards;
}

.new-game-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.new-game-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Game Board */
.game-board {
  position: relative;
  background-color: var(--game-board);
  border-radius: 8px;
  padding: 8px;
  touch-action: none;
  user-select: none;
}

.grid-container {
  position: relative;
  width: 304px;
  height: 304px;
}

@media (min-width: 400px) {
  .grid-container {
    width: 352px;
    height: 352px;
  }
}

.grid-background {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  height: 100%;
}

.grid-cell {
  background-color: var(--tile-empty);
  border-radius: 6px;
}

.tile-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Tiles */
.tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 6px;
  transition: top 0.1s ease-out, left 0.1s ease-out;
  width: calc(25% - 6px);
  height: calc(25% - 6px);
  font-size: 1.75rem;
}

@media (min-width: 400px) {
  .tile { font-size: 2rem; }
}

.tile.tile-new { animation: tile-appear 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.tile.tile-merged { animation: tile-pop 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.tile-2 { background-color: var(--tile-2); color: var(--tile-text-dark); }
.tile-4 { background-color: var(--tile-4); color: var(--tile-text-dark); }
.tile-8 { background-color: var(--tile-8); color: var(--tile-text-light); }
.tile-16 { background-color: var(--tile-16); color: var(--tile-text-light); }
.tile-32 { background-color: var(--tile-32); color: var(--tile-text-light); }
.tile-64 { background-color: var(--tile-64); color: var(--tile-text-light); }
.tile-128 { background-color: var(--tile-128); color: var(--tile-text-dark); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.tile-256 { background-color: var(--tile-256); color: var(--tile-text-dark); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.tile-512 { background-color: var(--tile-512); color: var(--tile-text-light); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.tile-1024 { background-color: var(--tile-1024); color: var(--tile-text-light); box-shadow: 0 6px 10px rgba(0,0,0,0.15); font-size: 1.25rem; }
.tile-2048 { background-color: var(--tile-2048); color: var(--tile-text-light); box-shadow: 0 6px 10px rgba(0,0,0,0.15); font-size: 1.25rem; }
.tile-super { background-color: hsl(30, 100%, 35%); color: var(--tile-text-light); box-shadow: 0 6px 10px rgba(0,0,0,0.2); font-size: 1rem; }

@media (min-width: 400px) {
  .tile-1024, .tile-2048 { font-size: 1.5rem; }
  .tile-super { font-size: 1.25rem; }
}

/* Overlays */
.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fade-in 0.25s ease-out;
}

.dark .overlay { background-color: rgba(30, 27, 24, 0.85); }

.win-overlay { background-color: rgba(199, 125, 72, 0.92); }

.overlay-title { font-size: 1.75rem; font-weight: 700; color: var(--foreground); }
.win-overlay .overlay-title { color: white; }

.overlay-subtitle { color: var(--muted-foreground); }
.win-overlay .overlay-subtitle { color: rgba(255, 255, 255, 0.8); }

.overlay-btn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.overlay-btn:hover { opacity: 0.9; }

/* Stats */
.stats {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-value { font-weight: 600; color: var(--foreground); }
.stat-divider { margin: 0 8px; }

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.toolbar-btn {
  background-color: var(--toolbar-bg);
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.toolbar-btn:hover:not(:disabled) { transform: scale(1.05); }
.toolbar-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.toolbar-btn svg { width: 24px; height: 24px; color: var(--toolbar-icon); }

.toolbar-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--toolbar-bg);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--toolbar-icon);
}

.toolbar-hint svg { width: 18px; height: 18px; }

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fade-in 0.2s ease-out;
}

.modal-content {
  background-color: var(--card);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted-foreground);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.modal-close:hover { background-color: var(--muted); }

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  color: var(--foreground);
}

.modal-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

/* Tutorial Modal */
.tutorial-message {
  background-color: rgba(199, 125, 72, 0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 16px;
}

.arrow-keys {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
}

.arrow-key {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--muted);
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s;
}

.arrow-key.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(199, 125, 72, 0.4);
}

.tutorial-board {
  background-color: var(--game-board);
  border-radius: 8px;
  padding: 8px;
  margin: 0 auto 16px;
  max-width: 200px;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.tutorial-tile {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.tutorial-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--muted);
  transition: background-color 0.2s;
}

.progress-dot.active { background-color: var(--primary); opacity: 0.6; }
.progress-dot.complete { background-color: var(--primary); }

.tutorial-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tutorial-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Tips Modal */
.tips-modal { max-width: 450px; }

.tips-list {
  display: grid;
  gap: 12px;
}

.tip-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tip-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background-color: rgba(199, 125, 72, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 2px;
}

.tip-item p {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.btn-outline:hover { background-color: var(--muted); }

/* Blog Section */
.blog-section {
  width: 100%;
  max-width: 800px;
  padding: 48px 16px;
}

.blog-article {
  margin-bottom: 48px;
}

.article-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.article-icon { font-size: 24px; }

.article-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.article-content {
  background-color: var(--card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

.article-content p {
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--muted-foreground);
}

.article-content p:first-child { color: var(--foreground); }
.article-content p:last-child { margin-bottom: 0; }

.article-intro {
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .two-columns { grid-template-columns: 1fr 1fr; }
}

.two-columns h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.rule-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(199, 125, 72, 0.2);
  color: var(--primary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.kbd {
  padding: 4px 8px;
  background-color: var(--muted);
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 500px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  .tips-grid { grid-template-columns: repeat(3, 1fr); }
}

.tip-card {
  background-color: var(--card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.tip-card:hover { border-color: rgba(199, 125, 72, 0.3); }

.tip-card-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(199, 125, 72, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  width: 100%;
  max-width: 800px;
  padding: 0 16px 48px;
}

.faq-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.faq-icon { font-size: 24px; }

.faq-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background-color: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(199, 125, 72, 0.3); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 16px 16px;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Comments Section */
.comments-section {
  width: 100%;
  max-width: 800px;
  padding: 0 16px 48px;
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.comments-icon { font-size: 20px; }

.comments-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.comment-count {
  margin-left: auto;
  font-size: 14px;
  color: var(--muted-foreground);
}

.comment-form {
  background-color: var(--card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.comment-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-placeholder svg {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
}

.input-field {
  flex: 1;
  background-color: var(--muted);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--foreground);
  font-family: inherit;
}

.input-field:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.input-field::placeholder { color: var(--muted-foreground); }

.textarea-field {
  width: 100%;
  background-color: var(--muted);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--foreground);
  font-family: inherit;
  resize: none;
  margin-bottom: 12px;
}

.textarea-field:focus {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.textarea-field::placeholder { color: var(--muted-foreground); }

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  background-color: var(--card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
}

.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(199, 125, 72, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.comment-time {
  font-size: 12px;
  color: var(--muted-foreground);
}

.comment-delete {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s, background-color 0.2s;
}

.comment-delete:hover {
  color: var(--destructive);
  background-color: rgba(220, 38, 38, 0.1);
}

.comment-delete svg {
  width: 16px;
  height: 16px;
}

.comment-text {
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.5;
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 16px;
}

.vote-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s;
}

.vote-btn svg {
  width: 14px;
  height: 14px;
}

.vote-btn:hover { color: var(--primary); }
.vote-btn.active-like { color: var(--primary); }
.vote-btn.active-dislike { color: var(--destructive); }

/* Footer */
.footer {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
}

/* Animations */
@keyframes tile-appear {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes tile-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes fade-in {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes score-float {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes score-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.score-box.pulse { animation: score-pulse 0.3s ease-out; }
