/* Oh Hell — the shrinking deals and the barred bid. */

[hidden] { display: none !important; }

.ohhell-frame {
  width: min(720px, 96vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 2.4vw, 18px);
}

.scores-strip {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 26px);
  flex-wrap: wrap;
}
.table-line {
  margin: 0;
  text-align: center;
  font-family: var(--hand);
  font-style: italic;
  font-size: clamp(13.5px, 2vw, 16px);
  color: var(--ink-soft);
  min-height: 22px;
}
.table-line b { color: var(--oxblood); font-weight: 600; }
.score-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.score-chip span {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9.5px;
  color: var(--ink-light);
}
.score-chip b { font-family: var(--display); font-size: 22px; }
.score-chip.us b { color: var(--gold-deep, #8a6a1e); }
.score-chip.them b { color: var(--oxblood); }
.score-chip i {
  font-style: normal;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
  color: var(--ink-light);
}

.table {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(31, 51, 38, .95), rgba(21, 36, 27, .98));
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .3), inset 0 10px 26px rgba(0, 0, 0, .45);
  height: clamp(260px, 46vw, 340px);
}

.seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(246, 238, 214, .08);
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .22);
  min-width: 92px;
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.seat.to-play { background: rgba(227, 183, 84, .14); box-shadow: inset 0 0 0 1.5px rgba(227, 183, 84, .6); }
.seat.partner { box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .45); }
.seat b { font-family: var(--caps); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--gold-bright); }
.seat-cards { font-size: 10.5px; color: rgba(241, 230, 200, .55); }
.seat-took { font-size: 10.5px; color: rgba(241, 230, 200, .45); }
.seat-took.has { color: #e3b754; }
.seat.north { top: 10px; left: 50%; transform: translateX(-50%); }
.seat.west { left: 10px; top: 50%; transform: translateY(-50%); }
.seat.east { right: 10px; top: 50%; transform: translateY(-50%); }

/* the turned trump, tucked at the table's corner */
.trump-tell {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px 8px;
  border-radius: 9px;
  background: rgba(246, 238, 214, .07);
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .3);
}
.trump-tell > span {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 8.5px;
  color: rgba(241, 230, 200, .6);
}
.trump-tell .pcard { width: clamp(34px, 7vw, 44px); }

