* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 5% -20%, rgba(45, 212, 191, 0.28), transparent 52%),
    radial-gradient(900px 500px at 95% 0%, rgba(56, 189, 248, 0.22), transparent 45%),
    radial-gradient(1000px 500px at 50% 120%, rgba(251, 146, 60, 0.14), transparent 60%),
    linear-gradient(180deg, #042f2e 0%, #0a3a4a 35%, #0f172a 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 34px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.logo .logo-hui,
.logo .logo-hua {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
}

.logo .logo-hui {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(16, 185, 129, 0.28));
}

.logo .logo-hua {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.28), rgba(249, 115, 22, 0.3));
}

.subtitle {
  margin-top: 6px;
  color: #cbd5e1;
  letter-spacing: 0.03em;
}

.card {
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.62), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
  animation: cardIn 280ms ease;
}

#auth-section {
  max-width: 520px;
  margin: 0 auto 16px;
}

#game-section {
  background:
    linear-gradient(180deg, rgba(7, 25, 52, 0.52), rgba(6, 19, 42, 0.5)),
    url("./assets/mokulua_background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

#dashboard-section {
  max-width: 840px;
  margin: 0 auto 16px;
}

.auth-shell {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.auth-title {
  margin: 2px 0 4px;
}

.auth-form {
  width: 100%;
  max-width: 340px;
  display: grid;
  gap: 8px;
}

.auth-form label {
  margin-bottom: 2px;
}

.auth-form input {
  height: 40px;
  padding: 8px 10px;
}

.auth-btn {
  margin-top: 8px;
  height: 40px;
}

.auth-toggle {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
}

.auth-toggle a {
  color: #93c5fd;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.row > * {
  flex: 1 1 200px;
}

.dashboard-header {
  align-items: center;
  justify-content: space-between;
}

.dashboard-header > * {
  flex: 0 0 auto;
}

.dashboard-header-title {
  flex: 1 1 auto;
}

.dashboard-header-actions {
  display: flex;
  justify-content: flex-end;
}

.logout-icon {
  display: none;
}

.game-header {
  align-items: flex-start;
}

.game-header > :first-child {
  flex: 1 1 auto;
}

.game-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #cbd5e1;
  font-size: 13px;
  letter-spacing: 0.02em;
}

input,
select,
button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

input,
select {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
  transform: translateY(-1px);
}

button {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 120ms ease, filter 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: linear-gradient(135deg, #334155, #475569);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

button.warn {
  background: linear-gradient(135deg, #dc2626, #be123c);
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.3);
}

button:disabled {
  background: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.compact-btn {
  width: auto;
  min-width: 0;
  padding: 8px 12px;
  height: 36px;
  font-size: 13px;
  line-height: 1;
}

.cta-generate-btn {
  height: 42px;
  min-width: 176px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #06b6d4, #0ea5e9);
  box-shadow:
    0 10px 22px rgba(14, 165, 233, 0.4),
    0 0 0 1px rgba(125, 211, 252, 0.35) inset;
}

#dashboard-section #logout-btn,
#dashboard-section .resume-btn {
  text-transform: uppercase;
}

#dashboard-section #logout-btn,
#dashboard-section #new-game-btn,
#dashboard-section .resume-btn {
  width: 176px;
  min-width: 176px;
  text-align: center;
}

#dashboard-section .resume-btn {
  width: 164px;
  min-width: 164px;
}

.cta-generate-btn:hover {
  filter: brightness(1.08) saturate(1.04);
}

.error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.42);
  border: 1px solid rgba(248, 113, 113, 0.36);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
}

