/* Snyd: et kompakt bluffebord med CSS-tegnede terninger. */
.snyd-setup {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
}
.snyd-welcome h2 {
  font:
    500 32px/1.15 Georgia,
    serif;
  max-width: 350px;
  margin: 12px 0;
}
.snyd-welcome > p {
  font-size: 14px;
  line-height: 1.7;
  color: #bfd3c6;
  max-width: 380px;
}
.snyd-welcome-art {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 35px 15px 10px;
}
.snyd-welcome-art > span {
  color: #efdfb0;
  font-size: 44px;
  transform: rotate(-12deg);
}
.snyd-cup {
  display: inline-block;
  position: relative;
  width: 63px;
  height: 76px;
  background: linear-gradient(100deg, #937150, #d5ae7d 35%, #8b6648 85%);
  clip-path: polygon(5% 0, 95% 0, 85% 88%, 75% 100%, 25% 100%, 15% 88%);
  border-radius: 12px;
  transform: rotate(-12deg);
  box-shadow: inset -10px 0 15px #0004;
}
.snyd-cup:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5%;
  width: 90%;
  height: 10px;
  border-radius: 50%;
  background: #4c392b;
  border: 3px solid #d3ae81;
  box-sizing: border-box;
}
.snyd-start-forms {
  display: grid;
  gap: 24px;
}
.snyd-form {
  display: grid;
  gap: 14px;
}
.snyd-form h3 {
  margin: 0;
  font-size: 20px;
}
.snyd-form + .snyd-form {
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
}
.snyd-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.snyd-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.snyd-fields :is(input, select) {
  width: 100%;
}
.snyd-form .abc-button {
  width: 100%;
}
.snyd-room {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #c3d5c7;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.snyd-players {
  margin-bottom: 12px;
}
.snyd-players .player {
  padding: 12px;
  border: 1px solid #ffffff20;
}
.snyd-players .active {
  border-color: #edcf8a;
  background: #edcf8a12;
}
.snyd-players small {
  display: block;
  color: #c1d6c5;
  margin-top: 4px;
}
.snyd-bot {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #9bb7a8;
}
.snyd-safe {
  opacity: 0.6;
}
.snyd-status {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
  color: #dbe7d7;
}
#snyd-table {
  max-width: 760px;
  margin: auto;
}
.snyd-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.snyd-current > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.snyd-current .abc-eyebrow {
  flex: 0 0 100%;
  margin: 0;
}
.snyd-current strong {
  font:
    500 38px Georgia,
    serif;
}
.snyd-current > span {
  font-size: 13px;
  color: #d5dec8;
}
.snyd-current small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #a8c0ae;
}
.snyd-own-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.snyd-own-heading h2 {
  font-size: 18px;
  margin: 0;
}
.snyd-own-heading > span {
  font-size: 11px;
  color: #b7caba;
}
.snyd-own p {
  font-size: 12px;
  margin: 10px 0 0;
}
.snyd-dice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.snyd-die {
  display: inline-grid;
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 45px;
  height: 45px;
  padding: 8px;
  flex: none;
  border-radius: 10px;
  background: #f7f0d7;
  box-shadow:
    0 3px 0 #a9a48d,
    0 4px 10px #0003;
}
.snyd-pip {
  display: block;
  border-radius: 50%;
  background: transparent;
}
.face-1 .p5,
.face-2 :is(.p1, .p9),
.face-3 :is(.p1, .p5, .p9),
.face-4 :is(.p1, .p3, .p7, .p9),
.face-5 :is(.p1, .p3, .p5, .p7, .p9),
.face-6 :is(.p1, .p3, .p4, .p6, .p7, .p9) {
  background: #244b36;
}
.snyd-bid-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.abc-game--snyd .snyd-bid-actions .snyd-call {
  background: #8d4940;
  color: #ffdfcf;
  border-color: #d4866c;
}
.snyd-no-bid {
  display: flex;
  gap: 20px;
  align-items: center;
}
.snyd-no-bid .snyd-cup {
  width: 40px;
  height: 50px;
  flex: none;
}
.snyd-no-bid h2 {
  font:
    500 25px Georgia,
    serif;
  margin: 0 0 6px;
}
.snyd-no-bid p {
  font-size: 13px;
  margin: 0;
  color: #bed2c4;
}
.snyd-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.snyd-check input {
  width: 18px;
  height: 18px;
}
.snyd-reveal-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.snyd-reveal-heading h2 {
  margin: 0;
  font-size: 22px;
}
.snyd-reveal-heading > strong {
  font-size: 13px;
  color: #edcf8a;
}
.snyd-reveal p {
  font-size: 13px;
}
.snyd-reveal-rows {
  display: grid;
}
.snyd-reveal-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff18;
}
.snyd-reveal-row strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.snyd-reveal-row small {
  display: block;
  font-size: 11px;
  color: #b6cdbb;
  margin-top: 4px;
}
.snyd-reveal-row > span {
  text-align: center;
  color: #edcf8a;
  font-size: 18px;
}
.snyd-reveal-row .snyd-die {
  width: 30px;
  height: 30px;
  padding: 5px;
  gap: 2px;
  border-radius: 7px;
}
.snyd-explain {
  color: #afc5b4;
  font-size: 11px !important;
}
.snyd-reveal > .abc-button {
  width: 100%;
}
.snyd-finished h2 {
  font:
    500 30px Georgia,
    serif;
}
.snyd-finished .abc-eyebrow {
  color: #edcf8a;
}
.snyd-history {
  max-width: 760px;
  margin: 16px auto 0;
  color: #b7ccb9;
  font-size: 12px;
}
.snyd-history summary {
  cursor: pointer;
  padding: 10px 0;
}
.snyd-history li {
  margin: 8px 0;
  line-height: 1.5;
}
#snyd-error {
  padding: 12px 16px;
  border: 1px solid #e5958055;
  color: #ffcebc;
  background: #943d3320;
  border-radius: 12px;
}
#snyd-rules {
  width: min(620px, calc(100% - 24px));
  max-height: 86vh;
  padding: 28px;
}
#snyd-rules::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
#snyd-rules p {
  font-size: 14px;
  line-height: 1.7;
}
#snyd-rules h2 {
  margin-right: 30px;
}
#snyd-close-help {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.snyd-busy #snyd-table :is(button, select),
.snyd-busy .snyd-form button {
  pointer-events: none;
  opacity: 0.65;
}
@media (max-width: 800px) {
  .snyd-setup {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .snyd-welcome-art {
    display: none;
  }
  .snyd-welcome h2 {
    font-size: 25px;
  }
  .snyd-welcome p {
    margin: 6px 0;
    font-size: 13px;
  }
  .snyd-room {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .snyd-room .abc-button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .snyd-players strong {
    font-size: 10px;
  }
  .snyd-players small {
    font-size: 10px;
  }
  .snyd-players .snyd-bot {
    display: none;
  }
  .snyd-status {
    margin: 6px 0;
    font-size: 12px;
  }
  .snyd-current .abc-eyebrow {
    font-size: 9px;
  }
  .snyd-current > span {
    font-size: 11px;
  }
  .snyd-current strong {
    font-size: 30px;
  }
  .snyd-current .snyd-die {
    width: 38px;
    height: 38px;
    padding: 7px;
    gap: 2px;
  }
  .snyd-own-heading {
    margin-bottom: 8px;
  }
  .snyd-own-heading h2 {
    font-size: 15px;
  }
  .snyd-own-heading > span {
    font-size: 9px;
  }
  .snyd-own p {
    font-size: 11px;
    margin-top: 8px;
  }
  .snyd-die {
    width: 40px;
    height: 40px;
    padding: 7px;
    gap: 2px;
  }
  .snyd-fields {
    gap: 8px;
  }
  .snyd-bidding .snyd-fields select {
    margin: 0;
  }
  .snyd-bid-actions {
    gap: 8px;
    margin-top: 8px;
  }
  .snyd-reveal-heading h2 {
    font-size: 17px;
  }
  .snyd-reveal-heading > strong {
    font-size: 11px;
  }
  .snyd-reveal-row {
    grid-template-columns: minmax(75px, 1fr) auto 18px;
    gap: 6px;
    padding: 9px 0;
  }
  .snyd-reveal-row strong {
    font-size: 11px;
  }
  .snyd-reveal-row small {
    font-size: 9px;
  }
  .snyd-reveal-row .snyd-dice {
    gap: 4px;
  }
  .snyd-reveal-row .snyd-die {
    width: 25px;
    height: 25px;
    padding: 4px;
  }
  .snyd-history {
    margin-top: 6px;
  }
}
