:root {
  --bg: #161a24;
  --bg-2: #1c2230;
  --panel: #232a3a;
  --panel-2: #2b3346;
  --text: #eef2f8;
  --muted: #9aa6bd;
  --accent: #7bd88f;
  --accent-2: #5ec57a;
  --danger: #ff6b6b;
  --grass: #8fd16a;
  --grass-2: #79bd55;
  --water: #3f7fd6;
  --water-2: #356fc0;
  --wall: #6b4a32;
  --wall-2: #5a3d29;
  --roam: rgba(255, 224, 130, 0.55);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --page-pad: clamp(8px, 1.8dvh, 16px);
  --app-gap: clamp(7px, 1.6dvh, 14px);
  --board-radius: clamp(7px, calc(var(--play-width) / 34), 14px);
  --cell-radius: clamp(3px, calc(var(--play-width) / 85), 6px);
  --map-tile-thickness: clamp(3px, 1.55cqi, 8px);
  --map-letter-lift: clamp(1.5px, 0.775cqi, 4px);
  --map-tile-radius: clamp(4px, 2cqi, 9px);
  --map-tile-font-size: clamp(0.82rem, 4.65cqi, 1.3rem);
  --deck-slot-size: clamp(34px, min(17cqi, 9.5dvh), 62px);
  --deck-radius: clamp(7px, 4.67cqi, 14px);
  --deck-tile-thickness: clamp(3px, 1.96cqi, 8px);
  --deck-letter-lift: clamp(1.5px, 0.98cqi, 4px);
  --deck-slot-radius: clamp(4px, 2.52cqi, 9px);
  --deck-font-size: clamp(0.82rem, 5.88cqi, 1.3rem);
  --site-green: #a7adb3;
  --water-recess: #8d949b;
  --grid-line: rgba(255, 255, 255, 0.175);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--site-green);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100dvh;
  min-height: 100dvh;
  padding: var(--page-pad);
}

.app {
  --play-width: min(100%, clamp(150px, calc(100dvh - var(--page-pad) - var(--page-pad) - 196px), 520px));
  width: 100%;
  max-width: min(520px, calc(100vw - var(--page-pad) - var(--page-pad)));
  height: calc(100dvh - var(--page-pad) - var(--page-pad));
  display: flex;
  flex-direction: column;
  gap: var(--app-gap);
  min-height: 0;
}

.play-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--app-gap);
}

/* Header */
.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.day-subtitle {
  margin: 2px 0 0;
  color: #f2c94c;
  font-weight: 600;
  font-size: clamp(0.85rem, 2dvh, 1rem);
  line-height: 1.1;
}

