:root {
  --mat: #33373f;
  --mat-edge: #282b31;
  --ink: #f4f2ec;
  --ink-dim: #9aa0ab;
  --strip: #22242a;
  --personas: #f6c445;
  --acciones: #5bb56e;
  --cosas: #f08a3c;
  --social: #e86fa4;
  --sentir: #5b8dd9;
  --tiempo: #a98fdd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: 'Fredoka', 'Quicksand', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  background: var(--mat-edge);
  color: var(--ink);
  min-height: 100vh;
  padding: 16px;
}

header {
  max-width: 860px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap
}

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .02em
}

header .sub {
  color: var(--ink-dim);
  font-size: .8rem;
  flex-basis: 100%;
  order: 5
}

.spacer {
  flex: 1
}

select#lang {
  border: 0;
  border-radius: 10px;
  padding: 7px 12px;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  background: #3d414b;
  color: var(--ink);
}

#tts-status {
  color: var(--ink-dim);
  font-size: .75rem
}

.ghost {
  border: 0;
  border-radius: 8px;
  padding: 6px 11px;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  background: #3d414b;
  color: var(--ink)
}

.ghost:hover {
  background: #4a4f5b
}

.strip {
  max-width: 860px;
  margin: 0 auto 14px;
  background: var(--strip);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  flex-wrap: wrap;
}

.strip .words {
  flex: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 32px;
  align-items: center
}

.strip .words:empty::before {
  content: attr(data-empty);
  color: var(--ink-dim);
  font-size: .85rem
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: #1d1d1d;
  display: inline-flex;
  align-items: baseline;
  gap: 6px
}

.chip time {
  font-size: .65rem;
  font-weight: 400;
  opacity: .65
}

.strip button:focus-visible,
.hex:focus-visible,
select:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px
}

.board {
  max-width: 860px;
  margin: 0 auto;
  background: var(--mat);
  border-radius: 22px;
  padding: 22px 18px 26px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .35);
}

.cat {
  margin-bottom: 18px
}

.cat-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-label .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block
}

.hexrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.hex {
  --c: #ccc;
  width: 104px;
  height: 92px;
  border: 0;
  cursor: pointer;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: radial-gradient(circle at 50% 50%, #ffffff2e 0 26px, transparent 27px), var(--c);
  color: #1d1d1d;
  font: inherit;
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 14px;
  transition: transform .08s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.hex:hover {
  filter: brightness(1.07)
}

.hex:active {
  transform: scale(.92)
}

.hex.pressed {
  animation: pop .28s ease
}

@keyframes pop {
  40% {
    transform: scale(.88)
  }

  100% {
    transform: scale(1)
  }
}

@media (prefers-reduced-motion:reduce) {
  .hex,
  .hex.pressed {
    transition: none;
    animation: none
  }
}

@media (max-width:520px) {
  .hex {
    width: 88px;
    height: 78px;
    font-size: .74rem;
    padding: 6px 10px
  }
}