.success {
  color: #dcfce7;
  background: rgba(6, 78, 59, 0.4);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.stat {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat .value {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.15;
}

.games-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.game-item {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dashboard-section {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.dashboard-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.new-game-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.game-item-meta-inline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-item-meta-time {
  opacity: 0.88;
  font-size: 12px;
}

.section-stats {
  border-left: 4px solid rgba(56, 189, 248, 0.9);
}

.section-new-game {
  border-left: 4px solid rgba(34, 197, 94, 0.9);
}

.section-games {
  border-left: 4px solid rgba(250, 204, 21, 0.9);
}

.section-dictionary {
  border-left: 4px solid rgba(168, 85, 247, 0.9);
}

.ring-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 18px auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at center, rgba(19, 49, 85, 0.86) 0 58%, rgba(7, 15, 35, 0) 58%);
  box-shadow:
    inset 0 20px 26px rgba(255, 255, 255, 0.08),
    inset 0 -24px 28px rgba(2, 6, 23, 0.5),
    0 22px 30px rgba(2, 6, 23, 0.38);
}

.letter {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #fff5a9 0%, #f7d34f 56%, #e7b931 100%);
  border: 2px solid rgba(151, 109, 15, 0.9);
  box-shadow:
    0 5px 0 rgba(130, 95, 17, 0.95),
    0 12px 18px rgba(0, 0, 0, 0.34),
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -6px 10px rgba(186, 132, 24, 0.4);
  user-select: none;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.letter:hover {
  transform: translate(-50%, -50%) scale(1.04);
  filter: saturate(1.08) brightness(1.02);
  box-shadow:
    0 6px 0 rgba(130, 95, 17, 0.95),
    0 14px 22px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.82),
    inset 0 -6px 10px rgba(186, 132, 24, 0.38);
}

.ring-letter,
.letter.center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.letter.center {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #48e0c2 0%, #21c6b0 56%, #11a9a0 100%);
  border-color: rgba(10, 117, 104, 0.95);
  color: #fff;
  box-shadow:
    0 5px 0 rgba(6, 113, 103, 0.95),
    0 12px 24px rgba(10, 139, 128, 0.52),
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -6px 10px rgba(5, 110, 103, 0.38);
}

.found-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(51, 65, 85, 0.72);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pangram-chip {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(45, 212, 191, 0.35));
  border-color: rgba(251, 191, 36, 0.9);
  color: #fefce8;
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.35),
    0 8px 20px rgba(45, 212, 191, 0.2);
}

.mini-report-btn {
  width: auto;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b91c1c, #9f1239);
  box-shadow: none;
}

.tools-menu {
  width: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tools-menu > summary {
  list-style: none;
  background: linear-gradient(135deg, #334155, #0f766e);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  width: 46px;
  min-width: 46px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tools-menu > summary::-webkit-details-marker {
  display: none;
}

.tools-panel {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  min-width: 260px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 20px 30px rgba(2, 8, 23, 0.5);
}

.mobile-panel {
  margin-top: 6px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  padding: 6px 8px;
}

.mobile-panel > summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
}

.mobile-panel > summary::-webkit-details-marker {
  display: none;
}

.game-controls {
  align-items: flex-start;
  gap: 8px;
}

.game-controls > * {
  flex: 1 1 100%;
}

.game-controls .word-entry {
  flex: 1 1 100%;
  min-width: 0;
}

.ctrl-btn {
  width: 46px;
  min-width: 46px;
  padding: 8px 0;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.icon-only-btn,
.tools-menu > summary.icon-only-trigger {
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 7px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(7, 25, 52, 0.72), rgba(7, 25, 52, 0.56));
  box-shadow:
    0 8px 16px rgba(2, 8, 23, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  line-height: 0;
  vertical-align: middle;
}

.tools-menu > summary.icon-only-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-only-btn:hover,
.tools-menu > summary.icon-only-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.icon-only-btn:hover .btn-icon,
.tools-menu > summary.icon-only-trigger:hover .btn-icon {
  transform: scale(1.04);
  filter: saturate(1.03);
}

.icon-only-btn:active .btn-icon,
.tools-menu > summary.icon-only-trigger:active .btn-icon {
  transform: scale(0.98);
}

.mobile-word-display {
  min-height: 42px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  padding: 8px 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.entry-letter {
  display: inline-block;
}

.entry-letter.valid {
  color: #f8fafc;
}

.entry-letter.invalid {
  color: #94a3b8;
}

.controls-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.back-icon-btn {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
}

.rules-line {
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rules-line::-webkit-scrollbar {
  height: 4px;
}

.fx-pop,
.fx-splash {
  position: fixed;
  left: 120px;
  top: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}

.fx-pop {
  font-size: 34px;
  color: #86efac;
  text-shadow: 0 0 18px rgba(134, 239, 172, 0.7);
  animation: popUp 650ms ease forwards;
}

.fx-splash {
  font-size: 24px;
  font-weight: 800;
  color: #fef3c7;
  text-shadow:
    0 0 16px rgba(251, 191, 36, 0.6),
    0 0 24px rgba(45, 212, 191, 0.75);
  animation: splash 1500ms ease forwards;
}

#fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

h2,
h3 {
  color: #f8fafc;
}

p {
  color: #cbd5e1;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(8px) scale(0.8);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-8px) scale(1.12);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-24px) scale(1);
  }
}

@keyframes splash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(8px) scale(0.85);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-4px) scale(1.03);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-16px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-30px) scale(1.08);
  }
}

