/* 365 Games - the extra look for the games against the computer (Hearts, Gin Rummy; 5 Oct 2026), on top of table.css:
 * the name plates round the table, the panel in the middle that says what to do, and the states of the cards in your
 * hand (playable, not playable, chosen, just passed to you, laid off). */
.rivals #board { touch-action: manipulation; }
/* messages sit above your hand, not over it */
.rivals #toast { bottom: calc(var(--ch) + 64px); }

/* the name plates: who sits where, their points, whose turn it is */
.rv-plate { position: absolute; left: 0; top: 0; z-index: 1800; pointer-events: none; display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(0, 0, 0, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font: 700 15px/1.15 Archivo, sans-serif; color: #fff; white-space: nowrap; transition: box-shadow .25s, background .25s; }
.rv-plate .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 Archivo, sans-serif;
  background: linear-gradient(160deg, #ffe7a3, #d9a63b); color: #3a2600; flex: none; }
.rv-plate.you .av { background: linear-gradient(160deg, #a8ecff, #2aa6d6); color: #06283a; }
.rv-plate small { display: block; font-weight: 500; font-size: 12.5px; opacity: .82; }
.rv-plate b.pts { color: var(--gold); }
.rv-plate.turn { background: rgba(0, 0, 0, .5); box-shadow: 0 0 0 2px var(--gold), 0 0 18px 4px rgba(255, 210, 87, .45); }
.rv-plate.turn .av { animation: rvpulse 1.1s ease-in-out infinite; }
@keyframes rvpulse { 50% { transform: scale(1.12); } }
.rv-plate.mini { font-size: 13px; padding: 3px 10px 3px 4px; } .rv-plate.mini .av { width: 24px; height: 24px; font-size: 12px; }
.rv-plate.tag { padding: 4px 12px; background: rgba(0, 0, 0, .42); font-size: 14px; }
.rv-plate.tag.gold { color: #2a2000; background: var(--gold); }
.rv-plate.tag.count { font-size: 17px; padding: 6px 14px; }
.rv-plate.board { padding: 0; background: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); border-radius: 10px; }
.rv-plate.board svg { display: block; }
.rv-slot { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .08);
  border: 2px dashed rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .1); }

/* the panel in the middle of the table: what to do now, and its buttons */
#rvPanel { position: absolute; z-index: 2600; padding: 12px 16px 14px; border-radius: 16px; text-align: center;
  background: rgba(6, 20, 12, .78); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font: 500 16px/1.35 Archivo, sans-serif; }
#rvPanel[hidden] { display: none; }
#rvPanel h3 { margin: 0 0 4px; font: 700 19px/1.2 Archivo, sans-serif; }
#rvPanel p { margin: 0 0 8px; }
#rvPanel .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
#rvPanel .btn { min-height: 46px; padding: 0 18px; font-size: 17px; }
#rvPanel .btn.gold { background: var(--gold); border-color: var(--gold); color: #2a2000; }
#rvPanel .btn:disabled { opacity: .45; cursor: default; }
#rvPanel table { margin: 6px auto 4px; border-collapse: collapse; font-size: 15px; }
#rvPanel th, #rvPanel td { padding: 3px 10px; text-align: right; }
#rvPanel th:first-child, #rvPanel td:first-child { text-align: left; }
#rvPanel thead th { font-size: 12.5px; font-weight: 500; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
#rvPanel tr.me td { color: #9fe8ff; font-weight: 700; }
#rvPanel tr.lead td:first-child::after { content: " \2605"; color: var(--gold); }
#rvPanel .big { font: 700 26px/1.1 Archivo, sans-serif; color: var(--gold); margin: 2px 0 6px; }
#rvPanel .soft { opacity: .8; font-size: 14.5px; }
#rvPanel .dw { display: inline-block; margin: 0 4px; padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; }
#rvPanel .dw.ok { background: #2f8f4e; }
@media (max-width: 520px) { #rvPanel { padding: 9px 10px 10px; font-size: 14.5px; } #rvPanel h3 { font-size: 16.5px; } #rvPanel .btn { min-height: 42px; padding: 0 14px; font-size: 15.5px; }
  .rv-plate { font-size: 13px; padding: 3px 9px 3px 4px; } .rv-plate .av { width: 24px; height: 24px; font-size: 12px; } .rv-plate small { font-size: 11.5px; } }

/* your cards: the ones you may play lift under the pointer; the others are dimmed while it's your turn */
.rivals .card .wig { transition: transform .16s; }
.rivals .card.ok { cursor: pointer; }
@media (hover: hover) { .rivals .card.ok:hover .wig { transform: translateY(-9%); } }
.rivals .card.dim .front { filter: brightness(.66) saturate(.55); }
.rivals .card.sel .wig { transform: translateY(-17%); }
.rivals .card.sel .front { box-shadow: 0 0 0 3px var(--gold), 0 0 20px 5px rgba(255, 210, 87, .6), 0 12px 22px rgba(0, 0, 0, .35) !important; }
.rivals .card.got .front { box-shadow: 0 0 0 3px #8ff0ff, 0 0 18px 5px rgba(143, 240, 255, .55) !important; }
.rivals .card.lay .front { box-shadow: 0 0 0 3px #8ff0ff, 0 0 16px 4px rgba(143, 240, 255, .5) !important; }
.rivals .card.dead .front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(160, 20, 40, .07); box-shadow: inset 0 0 0 2px rgba(198, 21, 47, .35); }
.rivals .card.won .front { box-shadow: 0 0 0 3px var(--gold), 0 0 22px 6px rgba(255, 210, 87, .65) !important; }
.rivals .card.knock .front { box-shadow: 0 0 0 3px #9dff9a, 0 0 18px 5px rgba(120, 255, 140, .55) !important; }
.rivals .card.take .front, .rivals .card.take .back { box-shadow: 0 0 0 3px #8ff0ff, 0 0 18px 4px rgba(143, 240, 255, .5) !important; }
