:root {
  --bg: #0b1015;
  --bg-soft: #101922;
  --ink: #d9edf1;
  --muted: #8ca8b0;
  --card: #121d27;
  --line: #1f3844;
  --accent: #1fc7df;
  --accent-strong: #11e4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding-top: 26px;
}

.page-shell-centered {
  justify-content: center;
  padding-top: 16px;
}

.page-start {
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
}

.page-title {
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.page-start .card {
  grid-row: 2;
}

.card {
  width: min(1220px, 100%);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 14px;
}

h1 {
  margin: 0 0 4px;
  font-size: 2rem;
}

.card-title {
  margin: 0 0 4px;
  font-size: 2rem;
}

.lobby-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.lobby-code-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.lobby-code-label {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.lobby-code-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 2px 4px;
  margin-top: 3px;
  font-weight: 900;
  line-height: 1;
}

.lobby-code-toggle:hover,
.lobby-code-toggle:focus-visible {
  filter: brightness(1.08);
}

.lobby-code-toggle::after {
  content: attr(data-hint);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: #0a1118;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 7px;
  color: #b6d5df;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 4;
}

.lobby-code-toggle:hover::after,
.lobby-code-toggle:focus-visible::after {
  opacity: 1;
}

.lobby-code-toggle.code-hidden::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(6, 13, 20, 0.94), rgba(8, 18, 27, 0.97));
  border: 1px solid #213746;
  pointer-events: none;
}

.lobby-code-hidden-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -47%);
  color: #b6d5df;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.lobby-code-toggle.code-hidden .lobby-code-hidden-label {
  opacity: 1;
}

.lobby-code-value {
  display: inline-block;
  min-width: 7ch;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 900;
  font-family: Consolas, Monaco, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.lobby-code-value.is-hidden {
  filter: blur(12px);
  opacity: 0.16;
}

.copy-code-btn {
  min-height: 42px;
  width: 96px;
  min-width: 96px;
  font-size: 0.95rem;
  font-weight: 700;
}

.copy-code-btn.is-copied {
  background: linear-gradient(180deg, #72db8e, #4abf6e);
  color: #073518;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

input {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: inherit;
  border-radius: 10px;
  padding: 10px 12px;
}

input.input-error {
  border-color: #cf4a4a;
  box-shadow: inset 0 0 0 1px rgba(207, 74, 74, 0.25);
}

select {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: inherit;
  border-radius: 10px;
  padding: 10px 12px;
}

textarea {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: inherit;
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
  font-family: inherit;
}

input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

select:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

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

.actions.actions-center {
  justify-content: center;
}

.start-actions {
  flex-wrap: nowrap;
}

.start-actions button {
  min-width: 260px;
  min-height: 56px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.create-auth {
  margin-top: 8px;
  border: 1px solid #295466;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(18, 36, 49, 0.98), rgba(13, 28, 39, 0.98));
  display: grid;
  gap: 10px;
}

.create-auth-hint {
  margin: 0;
  color: #b8d9e3;
  font-size: 0.9rem;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent), #0fa4be);
  color: #03262d;
  transition: filter 120ms ease;
}

button:hover {
  filter: brightness(1.08);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #2a4d5d;
  color: #b9d8e2;
}

.status {
  margin: 0;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  color: var(--muted);
}

.hidden {
  display: none;
}

.lobby {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.lobby-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #042c34;
  background: linear-gradient(180deg, var(--accent), #0fa4be);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.game-mode-badge {
  max-width: 58vw;
  justify-content: center;
  font-size: clamp(1.12rem, 2.5vw, 1.45rem);
  padding: 8px 14px;
  letter-spacing: 0.02em;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lobby-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lobby-meta-summary {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.lobby-meta-card {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #274252;
  background: linear-gradient(180deg, rgba(17, 35, 49, 0.98), rgba(12, 26, 38, 0.98));
}

.lobby-meta-card-label {
  font-size: 0.74rem;
  color: #9dc0cc;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.lobby-meta-card-value {
  font-size: 1.04rem;
  color: #e5f3f7;
  line-height: 1.2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #102432;
}

.team-card.team-blue {
  border-color: #2e67ff;
  background: linear-gradient(180deg, rgba(46, 103, 255, 0.2), rgba(16, 36, 50, 0.95));
}

.team-card.team-red {
  border-color: #d94848;
  background: linear-gradient(180deg, rgba(217, 72, 72, 0.2), rgba(16, 36, 50, 0.95));
}

.team-card.team-green {
  border-color: #36b26b;
  background: linear-gradient(180deg, rgba(54, 178, 107, 0.2), rgba(16, 36, 50, 0.95));
}

.team-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.team-card.team-blue .team-title {
  color: #8ab0ff;
}

.team-card.team-red .team-title {
  color: #ff9b9b;
}

.team-card.team-green .team-title {
  color: #9ce6be;
}

.player-list {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
}

.player-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding: 0;
  border-bottom: 0;
}

.player-list li:last-child {
  margin-bottom: 0;
}

.player-list li.player-empty {
  justify-content: flex-start;
  padding: 0;
  border-bottom: 0;
}

.player-main {
  min-width: 0;
}

.player-word-status {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}

.player-word-status.is-done {
  color: var(--accent-strong);
}

.player-word-status.is-open {
  color: var(--muted);
}

.you {
  color: var(--accent-strong);
}

.muted {
  color: var(--muted);
}

.field-error {
  min-height: 1rem;
  margin: -2px 0 0;
  font-size: 0.82rem;
  color: #ff7d7d;
}

.readiness {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #0e1e2a;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  grid-template-areas:
    "max words"
    "team .";
  gap: 10px;
}

.config-grid.config-grid-no-team {
  grid-template-areas: "max words";
}

.config-cell-max {
  grid-area: max;
}

.config-cell-team {
  grid-area: team;
}

.config-cell-words {
  grid-area: words;
}

.modes-config {
  margin-top: 12px;
  padding: 0;
}

.modes-preview {
  margin-top: 12px;
}

.mode-chip-list {
  display: block;
  margin-top: 8px;
}

.mode-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.mode-item {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 10px;
  border: 1px solid #2d4b5c;
  border-radius: 12px;
  background: #112331;
  width: max-content;
  max-width: min(100%, 320px);
}

.mode-item-readonly {
  min-width: 180px;
  cursor: default;
}

.mode-item.is-dragging {
  opacity: 0.6;
}

.mode-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
}

.mode-item-readonly .mode-head {
  padding-right: 0;
}

.mode-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #3a5e71;
  background: #173445;
  color: #b7d7e1;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.mode-title-text {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mode-remove-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  line-height: 1;
  background: transparent;
  color: #d6e6eb;
}

.mode-remove-btn:hover,
.mode-remove-btn:focus-visible {
  background: transparent;
  filter: none;
  box-shadow: none;
  color: #ffffff;
}

.mode-option-row {
  display: grid;
  gap: 6px;
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
}

.mode-option-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #2e4e60;
  border-radius: 9px;
  background: #0f2430;
  color: #b8d5dd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 10px;
}

.mode-option-row select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  text-align: center;
  text-align-last: center;
  padding-right: 12px;
  font-size: 0.83rem;
}

.mode-option-row select::-ms-expand {
  display: none;
}

.readiness h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.lobby-team-grid {
  margin-top: 16px;
}

.readiness ul {
  margin: 0;
  padding-left: 18px;
}

.word-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.chip-list {
  min-height: 56px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #0d1c27;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #1b3442;
  border: 1px solid #2f5566;
  color: #d9f6fc;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chip button {
  border: 0;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 1;
  font-size: 0.9rem;
  background: #0b2d38;
  color: #b6f3ff;
}

.chip-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.game-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #0f2230;
}

