/* ========================================================= Otherside (ODK) ===
   The table view a player sees after pressing E at a seat, the big screen above each table, and
   the tournament board. Same obsidian and gold as the Vault (tokens in vault.css). */

/* ------------------------------------------------- the seat screen (table view) --- */
.odk-seat { min-height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b));
  background: radial-gradient(60% 50% at 50% 40%, rgba(245, 200, 90, .1), transparent 70%), rgba(8, 6, 4, .78); }
.odk-seat .eyebrow { color: var(--v-muted); letter-spacing: .3em; }
.odk-seat h1 { margin: 0; font-family: var(--num); font-weight: 800; font-size: clamp(32px, 6vw, 54px); letter-spacing: .1em; text-transform: uppercase;
  background: var(--v-foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.odk-seat p { margin: 0; max-width: 46ch; color: #d8c9a3; }
.odk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.odk-note { min-height: 1.3em; color: var(--v-gold-2); font-size: 14px; }

/* in-world tables and tournament tables in the lobby */
.room-code.room-name { font-size: clamp(30px, 6vw, 46px); letter-spacing: .08em; }
.ls-pos { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; vertical-align: 1px;
  font-family: var(--num); font-size: 12px; font-weight: 800; color: var(--v-ink); background: var(--v-foil); }

/* ---------------------------------------------------------- the big screen --- */
body.display-mode #actions, body.display-mode #emotes, body.display-mode #take-back,
body.display-mode #btn-pause, body.display-mode #btn-rules, body.display-mode #btn-sound,
body.display-mode #risk, body.display-mode .hint { display: none !important; }
body.display-mode .modal-actions:empty { display: none; }

.dsp { position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 2vh; color: var(--v-text);
  padding: calc(3vh + var(--safe-t)) 4vw calc(3vh + var(--safe-b));
  background: radial-gradient(70% 60% at 50% 55%, rgba(245, 200, 90, .1), transparent 70%), linear-gradient(180deg, #0f0b07, #070504); }
.dsp-top { display: flex; align-items: center; gap: 2vw; }
.dsp-brand { font-family: var(--display); font-size: clamp(22px, 3.4vw, 46px); background: var(--v-foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dsp-name { font-family: var(--num); font-weight: 700; font-size: clamp(14px, 1.8vw, 24px); letter-spacing: .3em; text-transform: uppercase; color: var(--v-muted); }
.dsp-live { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--num); font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  font-size: clamp(12px, 1.4vw, 18px); padding: .5em 1.1em; border-radius: 99px; border: 1px solid var(--v-line); background: rgba(0, 0, 0, .35); }
.dsp-live i { width: .7em; height: .7em; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px #3ddc84; animation: blink 1.6s infinite; }

/* six seats round an oval felt, in the same order as the in-world table */
.dsp-table { position: relative; display: grid; grid-template-columns: 1fr 2.4fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 2vh 2vw; align-items: center; min-height: 0; }
.dsp-felt { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; display: grid; place-items: center; border-radius: 50%; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #2b2140, #140d22 70%); border: 2px solid rgba(232, 192, 106, .45);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .7), 0 0 0 10px rgba(23, 17, 10, .9), 0 0 0 12px rgba(232, 192, 106, .25), 0 30px 80px rgba(0, 0, 0, .6); }
.dsp-status { display: grid; justify-items: center; gap: 1vh; padding: 0 6%; }
.dsp-status h1 { margin: 0; font-family: var(--num); font-weight: 800; font-size: clamp(30px, 5.6vw, 96px); line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  background: var(--v-foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dsp-status p { margin: 0; font-size: clamp(14px, 1.9vw, 28px); color: #e2d3ad; }
.dsp-status kbd { font-family: var(--num); font-weight: 800; padding: .05em .45em; border-radius: .3em; border: 1px solid var(--v-gold-2); color: var(--v-gold-1); background: rgba(0, 0, 0, .4); }
.dsp-pot { display: grid; justify-items: center; margin-top: 1.5vh; padding: 1vh 2.4vw; border-radius: 18px; border: 1px solid var(--v-line); background: rgba(10, 7, 4, .7); }
.dsp-pot span { font-family: var(--num); font-size: clamp(11px, 1.2vw, 16px); letter-spacing: .4em; text-transform: uppercase; color: var(--v-muted); }
.dsp-pot b { font-family: var(--num); font-size: clamp(30px, 4.6vw, 72px); line-height: 1; color: var(--v-gold-1); font-variant-numeric: tabular-nums; }
.dsp-pot small { font-size: clamp(11px, 1.2vw, 16px); color: #cdbb92; }

.dsp-seat { display: grid; justify-items: center; gap: .6vh; padding: 1.4vh 1vw; border-radius: 18px; text-align: center; min-width: 0;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .3)); }
.dsp-seat b { font-family: var(--num); font-weight: 800; font-size: clamp(14px, 1.8vw, 26px); letter-spacing: .04em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsp-seat small { font-size: clamp(11px, 1.2vw, 16px); color: var(--v-muted); }
.dsp-seat.ready { box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 35%, transparent); }
.dsp-seat.ready small { color: #7ff0a8; }
.dsp-seat.empty { border-style: dashed; opacity: .55; }
.ds-av { width: clamp(44px, 6vw, 84px); aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; overflow: hidden; max-width: 100%;
  font-family: var(--num); font-weight: 800; font-size: clamp(18px, 2.4vw, 34px); color: var(--v-muted); background: rgba(0, 0, 0, .35); }
.ds-av .pfp { --s: 100% !important; width: 100%; height: 100%; }
.ds-av.art img { width: 100%; height: 100%; object-fit: cover; }
/* seat positions 1–6: left column bottom→top, right column top→bottom */
.dsp-seat.bl { grid-column: 1; grid-row: 3; } .dsp-seat.l { grid-column: 1; grid-row: 2; } .dsp-seat.tl { grid-column: 1; grid-row: 1; }
.dsp-seat.tr { grid-column: 3; grid-row: 1; } .dsp-seat.r { grid-column: 3; grid-row: 2; } .dsp-seat.br { grid-column: 3; grid-row: 3; }
.dsp-foot { text-align: center; font-family: var(--num); letter-spacing: .25em; text-transform: uppercase; color: var(--v-muted); font-size: clamp(11px, 1.3vw, 18px); }

/* --------------------------------------------------------- tournament board --- */
.tour-wrap { margin-top: 22px; }
.tour-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tour-none { margin: 0; color: var(--v-muted); }
.tour-card { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--v-line); min-width: 0;
  background: linear-gradient(160deg, rgba(245, 200, 90, .08), transparent 55%), linear-gradient(180deg, #17110a, #0d0a07); }
.tour-card header { display: flex; align-items: center; gap: 10px; }
.tour-card header b { font-family: var(--num); font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: var(--v-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-status { margin-left: auto; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px;
  color: var(--v-ink); background: var(--v-foil); }
.tour-done .tc-status, .tour-cancelled .tc-status { background: rgba(255, 255, 255, .1); color: var(--v-muted); }
.tc-pool { display: grid; }
.tc-pool span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--v-muted); }
.tc-pool b { font-family: var(--num); font-size: 34px; line-height: 1.05; color: var(--v-gold-1); font-variant-numeric: tabular-nums; }
.tc-pool small { color: var(--v-muted); font-size: 12px; }
.tc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; }
.tc-facts li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 6px; }
.tc-facts span { color: var(--v-muted); }
.tc-facts b { color: var(--v-text); font-variant-numeric: tabular-nums; text-align: right; }
.tc-champ { margin: 0; color: var(--v-gold-1); }
.tour-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tc-you { font-size: 13px; color: #7ff0a8; }