.logo {
  margin: 0;
  font-size: clamp(1.45rem, 4.5dvh, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

.logo span {
  color: var(--accent);
}

.ghost-btn {
  position: fixed;
  top: var(--page-pad);
  left: 14px;
  z-index: 20;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 42, 58, 0.45);
  border: 1px solid var(--panel-2);
  color: var(--muted);
  padding: 0;
  border-radius: 50%;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ghost-btn-right {
  left: auto;
  right: 14px;
  font-size: 1.2rem;
}

.ghost-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat,
.score-card {
  background: var(--panel);
  border-radius: var(--deck-radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-label {
  display: block;
  font-size: clamp(0.62rem, 1.6dvh, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.stat-value {
  display: block;
  font-size: clamp(1.4rem, 3.9dvh, 1.85rem);
  font-weight: 700;
  margin-top: 2px;
}

.best-restore {
  position: absolute;
  left: clamp(7px, 1.4dvh, 12px);
  right: clamp(7px, 1.4dvh, 12px);
  bottom: clamp(5px, 1.1dvh, 9px);
  margin-top: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.1em;
  cursor: pointer;
}

.best-restore.hidden {
  pointer-events: none;
  visibility: hidden;
  height: 0;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.best-restore:hover {
  text-decoration: underline;
}

.review-links {
  position: absolute;
  left: clamp(7px, 1.4dvh, 12px);
  right: clamp(7px, 1.4dvh, 12px);
  bottom: clamp(5px, 1.1dvh, 9px);
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4cqi, 28px);
  margin-top: 0;
}

.review-links.hidden {
  display: none;
}

.review-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.review-link-line {
  display: block;
}

.review-link:hover {
  text-decoration: underline;
}

.review-link.hidden {
  display: none;
}

/* Board */
.board {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--cols, 10), 1fr);
  grid-template-rows: repeat(var(--rows, 8), 1fr);
  gap: 0;
  background: transparent;
  padding: 0;
  border-radius: var(--board-radius);
  box-shadow: none;
  aspect-ratio: var(--cols, 10) / var(--rows, 8);
  width: var(--play-width);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
  flex: 0 1 auto;
  min-height: 0;
  overflow: visible;
  position: relative;
}

.grid-cell {
  border-left: 1px solid var(--grid-line);
  border-top: 1px solid var(--grid-line);
  pointer-events: none;
  z-index: 10;
}

.grid-cell.edge-right {
  border-right: 1px solid var(--grid-line);
}

.grid-cell.edge-bottom {
  border-bottom: 1px solid var(--grid-line);
}

.water-layer {
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.water-recess {
  fill: var(--water-recess);
}

.water-surface {
  fill: var(--water);
}

.tile {
  border: none;
  margin: 0;
  padding: 0;
  border-radius: var(--cell-radius);
  font-family: inherit;
  font-size: clamp(12px, min(4.2vw, 3.5dvh), 26px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease, box-shadow 0.12s ease;
  user-select: none;
  aspect-ratio: 1 / 1;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.tile::after {
  content: attr(data-content);
  position: relative;
  z-index: 1;
}

.tile:active {
  transform: none;
}

.tile:focus,
.tile:focus-visible {
  outline: none;
}

.tile.grass {
  background: transparent;
  color: rgba(70, 76, 82, 0.82);
  font-weight: 600;
  text-transform: uppercase;
}

.tile.water {
  background: transparent;
  cursor: not-allowed;
}

.tile.wall {
  background: transparent;
  border-radius: var(--map-tile-radius);
  color: #3a2a12;
  font-size: var(--map-tile-font-size);
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: none;
  padding-bottom: var(--map-tile-thickness);
  z-index: 20;
}

.tile.wall::before {
  background: linear-gradient(160deg, #ffe9b0 0%, #f3cf78 100%);
  border-radius: inherit;
  box-shadow: inset 0 calc(0px - var(--map-tile-thickness)) 0 rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.25);
  content: "";
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(0px - var(--map-tile-thickness));
  z-index: 1;
}

.tile.wall::after {
  transform: translateY(calc(0px - var(--map-letter-lift)));
  z-index: 2;
}

.tile.wall-new::before {
  animation: wallFaceRise 170ms ease-out both;
}

.tile.wall-new::after {
  animation: wallLetterRise 170ms ease-out both;
}

@keyframes wallFaceRise {
  0% {
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 2px 4px rgba(0, 0, 0, 0.25);
    top: 0;
  }
  100% {
    box-shadow: inset 0 calc(0px - var(--map-tile-thickness)) 0 rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.25);
    top: calc(0px - var(--map-tile-thickness));
  }
}

@keyframes wallLetterRise {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(0px - var(--map-letter-lift)));
  }
}

.tile.pending {
  background: repeating-linear-gradient(
    45deg,
    #8a6243,
    #8a6243 6px,
    #7a553a 6px,
    #7a553a 12px
  );
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  animation: pendingPulse 1.1s ease-in-out infinite;
}

@keyframes pendingPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.tile.dad {
  background: transparent;
  box-shadow: none;
}

.tile.dad::after {
  content: "";
  display: block;
  width: 92%;
  aspect-ratio: 1 / 1;
  background-image: url(../assets/dad.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  transform-origin: 50% 82%;
  animation: dadWiggle 2.4s ease-in-out infinite;
}

@keyframes dadWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-5deg); }
  45% { transform: rotate(4deg); }
  70% { transform: rotate(-3deg); }
  88% { transform: rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tile.dad::after {
    animation: none;
  }
}

.tile.filled {
  color: var(--fill-text);
}

.tile.fill-invalid {
  --fill-bg: #f3c94d;
  --fill-text: #4a3410;
}

.tile.fill-valid {
  --fill-bg: #38c86b;
  --fill-text: #0e3518;
}

.tile.filled::before {
  animation: floodFill 320ms ease-out forwards;
  animation-delay: inherit;
  background: var(--fill-bg);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  z-index: 0;
}

/* Cells that were already filled last frame: shown instantly, no replay. */
.tile.filled.fill-static::before {
  animation: none;
  opacity: 1;
}

@keyframes floodFill {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Letter deck */
.deck-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  align-items: stretch;
  gap: clamp(6px, 1.2dvh, 10px);
  width: var(--play-width);
  align-self: center;
  margin-top: clamp(8px, 2.4dvh, 22px);
  min-height: 0;
  overflow: hidden;
}

.deck-panel {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  min-height: clamp(56px, 11dvh, 84px);
  padding: clamp(6px, 1.2dvh, 10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 0.9dvh, 8px);
  background: var(--panel);
  border-radius: var(--deck-radius);
  box-shadow: none;
}

.deck {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(3px, 0.8dvh, 6px);
  align-items: center;
  width: 100%;
  min-width: 0;
  padding-top: clamp(5px, 1.4dvh, 12px);
}

.tiles-left {
  text-align: center;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.9dvh, 0.92rem);
  font-weight: 600;
}

.score-card {
  min-width: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7px, 1.4dvh, 12px);
  /* Reserve a constant footer line at the bottom for the Best / review links
     so toggling them never resizes the card (they're absolutely positioned). */
  padding-bottom: calc(clamp(7px, 1.4dvh, 12px) + 1.2em);
  border-radius: var(--deck-radius);
  box-shadow: none;
  position: relative;
}

.controls .control-btn {
  border-radius: var(--deck-radius);
}

.deck-slot {
  width: var(--deck-slot-size);
  height: var(--deck-slot-size);
  flex: 0 0 var(--deck-slot-size);
  min-width: var(--deck-slot-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--deck-slot-radius);
  color: transparent;
}

.deck-slot.filled {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #3a2a12;
  font-size: var(--deck-font-size);
  font-weight: 700;
  text-transform: uppercase;
  cursor: grab;
  overflow: visible;
  padding-bottom: var(--deck-tile-thickness);
  position: relative;
  touch-action: none;
  transition: transform 150ms ease;
  user-select: none;
}

.deck-slot.filled::before,
.deck-drag-ghost::before {
  background: linear-gradient(160deg, #ffe9b0 0%, #f3cf78 100%);
  border-radius: inherit;
  box-shadow: inset 0 calc(0px - var(--deck-tile-thickness)) 0 rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.25);
  content: "";
  inset: calc(0px - var(--deck-tile-thickness)) 0 0 0;
  position: absolute;
  z-index: 0;
}

.deck-drag-ghost::before {
  box-shadow: inset 0 calc(0px - var(--deck-tile-thickness)) 0 rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.45);
}