@media (max-width: 700px) {
  .ring-container {
    width: 280px;
    height: 280px;
  }

  .letter {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 14px 12px 22px;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  #dashboard-section {
    max-width: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 10px;
  }

  .stat .value {
    font-size: 18px;
  }

  .game-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-item button {
    width: auto;
  }

  .game-controls {
    display: block;
  }

  .tools-panel {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  body.mobile-game-mode {
    overflow: hidden;
  }

  body.mobile-game-mode .container {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 6px;
  }

  body.mobile-game-mode #game-section {
    height: calc(100dvh - 88px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.mobile-game-mode #game-section > * {
    min-height: 0;
  }

  body {
    font-size: 13px;
  }

  header {
    margin-bottom: 8px;
  }

  .container {
    padding: 8px 8px 14px;
  }

  .card {
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .logo {
    gap: 6px;
  }

  .logo .logo-hui,
  .logo .logo-hua {
    padding: 2px 8px;
  }

  .subtitle {
    font-size: 11px;
    margin-top: 2px;
  }

  .row {
    gap: 6px;
  }

  .row > * {
    flex: 1 1 100%;
  }

  input,
  select,
  button {
    font-size: 16px;
    padding: 8px 10px;
  }

  .dashboard-header {
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .dashboard-header-title {
    min-width: 0;
    flex: 1 1 auto;
  }

  .dashboard-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  #dashboard-section .dashboard-header-actions #logout-btn {
    height: 28px;
    min-width: 28px;
    width: 28px;
    padding: 0;
    font-size: 13px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .dashboard-header .logout-text {
    display: none;
  }

  .dashboard-header .logout-icon {
    display: inline;
  }

  .dashboard-section {
    margin-top: 8px;
    padding: 8px;
    border-radius: 10px;
  }

  .stats-grid {
    gap: 6px;
    margin: 6px 0;
  }

  #dashboard-section .section-stats .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat {
    padding: 6px;
    border-radius: 10px;
  }

  .stat .value {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  #dashboard-section .section-stats .stat > div:first-child {
    font-size: 10px;
    white-space: nowrap;
  }

  #dashboard-section .new-game-row {
    gap: 6px;
    align-items: end;
  }

  #dashboard-section .new-game-row > div {
    flex: 1 1 calc(50% - 3px);
  }

  #dashboard-section .new-game-row > .new-game-actions {
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 2px;
  }

  #dashboard-section .new-game-row label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  #dashboard-section .new-game-row select {
    height: 36px;
    font-size: 14px;
    padding: 6px 9px;
  }

  #dashboard-section #new-game-btn {
    width: 164px;
    min-width: 164px;
    height: 36px;
    font-size: 12px;
  }

  .game-item {
    padding: 7px;
    border-radius: 10px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .game-item .compact-btn {
    height: 38px;
    padding: 6px 8px;
    font-size: 12px;
    align-self: stretch;
  }

  #dashboard-section .game-item .resume-btn {
    width: 126px;
    min-width: 126px;
  }

  .game-item > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .game-item-meta-inline {
    font-size: 12px;
  }

  .game-item-meta-time {
    font-size: 11px;
  }

  #game-section h2 {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }

  #game-section .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 4px 0;
  }

  #game-section .stat {
    padding: 6px;
  }

  #game-section .stat .value {
    font-size: 0.88rem;
    font-weight: 800;
  }

  #game-section .stat > div:first-child {
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  #game-section .stat > div:last-child {
    font-size: 10px;
  }

  .rules-line {
    font-size: 11px;
    margin: 2px 0 4px;
  }

  #game-section .ring-container {
    width: 206px;
    height: 206px;
    margin: 3px auto 4px;
  }

  #game-section .letter {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 26px;
    font-weight: 800;
  }

  #game-section .game-controls {
    display: block;
  }

  #game-section .controls-row {
    gap: 8px;
    margin-top: 4px;
  }

  #game-section .ctrl-btn {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0;
  }

  #game-section .tools-menu > summary {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0;
  }

  #game-section .btn-icon {
    width: 36px;
    height: 36px;
  }

  #game-section .mobile-word-display {
    min-height: 40px;
    font-size: 21px;
    padding: 6px 8px;
  }

  #game-section .tools-panel {
    padding: 8px;
    gap: 6px;
  }

  #game-section .tools-panel input {
    height: 32px;
    font-size: 16px;
  }

  .found-words {
    gap: 6px;
  }

  .chip {
    font-size: 10px;
    padding: 3px 7px;
  }

  .mini-report-btn {
    padding: 2px 6px;
    font-size: 10px;
  }

  .fx-pop {
    font-size: 22px;
  }

  .fx-splash {
    font-size: 15px;
  }
}
