/* Crazy Eights screen. Game-specific only; everything else comes from styles.css. */
.c8-seats { margin-bottom: .6rem; }
.c8-count { color: #fff; }
.c8-last { color: var(--gold); }
.c8-tag {
  display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle;
}
.c8-h { font-size: 1rem; margin: 0 0 .4rem; }

/* stock, top card, suit to match */
.c8-piles { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.c8-pile {
  display: flex; align-items: center; gap: .6rem; min-height: 5.6rem; padding: .4rem .7rem;
  background: rgba(0, 0, 0, .18); border: 2px solid var(--line); border-radius: 14px; color: #fff; font: inherit; text-align: left;
}
button.c8-pile { cursor: pointer; }
.c8-go:not(:disabled) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(227, 179, 65, .35); }
.c8-go:disabled { opacity: .55; cursor: progress; }
.c8-pile-text { font-weight: 700; line-height: 1.25; }
.c8-empty {
  display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 4.8rem; border-radius: 8px;
  border: 2px dashed var(--line); color: var(--muted); font-size: .75rem;
}
.c8-top .card { width: 4.6rem; height: 6.4rem; }
.c8-top .card .corner { font-size: 1.2rem; }
.c8-top .card .pip { font-size: 2.6rem; }
.c8-suit {
  display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .7rem 0 0; padding: .45rem .7rem;
  border-radius: 12px; background: rgba(255, 255, 255, .1); font-weight: 700; text-align: center;
}
.c8-suit-sym {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--cream); color: var(--ink); font-size: 1.3rem; line-height: 1;
}
.c8-suit.c8-red .c8-suit-sym { color: var(--red); }
.c8-suit.c8-named { background: var(--gold); color: #1b1b1b; }

/* naming a suit for an 8 */
.c8-pick { border-color: var(--gold); }
.c8-suits { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.c8-suitbtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 88px;
  background: var(--cream); color: var(--ink); border: 3px solid transparent; border-radius: 16px;
  font: 700 1rem/1.2 var(--body); cursor: pointer;
}
.c8-suitbtn.c8-red { color: var(--red); }
.c8-suitbtn:focus-visible, .c8-suitbtn:hover { border-color: var(--gold); }
.c8-suitbtn:disabled { opacity: .5; cursor: progress; }
.c8-suitbtn-sym { font-size: 2.4rem; line-height: 1; }

/* your hand */
.c8-hand { gap: .3rem; padding-top: .6rem; }
.c8-hint { margin: .25rem 0 0; }
.c8-drew { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .4rem 0 0; color: var(--gold); font-weight: 600; }
@media (max-width: 400px) {
  .c8-hand .card { width: 3rem; height: 4.3rem; }
  .c8-hand .card .pip { font-size: 1.45rem; }
}

/* end of a hand */
.c8-over-text { font-weight: 700; }
.c8-left { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.c8-left li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; padding: .3rem .5rem; border-radius: 10px; background: rgba(0, 0, 0, .15); }
.c8-left li.c8-winner { background: rgba(227, 179, 65, .2); }
.c8-total { margin-left: auto; color: var(--muted); }