.deck-letter {
  position: relative;
  transform: translateY(calc(0px - var(--deck-letter-lift)));
  z-index: 1;
}

.deck-slot.filled.dragging-origin {
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: transparent;
}

.deck-slot.filled.dragging-origin::before {
  display: none;
}

.deck-slot.arriving {
  visibility: hidden;
}

.deck-drag-ghost {
  align-items: center;
  background: transparent;
  border-radius: var(--deck-slot-radius);
  box-shadow: none;
  color: #3a2a12;
  cursor: grabbing;
  display: flex;
  font-size: var(--deck-font-size);
  font-weight: 700;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  padding-bottom: var(--deck-tile-thickness);
  position: fixed;
  text-transform: uppercase;
  touch-action: none;
  transform: translateY(-4px) scale(1.04);
  user-select: none;
  z-index: 1000;
}

.deck-flight-ghost {
  cursor: default;
  transform: none;
  z-index: 1001;
}

/* When the current word is valid AND the dad is enclosed, the placed tiles
   (both on the map and in the deck) turn green to signal a complete solution. */
.all-valid .tile.wall::before,
.all-valid .deck-slot.filled::before {
  background: linear-gradient(160deg, #8be79a 0%, #54c071 100%);
}

.control-btn.small {
  padding: 10px 16px;
  box-shadow: none;
}

.control-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
}

