/* playing against each other: the hub and the room page */
.vs { max-width: 480px; margin: 0 auto; padding: 14px 14px 60px; }
.back-home { font-weight: 900; color: #4a2c00; text-decoration: none; padding: 5px 14px 7px; border-radius: 14px; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--gold-deep); }
.vs-card { padding: 20px 16px 18px; border-radius: 26px; color: #2c1387; background: linear-gradient(180deg, #fffdf6, var(--cream));
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 6px #8a5a00, 0 8px 0 #160a52; }
.vs-h { margin: 0 0 4px; font-size: 1.5rem; font-weight: 900; text-align: center; }
.vs-h2 { margin: 18px 0 6px; font-size: 1.05rem; font-weight: 900; }
.vs-sub { margin: 0 0 12px; text-align: center; font-weight: 700; color: #5b4a8f; }
.vs-label { display: block; margin: 14px 2px 6px; font-weight: 900; font-size: .95rem; }
.vs-input { display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: 1.05rem; color: #2c1387;
  background: #fff; box-shadow: inset 0 0 0 2px #cbbdf0; }
.vs-input:focus-visible { outline: 3px solid var(--gold); }
.vs-input.code { text-align: center; letter-spacing: .3em; text-transform: uppercase; }
.vs-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vs-pick.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-pick.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vs-pick[data-pick="prize"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vs-pick button { border: 0; cursor: pointer; font: inherit; padding: 9px 6px 10px; border-radius: 14px; color: #2c1387; background: #fff; box-shadow: inset 0 0 0 2px #cbbdf0; }
.vs-pick button b { display: block; font-weight: 900; font-size: 1rem; }
.vs-pick button small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 700; color: #6b5aa0; line-height: 1.25; }
.vs-pick button.on { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #4a2c00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--gold-deep); }
.vs-pick button.on small { color: #6b4500; }
.vs-pick button:disabled { opacity: .4; cursor: default; }
.btn-wide { display: block; width: 100%; margin-top: 16px; font-size: 1.3rem; padding: 10px 0 14px; border-radius: 20px; }
.vs-note { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 800; color: #b3134f; }
.vs-or { margin: 20px 0 8px; text-align: center; font-weight: 900; color: #5b4a8f; }
.vs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.vs-row .btn { padding: 6px 18px 9px; border-radius: 14px; }
.vs-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; margin-bottom: 14px; border-radius: 20px; background: rgba(10, 5, 40, .55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.vs-tab { border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: .95rem; padding: 8px 2px 10px; border-radius: 15px; color: rgba(255, 255, 255, .8); background: none; }
.vs-tab.on { color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 var(--gold-deep); }
.vs-code { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; padding: 8px 14px; border-radius: 16px; background: #2a1470; color: #fff; }
.vs-code span { font-weight: 800; font-size: .9rem; color: var(--gold-hi); }
.vs-code strong { font-size: 1.7rem; font-weight: 900; letter-spacing: .22em; }
.vs-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: place; }
.vs-players li { counter-increment: place; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #e2d9f7; font-weight: 800; }
.vs-players li::before { content: counter(place); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 900; font-size: .9rem; color: #fff; background: #7a5fd0; }
.vs-players li.me { box-shadow: inset 0 0 0 2px var(--gold); background: #fff8dc; }
.vs-players li.winner { background: linear-gradient(180deg, #e9ffd9, #c9f5ae); box-shadow: inset 0 0 0 2px var(--green); }
.vs-players li.winner::before { content: "★"; background: var(--gold); color: #4a2c00; }
.vs-players .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-players .what { font-variant-numeric: tabular-nums; font-weight: 900; }
.vs-players .what.wait { font-weight: 700; font-size: .85rem; color: #6b5aa0; }
.vs-players .empty { grid-column: 1 / -1; text-align: center; color: #6b5aa0; }
.vs-share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.vs-share .btn { padding: 7px 4px 10px; font-size: 1rem; border-radius: 14px; }
.vs-link { display: block; margin-top: 16px; text-align: center; font-weight: 900; color: #5b2bd0; }
.vs-list { display: grid; gap: 8px; }
.vs-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #2c1387; background: #fff; box-shadow: inset 0 0 0 2px #e2d9f7; }
.vs-item b { font-weight: 900; }
.vs-item small { grid-column: 1; font-weight: 700; color: #6b5aa0; }
.vs-item .tag { grid-row: 1 / span 2; grid-column: 2; padding: 2px 12px 4px; border-radius: 999px; font-weight: 900; font-size: .85rem; color: #fff; background: #7a5fd0; }
.vs-item .tag.go { background: #2fa324; } .vs-item .tag.won { background: var(--gold); color: #4a2c00; }
/* the door to all this on the home page */
.vs-door { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 18px; padding: 14px 16px 16px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #ff5f9e, #7a2be0 60%, #3a17a8); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 0 0 2px rgba(255, 255, 255, .25), 0 6px 0 #160a52; }
.vs-door b { display: block; font-size: 1.35rem; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.vs-door small { display: block; font-weight: 700; opacity: .92; }
.vs-door span { padding: 4px 16px 7px; border-radius: 14px; font-weight: 900; color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 3px 0 var(--gold-deep); white-space: nowrap; }

/* a player's own number, and inviting by number */
.vs-me { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 14px; border-radius: 18px; color: #fff; background: rgba(10, 5, 40, .6); box-shadow: inset 0 0 0 2px var(--gold); }
.vs-me span { font-weight: 800; font-size: .9rem; color: var(--gold-hi); }
.vs-me strong { font-size: 1.5rem; font-weight: 900; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.vs-me button { border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: .85rem; padding: 4px 12px 6px; border-radius: 12px; color: #4a2c00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.vs-invite { margin-top: 14px; padding-top: 4px; border-top: 2px dashed #cbbdf0; }
.vs-invite .vs-note { color: #2c1387; }
.vs-gap { margin-top: 22px; }
.vs-item.invite { grid-template-columns: minmax(0, 1fr) auto auto; }
.vs-item.invite b, .vs-item.invite small { grid-column: 1; }
.vs-item.invite .btn { grid-row: 1 / span 2; padding: 4px 14px 7px; font-size: .95rem; border-radius: 12px; }
.vs-item.invite a.btn { grid-column: 2; } .vs-item.invite button.btn { grid-column: 3; }
.vs-tab i { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font-style: normal; font-size: .75rem; color: #fff; background: var(--pink); }
.vs-door i { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; font-style: normal; font-size: .8rem; font-weight: 900; color: #fff; background: #e0347a; box-shadow: 0 0 0 2px #fff; vertical-align: middle; }
.vs-hint { margin: 8px 2px 0; font-size: .82rem; font-weight: 700; color: #6b5aa0; }
.duel-door { margin-bottom: 14px; }
.duel-door .vs-pick button { padding: 12px 4px 13px; }
#duel-with { margin-bottom: 10px; }
