:root {
  --bg: #0f1226;
  --card: #161a36;
  --accent: #6ee7f5;
  --accent-2: #9b8cff;
  --accent-3: #4ade80;
  --muted: #9aa3b2;
  --text: #e8ebff;
  --danger: #ff4d6d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --morph-y-offset: -72.5%;
}
@media (min-width: 769px) {
  :root {
    --morph-y-offset: -77.5%;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a1f46 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #1a2b4a 0%, transparent 60%),
    linear-gradient(180deg, #0b0e1d 0%, #0f1226 60%, #0b0e1d 100%);
  color: var(--text);
  font:
    16px/1.5 "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.wrap {
  width: min(880px, calc(100% - 48px));
  max-width: 880px;
  display: grid;
  gap: 22px;
  align-content: center;
  margin: 0;
}
.title-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card {
  background:
    linear-gradient(
        135deg,
        rgba(110, 231, 245, 0.08),
        rgba(155, 140, 255, 0.06)
      )
      padding-box,
    linear-gradient(
        135deg,
        rgba(110, 231, 245, 0.35),
        rgba(155, 140, 255, 0.35)
      )
      border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(10px);
}
.title {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: clamp(36px, 2.4vw, 30px);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-text {
  background: none;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  color: inherit;
}
.morphing-letter {
  position: relative;
  display: inline-block;
  width: 0.6em;
  overflow: hidden;
}
.letter-container {
  position: relative;
  display: inline-block;
}
.letter-a,
.letter-e {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateY(var(--morph-y-offset));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.letter-a {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.letter-e {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-barend .pos1 .letter-a {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-barend .pos1 .letter-e {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-barend .pos2 .letter-a {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-barend .pos2 .letter-e {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-barand .pos1 .letter-a {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-barand .pos1 .letter-e {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-barand .pos2 .letter-a {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-barand .pos2 .letter-e {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-berand .pos1 .letter-a {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-berand .pos1 .letter-e {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-berand .pos2 .letter-a {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-berand .pos2 .letter-e {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-berend .pos1 .letter-a {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-berend .pos1 .letter-e {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
.morph-state-berend .pos2 .letter-a {
  opacity: 0;
  transform: translateY(var(--morph-y-offset)) scale(0.3);
}
.morph-state-berend .pos2 .letter-e {
  opacity: 1;
  transform: translateY(var(--morph-y-offset)) scale(1);
}
form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
input[type="text"] {
  flex: 1 1 320px;
  min-width: 0;
  padding: 12px 14px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1230;
  color: var(--text);
  outline: none;
  font-weight: 600;
}
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(110, 231, 245, 0.08);
}
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 20px 32px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition:
    transform 0.06s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  color: #02131a;
  background: linear-gradient(135deg, var(--accent), #6fd4ff);
  box-shadow: 0 10px 30px rgba(110, 231, 245, 0.22);
}
.btn.ghost {
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card .btn.ghost {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn.ghost svg {
  vertical-align: middle;
}
.btn.stop {
  color: #33000b;
  background: linear-gradient(135deg, #ff97aa, var(--danger));
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.12);
}
.top-left-controls {
  position: fixed;
  top: 24px;
  left: 24px;
  display: block;
  z-index: 100;
}
#menu-toggle {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#menu-toggle svg {
  transition: opacity 0.2s ease;
}

.top-left-controls.menu-open #menu-toggle {
  transform: rotate(180deg);
  border-color: var(--accent);
}
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  pointer-events: none;
}
.menu-items .btn {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.top-left-controls.menu-open .menu-items {
  pointer-events: auto;
}
.top-left-controls.menu-open .menu-items .btn {
  opacity: 1;
  transform: translateY(0);
}
.top-left-controls.menu-open .menu-items .btn:nth-child(1) {
  transition-delay: 0.04s;
}
.top-left-controls.menu-open .menu-items .btn:nth-child(2) {
  transition-delay: 0.08s;
}
.top-left-controls.menu-open .menu-items .btn:nth-child(3) {
  transition-delay: 0.12s;
}
.top-left-controls.menu-open .menu-items .btn:nth-child(4) {
  transition-delay: 0.16s;
}
.top-left-controls.menu-open .menu-items .btn:nth-child(5) {
  transition-delay: 0.2s;
}
.grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}
#grid {
  max-height: clamp(320px, 60vh, 600px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}
#grid::-webkit-scrollbar {
  width: 8px;
}
#grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
#grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
#grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
#info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
#combo-count {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
#pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
#page-indicator {
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0 8px;
  white-space: nowrap;
}
.cell {
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 900;
  font-size: clamp(18px, 3.2vw, 32px);
  letter-spacing: 0.6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 180px at var(--x, 50%) var(--y, 50%),
    rgba(110, 231, 245, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cell:hover::after {
  opacity: 1;
}
.cell.active {
  background: linear-gradient(
    180deg,
    rgba(155, 140, 255, 0.18),
    rgba(110, 231, 245, 0.12)
  );
  border-color: rgba(110, 231, 245, 0.65);
  box-shadow:
    inset 0 0 0 6px rgba(110, 231, 245, 0.08),
    inset 0 0 40px rgba(110, 231, 245, 0.06);
}
.cell.valid {
  background: linear-gradient(
    180deg,
    rgba(74, 222, 128, 0.18),
    rgba(74, 222, 128, 0.12)
  );
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow:
    inset 0 0 0 6px rgba(74, 222, 128, 0.08),
    inset 0 0 40px rgba(74, 222, 128, 0.06);
}
.cell.invalid {
  background: linear-gradient(
    180deg,
    rgba(255, 77, 109, 0.18),
    rgba(255, 77, 109, 0.12)
  );
  border-color: rgba(255, 77, 109, 0.65);
  box-shadow:
    inset 0 0 0 6px rgba(255, 77, 109, 0.08),
    inset 0 0 40px rgba(255, 77, 109, 0.06);
}
.cell.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.cell.bounce {
  animation: bounce 0.5s ease both;
}
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}
#canvas-container {
  height: clamp(320px, 60vh, 600px);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.08));
}
#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  background: transparent;
}
.canvas-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 10;
}
.canvas-controls {
  background: rgba(0, 0, 0, 0.68);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #c4cbe0;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.desktop-hint {
  display: block;
}
.mobile-hint {
  display: none;
}
@media (max-width: 768px) {
  .desktop-hint {
    display: none;
  }
  .mobile-hint {
    display: block;
  }
}
.dimension-info {
  background: rgba(110, 231, 245, 0.08);
  border: 1px solid rgba(110, 231, 245, 0.22);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #dcecff;
  backdrop-filter: blur(4px);
}
dialog::backdrop {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1b1f45, #131736);
  color: var(--text);
  box-shadow: var(--shadow);
  max-width: 500px;
  width: calc(100% - 32px);
}
.modal-head {
  padding: 14px 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 77, 109, 0.18),
    rgba(110, 231, 245, 0.06)
  );
  display: flex;
  align-items: center;
}
.modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.modal-body {
  padding: 14px 16px;
  color: #dfe5ff;
  max-height: 60vh;
  overflow-y: auto;
}
.modal-actions {
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #0e1230;
}
.kbd {
  font:
    600 12px ui-monospace,
    Menlo,
    Monaco,
    monospace;
  background: #0e1230;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
  color: #b8c0de;
}
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.option-row:last-child {
  border-bottom: none;
}
.option-row label,
.option-row > span {
  flex-grow: 1;
}
.option-row input[type="range"] {
  flex: 0 1 140px;
}
.slider-value {
  font-weight: 600;
  min-width: 32px;
  text-align: right;
  color: var(--muted);
}
.toggle-switch {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #333863;
  border-radius: 22px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}
.toggle-switch::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
}
.toggle-switch:checked {
  background: var(--accent-3);
}
.toggle-switch:checked::before {
  transform: translateX(18px);
}
.option-group {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.option-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.option-group-header span {
  flex-grow: 1;
}
.vowel-controls {
  display: flex;
  gap: 8px;
}
.btn-tiny {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #c4cbe0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
}
.btn-tiny:hover {
  background: rgba(255, 255, 255, 0.12);
}
.vowel-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px 16px;
}
.vowel-group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-weight: 600;
  color: var(--muted);
}
.vowel-group-item label {
  flex-grow: 1;
}
details > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary.option-row {
  transition: background-color 0.15s ease;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
  border-radius: 8px;
}
details > summary.option-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
details > summary.option-row::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease-in-out;
}
details[open] > summary.option-row::after {
  transform: translateY(-50%) rotate(90deg);
}
.collapsible-content {
  padding: 12px 16px 16px 16px;
  background: rgba(0, 0, 0, 0.1);
}
#barendroom-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(to top, #6dd5ed, #2193b0);
  opacity: 0;
  animation: fadeIn 1s forwards;
  overflow: hidden;
  cursor: pointer;
}
.barendroom-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: rgba(255, 255, 255, 0.9);
  color: #2193b0;
  border-radius: 24px;
  padding: 30px 50px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: popUp 1s 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.barendroom-popup h2 {
  font-size: 48px;
  margin: 0;
}
.barendroom-popup p {
  font-size: 20px;
  margin: 10px 0 0;
}
.cloud {
  position: absolute;
  background: radial-gradient(circle, white 60%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: moveCloud 20s linear infinite;
}
.cloud.c1 {
  width: 200px;
  height: 60px;
  top: 10%;
  left: -250px;
}
.cloud.c2 {
  width: 300px;
  height: 90px;
  top: 25%;
  left: -350px;
  animation-duration: 25s;
  animation-delay: -5s;
}
.cloud.c3 {
  width: 150px;
  height: 45px;
  top: 60%;
  left: -200px;
  animation-duration: 18s;
  animation-delay: -10s;
}
.confetti {
  position: absolute;
  width: 10px;
  height: 20px;
  background: #f00;
  opacity: 0.8;
  animation: fall 5s linear infinite;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes popUp {
  from {
    transform: translate(-50%, -50%) scale(0.5);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes moveCloud {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 400px));
  }
}
@keyframes fall {
  from {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}
#barendroom-2d-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: var(--bg);
  overflow: hidden;
}
#trace-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bouncing-cell {
  position: fixed;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-weight: 900;
  font-size: clamp(18px, 3.2vw, 32px);
  letter-spacing: 0.6px;
  line-height: 1.1;
  white-space: nowrap;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--text);
}
.barendroom-congrats-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 10001;
  border: 1px solid rgba(110, 231, 245, 0.35);
  animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.barendroom-congrats-popup h2 {
  font-size: 32px;
  margin: 0 0 12px 0;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.barendroom-congrats-popup p {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--muted);
}
.barendroom-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.barendroom-popup-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}
#leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
#leaderboard-table th,
#leaderboard-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#leaderboard-table th {
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
}
#leaderboard-table td {
  font-size: 15px;
}
.revealed-word-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.revealed-word-container span {
  font-weight: 700;
  color: var(--accent);
}
.clickable-barendroom {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  transition: text-decoration 0.2s ease;
}
.clickable-barendroom:hover {
  text-decoration: underline;
}
.def-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.def-link:hover {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
@keyframes highlight-def {
  from {
    background-color: rgba(110, 231, 245, 0.2);
  }
  to {
    background-color: transparent;
  }
}
.highlight-def {
  animation: highlight-def 1.5s ease-out;
  border-radius: 4px;
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 24px);
  }
  form {
    gap: 8px;
  }
  input[type="text"] {
    flex-basis: 100%;
  }
  .btn {
    padding: 12px 16px;
    font-size: 16px;
  }
  #info-bar {
    justify-content: center;
  }
  .form-actions {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  .form-actions .btn {
    flex-grow: 1;
    flex-basis: 0;
  }
  .form-actions #options-btn {
    flex-grow: 0;
  }
  .top-left-controls {
    top: 16px;
    left: 16px;
  }
}
