@font-face {
  font-family: Manrope;
  src: url(manrope.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #20232b;
  background: #f5f6f8;
  font-synthesis: none;
  --accent: #bd3047;
  --tint: #fce3e6;
  --line: #dde0e7;
  --surface: #fff;
  --muted: #5d6270;
  letter-spacing: 0;
}
html[data-game='impostor'] {
  --accent: #6942b4;
  --tint: #eee6fc;
}
html[data-game='wavelength'] {
  --accent: #126f74;
  --tint: #d9f4ef;
}
html[data-game='lobo'] {
  --accent: #455eaa;
  --tint: #e4eafb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  min-height: 46px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button.secondary {
  background: var(--tint);
  color: var(--accent);
}
button.danger {
  background: #b52b40;
}
.text-button {
  background: transparent;
  color: var(--accent);
}
.icon-button {
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  color: inherit;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: currentColor;
  mask: center/contain no-repeat;
  flex-shrink: 0;
}
.icon-copy {
  mask-image: url(icons/copy.svg);
}
.icon-share-2 {
  mask-image: url(icons/share-2.svg);
}
.icon-log-out {
  mask-image: url(icons/log-out.svg);
}
.icon-eye {
  mask-image: url(icons/eye.svg);
}
.icon-eye-off {
  mask-image: url(icons/eye-off.svg);
}
.screen-list { list-style: none; padding: 0; }
.screen-list li { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; }
.screen-list small { display: block; color: var(--muted); }
.screen-pair-link { display: flex; gap: 12px; align-items: center; padding: 16px 0; color: var(--accent); font-weight: 800; }
#screen-pair { font-size: 12px; }
.room-tools { flex-wrap: wrap; justify-content: flex-end; }
.icon-volume-2 {
  mask-image: url(icons/volume-2.svg);
}
.icon-rotate-ccw {
  mask-image: url(icons/rotate-ccw.svg);
}
.icon-x {
  mask-image: url(icons/x.svg);
}
.icon-arrow-right {
  mask-image: url(icons/arrow-right.svg);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #1c8fa1;
  outline-offset: 4px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #c5c9d2;
  background: var(--surface);
  color: inherit;
  border-radius: 6px;
  padding: 13px 14px;
  min-height: 48px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin: 18px 0 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 38px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 27px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
h3 {
  font-size: 18px;
  margin: 0 0 14px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
strong {
  font-weight: 800;
}
.muted,
.description {
  color: var(--muted);
}
.center {
  text-align: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: var(--muted);
}
.site-header {
  max-width: 1220px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.brand-mark {
  background: #20232b;
  color: #fff;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.header-game {
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.home-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.entry {
  max-width: 1120px;
  min-height: calc(100svh - 110px);
  margin: auto;
  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 70px;
}
.entry-art img {
  width: 100%;
  height: auto;
}
.entry-content {
  max-width: 400px;
}
.description {
  margin: 16px 0 26px;
  font-size: 16px;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.actions button {
  flex: 1;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 25px;
}
.room {
  max-width: 1120px;
  margin: auto;
  padding: 26px 32px 60px;
}
.room-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.room-bar .eyebrow {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
}
.room-code {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.room-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.connection {
  font-size: 12px;
  color: #9a4921;
  margin-right: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.connection.live {
  color: #297157;
}
.night .connection {
  color: #eac087;
}
.night .connection.live {
  color: #8dd9bb;
}
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 48px;
  margin-top: 30px;
}
.play-area {
  min-width: 0;
}
.room-side {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.players summary,
.settings summary {
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  min-height: 40px;
}
.players summary span {
  float: right;
  color: var(--muted);
}
.players ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}
.players li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #ffe4dd;
  color: #983c38;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.avatar-1 {
  background: #e2eefb;
  color: #386599;
}
.avatar-2 {
  background: #d9f0e9;
  color: #31674e;
}
.avatar-3 {
  background: #f5ebcf;
  color: #725c29;
}
.avatar-4 {
  background: #eee4f6;
  color: #714992;
}
.player-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}
.player-name small {
  color: var(--muted);
  display: block;
  font-weight: 500;
}
.presence {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #a1a6b0;
  flex-shrink: 0;
}
.presence.online {
  background: #397e61;
}
.players .icon-button {
  width: 32px;
  min-height: 36px;
  height: 36px;
  padding: 8px;
}
.settings {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.settings-form label {
  font-size: 12px;
}
.settings-form button {
  width: 100%;
  margin-top: 16px;
}
.lobby-intro {
  text-align: center;
  padding: 10px 0 40px;
}
.lobby-intro img {
  width: 300px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}
.lobby-intro h1 {
  font-size: 30px;
}
.lobby-intro p:not(.eyebrow) {
  color: var(--muted);
  margin: 12px 0 24px;
}
.lobby-intro button {
  min-width: 200px;
}
.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 28px;
}
.game-heading > .token {
  height: 34px;
  width: 34px;
  flex-shrink: 0;
}
.connect-game {
  max-width: 600px;
  margin: auto;
}
.connect-board {
  border-radius: 8px;
  background: #354d86;
  padding: 6px 12px 16px;
  box-shadow: 0 7px 0 #233968;
  position: relative;
}
.columns,
.slots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.columns {
  margin-bottom: 6px;
}
.columns button {
  min-height: 40px;
  padding: 4px;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  font-size: 22px;
}
.columns button:hover:not(:disabled) {
  background: #ffffff25;
}
.slot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f6f8;
  box-shadow: inset 0 3px 3px #0002;
}
.token {
  display: block;
  width: 94%;
  height: 94%;
  border-radius: 50%;
}
.token.red,
.dot.red {
  background: #e84255;
  box-shadow:
    inset 0 -5px 0 #b62a3d,
    inset 0 0 0 5px #e84255,
    inset 0 0 0 8px #f56672;
}
.token.yellow,
.dot.yellow {
  background: #f6c946;
  box-shadow:
    inset 0 -5px 0 #c69929,
    inset 0 0 0 5px #f6c946,
    inset 0 0 0 8px #ffe082;
}
.token.empty {
  background: transparent;
}
.fall {
  animation: fall 0.72s cubic-bezier(0.3, 0.02, 0.78, 0.6);
}
.winning {
  animation: win 1s ease-in-out 3;
  outline: 3px solid #fff;
  outline-offset: -9px;
}
.red-text {
  color: #be273e;
}
.yellow-text {
  color: #8c6406;
}
.duel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  font-size: 13px;
}
.duel span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.secret {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  max-width: 470px;
  margin: 12px auto 24px;
  padding: 28px;
  text-align: center;
  min-height: 245px;
}
.secret h2 {
  font-size: 21px;
}
.sealed {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--accent);
}
.secret-word {
  font-size: 28px;
  font-weight: 800;
  margin: 28px 0;
  overflow-wrap: anywhere;
}
.vote-unlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.targets button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  min-height: 62px;
  overflow-wrap: anywhere;
}
.targets button:hover {
  border-color: var(--accent);
  background: var(--tint);
}
.waiting,
.result {
  padding: 36px 0;
  text-align: center;
}
.waiting-text {
  text-align: center;
  margin: 28px 0;
  color: var(--muted);
}
.result h2 {
  font-size: 30px;
  margin-bottom: 20px;
}
.bars {
  margin: 24px 0;
  display: grid;
  gap: 10px;
}
.bars > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 15px;
  background: var(--tint);
  border-radius: 4px;
}
.rematch {
  text-align: center;
  margin-top: 22px;
}
.timer {
  background: var(--tint);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.spectrum {
  padding: 24px 0 30px;
}
.spectrum-ends {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}
.spectrum-ends strong {
  max-width: 45%;
  overflow-wrap: anywhere;
}
.spectrum-ends strong:last-child {
  text-align: right;
}
.spectrum-track {
  height: 85px;
  border-radius: 6px;
  background: linear-gradient(90deg, #729fbe, #b3dcdd 30%, #ebd884 65%, #db8876);
  position: relative;
  margin: 0 15px;
}
.target-mark,
.guess-mark {
  position: absolute;
  top: 0;
  height: 100%;
  width: 4px;
  background: #20232b;
  transform: translateX(-50%);
}
.target-mark b,
.guess-mark b {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
}
.guess-mark {
  background: #fff;
}
.guess-mark b {
  top: auto;
  bottom: -28px;
  color: var(--accent);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 20px;
  font-size: 22px;
  margin: 8px 0 24px;
  overflow-wrap: anywhere;
}
.game-form button {
  margin-top: 16px;
}
.game-form input[type='range'] {
  padding: 8px 0;
  accent-color: var(--accent);
  box-shadow: none;
  border: 0;
}
output {
  float: right;
  font-weight: 800;
  color: var(--accent);
}
.score-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.score-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.score-list small {
  color: var(--muted);
}
.scoring {
  font-size: 12px;
  margin-top: 24px;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
details.history {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 13px;
}
.history ol {
  padding-left: 20px;
  line-height: 1.8;
}
.role-actions {
  margin-top: 25px;
}
.wolf-chat {
  margin-top: 26px;
}
.wolf-chat ul {
  list-style: none;
  padding: 0;
  max-height: 180px;
  overflow: auto;
  line-height: 1.8;
  font-size: 13px;
}
.night {
  background: #20242e;
  color: #f4f5fa;
  --surface: #2b303c;
  --line: #454b59;
  --muted: #b9c0cf;
  --tint: #343e5f;
  --accent: #a8bcff;
  transition:
    background 0.6s,
    color 0.6s;
}
.night button:not(.secondary):not(.icon-button) {
  color: #20242e;
}
.night .targets button:not(.secondary):not(.icon-button) {
  color: #f4f5fa;
}
.night .brand-mark {
  background: #f4f5fa;
  color: #20242e;
}
.notice {
  padding: 12px;
  background: var(--tint);
  margin-bottom: 20px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: #fff;
  padding: 12px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #20232b;
  color: #fff;
  border-radius: 6px;
  padding: 14px 22px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 30;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 30px;
  max-width: 440px;
  width: calc(100% - 32px);
  color: #20232b;
}
dialog::backdrop {
  background: #20232b99;
}
dialog p {
  margin-top: 16px;
}
html[data-game='probable'] {
  --accent: #a33e2d;
  --tint: #f9e3d9;
}
.question-title {
  font-size: 30px;
  line-height: 1.35;
  margin: 14px 0 30px;
}
.social-result {
  margin-top: 30px;
}
.social-result h3 {
  font-size: 26px;
}
.probable-game .targets button {
  min-height: 75px;
}
html[data-game='quiz'] {
  --accent: #785500;
  --tint: #f6edc9;
}
.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quiz-options button {
  color: #20232b;
  min-height: 95px;
  justify-content: start;
  opacity: 1;
  text-align: left;
  padding: 18px;
  border: 2px solid transparent;
}
.quiz-options .option-0 {
  background: #fde1e4;
}
.quiz-options .option-1 {
  background: #dde9f8;
}
.quiz-options .option-2 {
  background: #f6edc9;
}
.quiz-options .option-3 {
  background: #d9eee4;
}
.option-letter {
  font-size: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quiz-options .selected {
  border-color: #20232b;
}
.quiz-options .correct {
  border-color: #2e6b48;
}
.quiz-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 24px 0;
}
.quiz-feedback span {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 550px) {
  .question-title {
    font-size: 24px;
  }
  .quiz-options {
    gap: 8px;
  }
  .quiz-options button {
    padding: 12px;
    min-height: 105px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  .option-letter {
    width: 26px;
    height: 26px;
  }
  .quiz-options button > span:nth-child(2) {
    flex-basis: 100%;
    overflow-wrap: anywhere;
  }
}
html[data-game='stop'] {
  --accent: #306c48;
  --tint: #e0efdc;
}
.letter-tile {
  font-size: 62px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 6px 0 16px;
  margin-bottom: 20px;
}
.letter-tile span {
  font-size: 16px;
  transform: rotate(-8deg);
}
.word-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.saved-note {
  font-size: 12px;
  margin: 16px 0;
}
.review-intro {
  margin-bottom: 20px;
}
.review-category {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}
.review-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.review-row small {
  color: var(--muted);
}
.review-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.review-buttons button {
  font-size: 11px;
  padding: 8px 11px;
  min-height: 40px;
}
.accepted {
  background: #306c48;
}
.stop-results details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.stop-results summary strong {
  float: right;
}
.stop-results ul {
  list-style: none;
  padding: 0;
}
.stop-results li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  gap: 12px;
}
.stop-results small {
  display: block;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 12px 0;
  margin: 15px 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 12px;
}
.check-label input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}
@media (max-width: 550px) {
  .word-fields {
    grid-template-columns: 1fr;
  }
  .word-fields label {
    margin-top: 12px;
  }
  .review-row {
    align-items: start;
  }
  .review-buttons {
    flex-direction: column;
  }
  .review-buttons button {
    min-height: 34px;
  }
  .letter-tile {
    font-size: 48px;
  }
}
html[data-game='dibujo'] {
  --accent: #28668d;
  --tint: #dcecf5;
}
.drawing-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 14px;
}
.drawing-toolbar .icon-button[aria-pressed='true'] {
  background: var(--tint);
  color: var(--accent);
}
.icon-pencil {
  mask-image: url(icons/pencil.svg);
}
.icon-eraser {
  mask-image: url(icons/eraser.svg);
}
.icon-trash-2 {
  mask-image: url(icons/trash-2.svg);
}
.palette {
  display: flex;
  gap: 3px;
  margin: 0 10px;
}
.swatch {
  height: 28px;
  width: 28px;
  min-height: 28px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid #fff;
  outline: 1px solid #b9c0ca;
}
.swatch[aria-pressed='true'] {
  outline: 2px solid #20232b;
  outline-offset: 2px;
}
.swatch-0 {
  background: #20232b;
}
.swatch-1 {
  background: #fff;
}
.swatch-2 {
  background: #e84255;
}
.swatch-3 {
  background: #f4c542;
}
.swatch-4 {
  background: #3477bd;
}
.swatch-5 {
  background: #329864;
}
.swatch-6 {
  background: #9b5dc8;
}
.swatch-7 {
  background: #ec965a;
}
.brush-width {
  margin: 0;
  font-size: 10px;
  width: 80px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.brush-width input {
  min-height: 30px;
  box-shadow: none;
  border: 0;
  accent-color: var(--accent);
  padding: 0;
}
.canvas-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 3/2;
}
#drawing-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
#drawing-canvas.editable {
  touch-action: none;
  cursor: crosshair;
}
.draw-word {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  background: var(--tint);
  padding: 8px 14px;
  border-radius: 6px;
}
.draw-word > span {
  font-size: 12px;
  color: var(--muted);
}
.draw-word strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.draw-word button {
  height: 36px;
  min-height: 36px;
}
.guess-feed {
  list-style: none;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
}
.drawing-game .game-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.drawing-game .game-form button {
  margin: 0;
}
.drawing-game .game-form input {
  min-width: 0;
  flex: 1;
}
.drawing-game .game-form button .icon {
  display: none;
}
@media (max-width: 550px) {
  .palette {
    margin: 0 5px;
    gap: 4px;
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .swatch {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }
  .brush-width {
    margin-left: auto;
  }
  .drawing-toolbar .icon-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .drawing-game .game-form button {
    padding: 11px 14px;
    font-size: 13px;
  }
  .drawing-game .game-heading h2 {
    font-size: 21px;
  }
}
.role-art {
  display: block;
  max-width: 100%;
  height: 80px;
  margin: 0 auto 16px;
}
.secret .role-art ~ .secret-word {
  font-size: 15px;
  margin: 16px 0 22px;
}
.secret.revealed:has(.role-art) {
  min-height: 285px;
}
@keyframes fall {
  from {
    transform: translateY(-320px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes win {
  50% {
    filter: brightness(1.3);
    transform: scale(0.91);
  }
}
@media (max-width: 800px) {
  .room-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .room-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .players ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }
  .entry {
    gap: 30px;
    padding: 40px 24px;
  }
  .header-game {
    display: none;
  }
  .connect-game {
    max-width: 530px;
  }
}
@media (max-width: 550px) {
  .site-header {
    padding: 18px 20px;
    gap: 10px;
  }
  .brand {
    font-size: 18px;
  }
  .home-link {
    font-size: 12px;
  }
  .entry {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 25px 24px 55px;
    min-height: auto;
  }
  .entry-art {
    width: 260px;
    max-width: 100%;
  }
  .entry-content {
    width: 100%;
  }
  .entry h1 {
    font-size: 32px;
  }
  .description {
    margin: 12px 0 18px;
    font-size: 14px;
  }
  .entry .eyebrow {
    font-size: 11px;
  }
  .room {
    padding: 20px 16px 40px;
  }
  .room-bar {
    padding-bottom: 16px;
  }
  .connection {
    font-size: 10px;
    margin-right: 3px;
  }
  .room-tools {
    gap: 0;
  }
  .room-tools .icon-button {
    width: 36px;
    padding: 8px;
  }
  .room-code {
    font-size: 21px;
  }
  .room-layout {
    margin-top: 20px;
  }
  .game-heading {
    margin: 6px 0 22px;
    gap: 12px;
  }
  h2 {
    font-size: 23px;
  }
  .connect-board {
    padding: 4px 8px 12px;
  }
  .columns,
  .slots {
    gap: 5px;
  }
  .columns button {
    min-height: 34px;
  }
  .duel {
    font-size: 12px;
  }
  .token.red {
    box-shadow:
      inset 0 -3px 0 #b62a3d,
      inset 0 0 0 3px #e84255,
      inset 0 0 0 5px #f56672;
  }
  .token.yellow {
    box-shadow:
      inset 0 -3px 0 #c69929,
      inset 0 0 0 3px #f6c946,
      inset 0 0 0 5px #ffe082;
  }
  .lobby-intro {
    padding-top: 0;
  }
  .lobby-intro img {
    width: 230px;
  }
  .secret {
    padding: 24px 18px;
  }
  .secret-word {
    font-size: 25px;
  }
  .players ul {
    gap: 0 12px;
  }
  .targets {
    gap: 8px;
  }
  .targets button {
    padding: 12px;
    font-size: 14px;
  }
  .spectrum-ends {
    font-size: 14px;
    gap: 20px;
  }
  .timer {
    font-size: 17px;
    padding: 8px 11px;
  }
  .result h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