/* trick area */
.trick { position: absolute; inset: 0; pointer-events: none; }
.t-slot { position: absolute; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.t-slot .pcard { width: clamp(48px, 10vw, 62px); }
.t-n { top: 16%; left: 50%; transform: translateX(-50%); }
.t-s { bottom: 12%; left: 50%; transform: translateX(-50%); }
.t-w { left: 27%; top: 50%; transform: translate(-50%, -50%); }
.t-e { right: 27%; top: 50%; transform: translate(50%, -50%); }
.t-slot[class*="sweep-"] { opacity: 0; }
.sweep-n { transform: translate(-50%, -150px) !important; }
.sweep-s { transform: translate(-50%, 150px) !important; }
.sweep-w { transform: translate(-240px, -50%) !important; }
.sweep-e { transform: translate(240px, -50%) !important; }

.hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2px;
  min-height: clamp(86px, 19vw, 106px);
  padding-top: 8px;
}
.hand .pcard { margin-left: clamp(-30px, -5.6vw, -20px); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.hand .pcard:first-child { margin-left: 0; }
.hand .pcard.dim { filter: saturate(.7) brightness(.96); }
.hand .pcard.playable { cursor: pointer; }
.hand .pcard.playable:hover { transform: translateY(-10px); z-index: 5; box-shadow: inset 0 0 0 2px rgba(90, 26, 31, .7), 0 8px 16px rgba(0, 0, 0, .4); }

.frame-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* pickers */
.pick-label {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--ink-light);
  margin: 12px 0 6px;
}
.pick-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pick {
  font-family: var(--body);
  font-size: 15px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(122, 104, 80, .45);
  background: rgba(246, 238, 214, .6);
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pick:hover { border-color: var(--oxblood); }
.pick.picked { border-color: var(--oxblood); background: var(--cream); box-shadow: 0 0 0 2px rgba(90, 26, 31, .25); }

/* reckoning */
.hand-card { width: min(540px, 94vw); max-height: 86vh; overflow: auto; }
.hand-detail { text-align: left; }
.he-line { margin: 12px 0 2px; font-size: 14px; color: var(--ink-soft); }
.he-line b { color: var(--oxblood); font-family: var(--caps); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.he-list { margin: 2px 0 0 18px; padding: 0; font-size: 14px; color: var(--ink-soft); }
.he-list li { margin: 2px 0; }
.he-score { margin: 16px 0 0; text-align: center; font-size: 15.5px; color: var(--ink-soft); }
.he-score b { color: var(--oxblood); font-size: 18px; }

.help-body { text-align: left; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.help-body p { margin: 0 0 12px; }
.help-body b { color: var(--oxblood); }

@media (max-width: 620px) {
  .seat { min-width: 74px; padding: 5px 8px; }
  .score-chip span { font-size: 8.5px; }
  .t-w { left: 30%; }
  .t-e { right: 30%; }
  .trump-tell { top: auto; bottom: 10px; }
}

/* ==== the open tables (multiplayer) ======================================= */

/* mode row: company for the night */
.mode-row { display: flex; justify-content: center; }
.mode-pick, .mode-at { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.mode-row__label {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .18em;
  font-size: 11px; color: var(--ink-light); margin-right: 2px;
}
.mode-btn { font-size: 13px; padding: 6px 12px; }
.mode-btn.is-on { box-shadow: inset 0 0 0 1.5px rgba(90, 26, 31, .45); }

/* connection word from the shore */
.mp-banner {
  margin: 0; text-align: center;
  font-family: var(--hand); font-style: italic; font-size: 14.5px;
  color: var(--parchment); background: rgba(90, 26, 31, .88);
  border-radius: 8px; padding: 7px 12px;
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .35);
}

/* roster strip: who sits where, and the turn clock */
.mp-roster { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 9px;
  background: rgba(26, 20, 16, .05);
  box-shadow: inset 0 0 0 1px rgba(122, 104, 80, .35);
}
.mp-chip b {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .08em;
  font-size: 11px; color: var(--ink-soft); font-weight: 600;
  max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-chip i { font-family: var(--hand); font-style: italic; font-size: 11px; color: var(--ink-light); }
.mp-chip .r { font-size: 11.5px; color: var(--ink-light); font-variant-numeric: tabular-nums; }
.mp-chip.is-me b { color: var(--oxblood); }
.mp-chip.is-turn { background: rgba(227, 183, 84, .2); box-shadow: inset 0 0 0 1.5px rgba(200, 156, 58, .8); }
.mp-chip.is-gone { opacity: .55; }
/* the taproom cast wear a small portrait frame */
.mp-chip.is-cast {
  background: rgba(246, 238, 214, .55);
  box-shadow:
    inset 0 0 0 1px rgba(156, 120, 38, .75),
    inset 0 0 0 3px rgba(246, 238, 214, .9),
    inset 0 0 0 4px rgba(156, 120, 38, .4);
}
.mp-chip.is-cast.is-turn { box-shadow: inset 0 0 0 1.5px rgba(200, 156, 58, .9), inset 0 0 0 3px rgba(246, 238, 214, .9), inset 0 0 0 4px rgba(156, 120, 38, .4); }
.mp-clock {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-family: var(--display); font-size: 10px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink-soft);
  background: conic-gradient(var(--gold) 1turn, rgba(26, 20, 16, .12) 0);
  box-shadow: inset 0 0 0 1px rgba(122, 104, 80, .35);
}
.mp-clock.is-warn { color: var(--oxblood-deep); box-shadow: inset 0 0 0 1px rgba(122, 34, 40, .7); }

/* seat panes: cast frames and empty chairs on the felt */
.seat.is-cast {
  box-shadow:
    inset 0 0 0 1px rgba(200, 156, 58, .6),
    inset 0 0 0 3px rgba(21, 36, 27, .9),
    inset 0 0 0 4px rgba(200, 156, 58, .35);
}
.seat.is-gone { opacity: .6; }

/* the open-tables overlay panes */
.mp-note { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px; }
.mp-note b { color: var(--oxblood); }
.mp-row { display: flex; gap: 8px; justify-content: center; margin: 0 0 6px; }
.mp-input {
  flex: 1; min-width: 0; max-width: 240px; padding: 9px 11px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(122, 104, 80, .55); border-radius: 8px;
}
.mp-input:focus { outline: 2px solid rgba(90, 26, 31, .4); }
.mp-input.code { max-width: 120px; text-align: center; text-transform: uppercase; letter-spacing: .3em; font-family: var(--display); font-weight: 600; }
.mp-err { color: var(--oxblood-bright); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.mp-code {
  font-family: var(--display); font-weight: 600; font-size: 38px;
  letter-spacing: .22em; color: var(--oxblood); margin: 2px 0 10px;
}
.mp-or { font-family: var(--caps); text-transform: uppercase; letter-spacing: .2em; font-size: 10.5px; color: var(--ink-light); margin: 12px 0; }

/* the reckoning of a rated match */
.score-table { margin: 4px 0 16px; }
.mpr-row {
  display: grid; grid-template-columns: 58px 1fr 44px 118px;
  gap: 8px; align-items: baseline;
  padding: 7px 10px; border-radius: 7px;
  font-size: 15px; color: var(--ink-soft); text-align: left;
}
.mpr-row.me { background: rgba(200, 156, 58, .16); }
.mpr-row .place { font-family: var(--caps); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: var(--ink-light); }
.mpr-row .pts { text-align: right; font-variant-numeric: tabular-nums; }
.mpr-row .rate { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--ink-light); white-space: nowrap; }
.mpr-row .rate b { color: var(--oxblood); font-weight: 600; }
.mpr-row .rate .up { color: var(--forest-bright); }
.mpr-row .rate .down { color: var(--oxblood-bright); }
.mp-result-note { font-family: var(--hand); font-style: italic; font-size: 14px; color: var(--ink-light); margin: 0 0 16px; }
@media (max-width: 560px) {
  .mpr-row { grid-template-columns: 48px 1fr 38px 96px; font-size: 14px; }
  .mp-chip b { max-width: 9ch; }
}

/* the round tally, tucked at the table's other corner */
.round-tell {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 10px 7px;
  border-radius: 9px;
  background: rgba(246, 238, 214, .07);
  box-shadow: inset 0 0 0 1px rgba(200, 156, 58, .3);
}
.round-tell > span {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 8.5px;
  color: rgba(241, 230, 200, .6);
}
.round-tell b { font-family: var(--display); font-size: 19px; color: var(--gold-bright); }
.round-tell i { font-style: normal; font-size: 9.5px; color: rgba(241, 230, 200, .5); }
@media (max-width: 620px) { .round-tell { top: auto; bottom: 10px; } }

/* bidding */
.bid-hint {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-light);
}
.bid-grid { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.bid-btn {
  min-width: 46px;
  padding: 10px 0;
  font-family: var(--display);
  font-size: 17px;
  border-radius: 8px;
  border: 1.5px solid rgba(122, 104, 80, .45);
  background: rgba(246, 238, 214, .7);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .1s var(--ease);
}
.bid-btn:hover { border-color: var(--oxblood); transform: translateY(-2px); }
.bid-btn.barred {
  cursor: not-allowed;
  opacity: .45;
  text-decoration: line-through;
  border-style: dashed;
}
.bid-btn.barred:hover { border-color: rgba(122, 104, 80, .45); transform: none; }
.bid-note { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-light); }

/* per-seat bid and took, in the seat panes */
.seat-bid { font-size: 10.5px; color: rgba(241, 230, 200, .45); }
.seat-bid.has { color: #e3b754; }

/* the night's final standings share the rated table's rows */
#final-table .mpr-row { grid-template-columns: 58px 1fr 60px; }
