/* DUST DUDES 2.2 - MOBILE FIRST */
html {
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  width: 100%;
  min-width: 280px;
  overflow-x: hidden;
}
main {
  width: 100%;
  max-width: 1280px;
}
.board {
  width: 100%;
  isolation: isolate;
}
.board-inner {
  width: 100%;
}
.tiles {
  max-width: 100%;
  flex-wrap: wrap;
  align-content: center;
}
#mesa {
  min-height: 86px;
  gap: 5px;
  padding: 10px;
  border-radius: 15px;
  background: rgba(0,0,0,.06);
}
#mao {
  padding: 9px 4px 16px;
  gap: 8px;
  min-height: 65px;
}
#rival {
  gap: 5px;
}
.domino {
  flex-shrink: 0;
}
#mao .domino.playable {
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s ease, filter .16s ease;
}
#mao .domino.playable:active {
  transform: translateY(-9px) scale(1.06);
  filter: brightness(1.12);
}
button, select {
  font-family: inherit;
  touch-action: manipulation;
  min-height: 46px;
}
button:disabled {
  opacity: .48;
  cursor: not-allowed;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid #f9d66e;
  outline-offset: 3px;
}
#estado-jogo {
  display: block;
  text-align: center;
  line-height: 1.5;
}
@media (hover:none) {
  #mao .domino.playable:hover {
    transform: none;
  }
}
@media (max-width:767px) {
  header {
    padding: 12px 14px;
    gap: 8px;
  }
  .logo {
    font-size: clamp(17px,4.8vw,25px);
  }
  .badge {
    padding: 8px 10px;
    font-size: 11px;
  }
  main {
    margin: 12px auto;
    padding: 0 9px;
  }
  .hero {
    margin-bottom: 12px;
    gap: 7px;
  }
  .hero h1 {
    font-size: clamp(24px,6vw,34px);
  }
  .hero p {
    font-size: 13px;
    line-height: 1.4;
  }
  .hero-tag {
    font-size: 11px;
    padding: 7px 11px;
  }
  .board {
    border: 9px solid #4b2816;
    border-radius: 19px;
    padding: 12px 7px;
    min-height: 430px;
    box-shadow: inset 0 0 0 3px #9a683a,
                0 12px 28px rgba(0,0,0,.4);
  }
  .board-inner {
    min-height: 405px;
    gap: 10px;
  }
  .player-name {
    font-size: 12px;
  }
  .avatar {
    width: 38px;
    height: 38px;
    font-size: 20px;
    margin-bottom: 4px;
  }
  .center-title {
    letter-spacing: 2px;
    font-size: 11px;
  }
  .table-center {
    width: 100%;
    gap: 9px;
  }
  #mesa {
    padding: 8px 3px;
    gap: 4px;
    min-height: 80px;
  }
  #mao {
    gap: 6px;
  }
  .domino,
  .hidden-tile {
    width: 46px;
    height: 27px;
    border-radius: 5px;
  }
  .domino.vertical {
    width: 27px;
    height: 46px;
  }
  .pip {
    width: 6px;
    height: 6px;
  }
  .actions {
    gap: 8px;
    margin: 15px 0;
  }
  .actions button {
    flex: 1 1 140px;
    font-size: 13px;
    padding: 12px 10px;
    min-height: 48px;
  }
  #estado-jogo {
    font-size: 13px;
  }
}
@media (max-width:380px) {
  .domino,
  .hidden-tile {
    width: 40px;
    height: 25px;
  }
  #mao,
  #mesa,
  #rival {
    gap: 3px;
  }
  .pip {
    width: 5px;
    height: 5px;
  }
  .board {
    padding: 10px 4px;
  }
}
@media (orientation:landscape) and (max-height:550px) {
  main {
    margin: 8px auto;
  }
  .hero h1 {
    font-size: 22px;
  }
  .board {
    min-height: 300px;
    padding: 7px;
  }
  .board-inner {
    min-height: 280px;
    gap: 5px;
  }
  .avatar {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .table-center {
    gap: 5px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