.game-panel h3 {
  margin: 0 0 8px;
}

.game-panel .actions {
  margin-top: 10px;
}

.word-card {
  border: 1px dashed var(--line);
  border-radius: 12px;
  min-height: 90px;
  padding: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #081722;
}

.word-card.word-card-solved {
  background: #0f3a1f;
  border-color: #4fdc7a;
  color: #d9ffe7;
  transform: scale(1.02);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.word-card.word-card-enter {
  animation: word-pop-in 1s ease;
}

@keyframes word-pop-in {
  0% {
    opacity: 0.25;
    transform: scale(0.86);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.timer {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.game-main-timer {
  margin: 2px 0 6px;
  text-align: center;
  font-size: clamp(3.1rem, 9vw, 5rem);
  line-height: 1;
  letter-spacing: 0.03em;
}

.game-timer-status {
  margin: 0 0 10px;
  text-align: center;
}

.pool-counter {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #0a1a25;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pool-counter span {
  color: var(--muted);
  font-size: 0.95rem;
}

.pool-counter strong {
  font-size: 2rem;
  color: var(--accent-strong);
}

.action-primary-large {
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 340px;
  padding: 16px 24px;
  border-radius: 14px;
}

.action-secondary-large {
  font-size: 1.05rem;
  font-weight: 800;
  min-width: 180px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #6f7f89, #56616a);
  color: #f3f8fb;
}

.action-lock-large {
  font-size: 1.05rem;
  font-weight: 800;
  min-width: 180px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #c9ced4, #8f979f);
  color: #1a2128;
}

.turn-actions {
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
}

.turn-action-btn {
  flex: 1 1 0;
  max-width: 230px;
}

.turn-actions .action-primary-large,
.turn-actions .action-secondary-large,
.turn-actions .action-lock-large {
  min-width: 0;
  padding: 14px 16px;
  font-size: 1rem;
}

.turn-headline {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #0e1d29;
  margin-bottom: 10px;
}

.turn-headline-team {
  font-size: 1.65rem;
  font-weight: 900;
}

.turn-headline-player {
  font-size: 1.2rem;
  font-weight: 700;
}

.turn-headline.team-blue {
  border-color: #2e67ff;
}

.turn-headline.team-red {
  border-color: #d94848;
}

.turn-headline.team-green {
  border-color: #36b26b;
}

.turn-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 5, 8, 0.9);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}

.turn-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  transform-origin: center;
  transform: scaleX(1);
  animation: overlay-progress var(--overlay-progress-duration, 5000ms) linear forwards;
  animation-delay: var(--overlay-progress-delay, 0ms);
}

.turn-overlay.action-overlay::before {
  animation-duration: var(--overlay-progress-duration, 1000ms);
  animation-delay: var(--overlay-progress-delay, 0ms);
}

.turn-overlay-headline {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.turn-overlay-card {
  width: min(860px, 92vw);
  border-radius: 20px;
  border: 1px solid #2a4656;
  background: rgba(7, 15, 21, 0.92);
  padding: 26px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

@keyframes overlay-progress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.turn-overlay.team-blue .turn-overlay-card {
  background: linear-gradient(180deg, rgba(46, 103, 255, 0.34), rgba(8, 20, 38, 0.96));
  border-color: #5f8bff;
}

.turn-overlay.team-red .turn-overlay-card {
  background: linear-gradient(180deg, rgba(217, 72, 72, 0.34), rgba(34, 9, 9, 0.96));
  border-color: #ff8e8e;
}

.turn-overlay.team-green .turn-overlay-card {
  background: linear-gradient(180deg, rgba(54, 178, 107, 0.34), rgba(9, 33, 22, 0.96));
  border-color: #86e2b0;
}

.turn-overlay-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.turn-overlay-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-top: 8px;
}

.turn-overlay-level {
  margin-top: 12px;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #dce8ef;
}

.turn-overlay.team-blue:not(.action-overlay)::before {
  background: #2e67ff;
}

.turn-overlay.team-red:not(.action-overlay)::before {
  background: #d94848;
}

.turn-overlay.team-green:not(.action-overlay)::before {
  background: #36b26b;
}

.turn-overlay.action-correct::before {
  background: #4fdc7a;
}

.turn-overlay.action-wrong::before {
  background: #ff8080;
}

.turn-overlay.action-lock::before {
  background: #bcc3ca;
}

.turn-overlay.action-overlay {
  z-index: 44;
}

.turn-overlay.action-overlay .turn-overlay-card {
  width: min(620px, 88vw);
  padding: 32px 24px;
}

.turn-overlay.action-correct {
  background: rgba(3, 22, 10, 0.84);
}

.turn-overlay.action-correct .turn-overlay-card {
  border-color: #4fdc7a;
  background: rgba(8, 50, 22, 0.88);
}

.turn-overlay.action-correct .turn-overlay-title {
  color: #88f7ad;
}

.turn-overlay.action-wrong {
  background: rgba(30, 6, 6, 0.84);
}

.turn-overlay.action-wrong .turn-overlay-card {
  border-color: #ff8080;
  background: rgba(66, 13, 13, 0.9);
}

.turn-overlay.action-wrong .turn-overlay-title {
  color: #ff9e9e;
}

.turn-overlay.action-lock {
  background: rgba(16, 18, 20, 0.84);
}

.turn-overlay.action-lock .turn-overlay-card {
  border-color: #aab3bb;
  background: linear-gradient(180deg, rgba(117, 126, 136, 0.86), rgba(68, 74, 81, 0.9));
}

.turn-overlay.action-lock .turn-overlay-title {
  color: #eef2f5;
}

.score-item.team-blue {
  color: #8ab0ff;
}

.score-item.team-red {
  color: #ff9b9b;
}

.score-item.team-green {
  color: #9ce6be;
}

.team-card.team-compact {
  padding: 8px;
}

.score-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.score-list li {
  margin-bottom: 6px;
}

.small {
  font-size: 0.85rem;
}

.endscreen-winner {
  border-style: solid;
}

.endscreen-winner.team-blue {
  border-color: #2e67ff;
  background: linear-gradient(180deg, rgba(46, 103, 255, 0.28), rgba(14, 30, 42, 0.95));
}

.endscreen-winner.team-red {
  border-color: #d94848;
  background: linear-gradient(180deg, rgba(217, 72, 72, 0.28), rgba(14, 30, 42, 0.95));
}

.endscreen-winner.team-green {
  border-color: #36b26b;
  background: linear-gradient(180deg, rgba(54, 178, 107, 0.28), rgba(14, 30, 42, 0.95));
}

.winner-name {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 900;
}

.words-overview {
  max-height: 220px;
  overflow-y: auto;
}

@media (max-width: 860px) {
  .card {
    width: min(100%, 100%);
    padding: 14px;
  }

  .page-shell {
    padding-top: 18px;
  }

  .lobby-code-block {
    width: 100%;
    font-size: 1.05rem;
    flex-wrap: wrap;
  }

  .config-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "max"
      "team"
      "words";
  }

  .config-grid.config-grid-no-team {
    grid-template-areas:
      "max"
      "words";
  }

  .start-actions button {
    min-width: 200px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .turn-actions {
    flex-wrap: wrap;
  }

  .turn-action-btn {
    flex: 1 1 100%;
    max-width: none;
  }
}