.controls.two {
  grid-template-columns: 1fr 1fr;
  width: var(--play-width);
  align-self: center;
  margin-top: clamp(8px, 2.4dvh, 22px);
}

.control-btn {
  background: var(--panel-2);
  border: none;
  color: var(--text);
  width: min(100%, 82%);
  justify-self: center;
  padding: clamp(9px, 2dvh, 14px);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: clamp(0.9rem, 2.2dvh, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow);
}

.control-btn:hover {
  filter: brightness(1.12);
}

.control-btn.primary {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0e2616;
}

.control-btn.state-grey {
  background: #9499a0;
  color: #4c5158;
  box-shadow: none;
}

.control-btn.state-one {
  background: linear-gradient(160deg, #f3cf78 0%, #e6b94f 100%);
  color: #3a2e0c;
}

.control-btn.state-both {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0e2616;
}

.control-btn.results {
  background: linear-gradient(160deg, #5b6472 0%, #434b58 100%);
  color: #fff;
}

.control-btn.active {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.hint {
  text-align: center;
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  min-height: 1.2em;
  transition: color 0.2s ease;
}

.hint.flash {
  color: var(--danger);
  font-weight: 600;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Modal */
.toast {
  position: fixed;
  top: calc(var(--page-pad) + 44px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(14, 17, 24, 0.95);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-top: 0;
}

.modal-card h3 {
  color: var(--accent);
  margin-bottom: 6px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.rules {
  margin: 0 0 16px;
  padding-left: 18px;
  line-height: 1.6;
}

.rules li {
  margin-bottom: 6px;
}

.ic {
  font-size: 1.1rem;
}

.tip {
  background: var(--panel-2);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.modal-card .control-btn {
  width: 100%;
}

.result-card {
  max-width: 360px;
  text-align: center;
}

.result-medal {
  font-size: 4rem;
  line-height: 1;
  margin: 4px 0 2px;
}

.result-title {
  margin: 0;
  font-size: 1.55rem;
}

.result-percent {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 6px 0 2px;
}

.result-sub {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Past puzzles modal --------------------------------------------------- */

.puzzles-card {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 720px);
}

.puzzles-title {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.medal-tally {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.tally-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 6px;
}

.tally-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.tally-num {
  font-size: 1.45rem;
  font-weight: 700;
}

.streak-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.streak-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 6px;
}

.streak-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.streak-num {
  font-size: 1.7rem;
  font-weight: 700;
}

.streak-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.puzzle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 2px;
}

.puzzle-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.08s ease;
}

.puzzle-row:hover {
  border-color: var(--panel-2);
}

.puzzle-row:active {
  transform: scale(0.99);
}

/* The puzzle currently loaded on the board. */
.puzzle-row.active {
  border-color: var(--accent);
  background: rgba(123, 216, 143, 0.12);
}

.pz-today-tag {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #14301c;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.pz-num {
  font-size: 1.15rem;
  font-weight: 700;
}

.pz-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.pz-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.pz-result {
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
  white-space: nowrap;
}

.pz-result.empty {
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.5rem;
  }
  .control-btn {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}
