/* In-game HUD, Direction A. Everything floats; nothing spans the screen as a tray. */
.screen { background: #24301a; }
.strip { position: absolute; left: 0; right: 0; top: 0; z-index: 20; pointer-events: none; }
.strip > * { pointer-events: auto; position: absolute; }
.menu { left: 4px; top: 4px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bark); color: #fff; border: 1.5px solid var(--bark-line); box-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.menu .ico { width: 24px; height: 24px; }
.menu .r { position: absolute; right: -6px; bottom: -6px; height: 18px; min-width: 18px; padding: 0 4px; border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--wood-dark); }
.mp { left: 50%; transform: translateX(-50%); top: 8px; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 4px; border-radius: 17px;
  background: linear-gradient(180deg, #d84a3a, #b8322f); color: #fff; font-family: Lilita, sans-serif; font-size: 15px; letter-spacing: 0.03em; border: 2px solid #7a1d1a; box-shadow: 0 2px 0 #7a1d1a; white-space: nowrap; }
.mp img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: var(--paper); }
.mp img:first-child { margin-left: 0; }
.mp .ico { width: 16px; height: 16px; }
.rnd { top: 10px; height: 30px; padding: 0 10px; border-radius: 15px; background: var(--bark); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; border: 1.5px solid var(--bark-line); }
.chatb { top: 4px; right: 4px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bark); border: 1.5px solid var(--bark-line); }
.chatb .ico { width: 26px; height: 26px; }
.chatb .n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink-dot); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; }

/* seat chips: two compact lines, anchored over each opponent */
.seat { position: absolute; z-index: 10; height: 36px; padding: 3px 8px 3px 3px; border-radius: 12px; display: flex; align-items: center; gap: 5px; background: rgba(255, 243, 220, 0.95); border: 2px solid var(--wood-dark);
  box-shadow: 0 2px 0 var(--wood-dark); color: var(--ink); transform: translateX(-50%); white-space: nowrap; }
.seat .ring { width: 26px; height: 26px; border-radius: 50%; position: relative; flex: none; background: conic-gradient(var(--turn) calc(var(--t, 0) * 1turn), transparent 0); padding: 2px; }
.seat .ring img { width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.seat .l1 { font-size: 11px; font-weight: 700; line-height: 1; }
.seat .l2 { display: flex; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1; margin-top: 2px; align-items: center; }
.seat .l2 span { display: inline-flex; align-items: center; gap: 2px; }
.seat .l2 .ico { width: 12px; height: 12px; }
.seat .l2 .ico.cd { color: var(--muted); }
.seat::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--wood-dark); border-bottom: 0; }
.seat .fx { position: absolute; right: -10px; top: -9px; display: flex; gap: 0; }
.seat .fx img { width: 22px; height: 22px; border-radius: 50%; margin-left: -6px; box-shadow: 0 1px 0 rgba(0,0,0,0.3); }
.seat.up { border-color: var(--turn); box-shadow: 0 2px 0 #a8501a, 0 0 0 2px rgba(224, 120, 46, 0.35); }
.seat.up::after { border-top-color: var(--turn); }
.seat.folded { opacity: 0.55; filter: saturate(0.4); }
.seat .tagx { font-size: 10px; font-weight: 700; color: #fff; background: var(--muted); border-radius: 5px; padding: 1px 4px; margin-left: 2px; }
.seat.pick { border-style: dashed; border-color: var(--gold-edge); background: #fff6d0; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 2px 0 var(--gold-edge), 0 0 0 5px rgba(255, 210, 74, 0.45); } }

/* own chip by your animal */
.mine { position: absolute; z-index: 10; height: 30px; padding: 0 10px; border-radius: 15px; display: flex; align-items: center; gap: 8px; background: var(--bark); color: #fff; font-size: 14px; font-weight: 700; border: 1.5px solid var(--bark-line); }
.mine span { display: inline-flex; align-items: center; gap: 3px; }
.mine .ico { width: 16px; height: 16px; }
.mine .fx img { width: 20px; height: 20px; border-radius: 50%; display: block; }

/* board pieces (2D overlays on the stump, they exist today) */
.prize { position: absolute; z-index: 5; filter: drop-shadow(0 6px 4px rgba(60, 30, 0, 0.35)); }
.prize img { width: 100%; border-radius: 6px; }
.stake { position: absolute; z-index: 6; height: 22px; min-width: 22px; padding: 0 6px; border-radius: 11px; background: #fffaf0; border: 2px solid var(--coin-edge); font-size: 12px; font-weight: 700; display: grid; place-items: center; transform: translate(-50%, -50%); box-shadow: 0 2px 0 var(--coin-edge); }
.lead { position: absolute; z-index: 6; height: 28px; padding: 0 8px 0 4px; border-radius: 14px; background: #fffaf0; border: 2px solid var(--gold-edge); display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; transform: translateX(-50%); box-shadow: 0 2px 0 var(--gold-edge); }
.lead .ico { width: 18px; height: 18px; }
.lead img { width: 20px; height: 20px; border-radius: 50%; }
.ringfeet { position: absolute; z-index: 4; border-radius: 50%; border: 3px dashed var(--gold); box-shadow: 0 0 14px rgba(255, 210, 74, 0.8), inset 0 0 14px rgba(255, 210, 74, 0.5); transform: translate(-50%, -50%); animation: spinr 6s linear infinite; }
@keyframes spinr { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* hand: a low peek row that lifts on tap */
.hand { position: absolute; z-index: 12; display: flex; justify-content: center; pointer-events: none; }
.card { pointer-events: auto; position: relative; flex: none; border-radius: 8px; overflow: hidden; box-shadow: 0 -2px 6px rgba(0,0,0,0.25); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1.2); border: 2px solid #5a3a1e; background: #fff; }
.card img { width: 100%; display: block; }
.card .nm { position: absolute; left: 0; right: 0; height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); background: rgba(255, 250, 240, 0.95); border-top: 1.5px solid #e2cfae; }
.card.dimc { filter: brightness(0.7) saturate(0.6); }
.card.ans { border-color: var(--t-rare); box-shadow: 0 0 0 3px rgba(79, 141, 255, 0.55), 0 -4px 12px rgba(79, 141, 255, 0.6); }
.card .kc { position: absolute; top: 4px; right: 4px; }
.card.gone { visibility: hidden; }

/* bid bar: separate controls, no tray behind them */
.bar { position: absolute; z-index: 14; display: flex; gap: 8px; align-items: center; }
.bar .btn { height: 48px; }
.coinb { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 40% 35%, #ffe48a, #ffd24a 55%, #e0a82a); border: 2.5px solid var(--coin-edge); box-shadow: 0 3px 0 var(--coin-edge); color: var(--ink); }
.coinb .ico { width: 20px; height: 20px; }
.coinb.off { filter: grayscale(0.7) brightness(0.9); opacity: 0.7; }
.bid { flex: 1; position: relative; font-size: 19px; }
.bid em { font-style: normal; font-size: 12px; font-weight: 700; background: rgba(74, 42, 20, 0.12); border-radius: 8px; padding: 2px 6px; }
.clock { position: absolute; right: -6px; top: -10px; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--turn) var(--c, 0.6turn), #f3e3c8 0); display: grid; place-items: center; box-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.clock b { width: 26px; height: 26px; border-radius: 50%; background: #fffaf0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.btn.off { opacity: 0.55; filter: grayscale(0.4); }

/* lifted card + tags */
.lifted { position: absolute; z-index: 16; border-radius: 12px; overflow: hidden; border: 3px solid #5a3a1e; box-shadow: 0 16px 30px -8px rgba(0,0,0,0.6); transform: rotate(-4deg); }
.lifted img { width: 100%; display: block; }
.ptag { position: absolute; z-index: 17; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--bark-solid); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; border: 2px solid var(--gold); box-shadow: 0 3px 0 rgba(0,0,0,0.3); white-space: nowrap; }
.ptag .ico { width: 16px; height: 16px; color: var(--gold); }
.bubble { position: absolute; z-index: 11; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.bubble::after { content: ""; position: absolute; left: 14px; bottom: -8px; border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.inplay { position: absolute; z-index: 7; transform: rotate(8deg); border-radius: 7px; overflow: hidden; border: 2px solid var(--c-grief); box-shadow: 0 6px 10px rgba(0,0,0,0.35); }
.inplay img { width: 100%; display: block; }
.arrow { position: absolute; z-index: 9; pointer-events: none; }
.edge { position: absolute; inset: 0; z-index: 3; pointer-events: none; box-shadow: inset 0 0 0 4px rgba(79, 141, 255, 0.0); }

/* state switching: data-s lists the states an element shows in */
.s0 [data-s]:not([data-s*="0"]), .s1 [data-s]:not([data-s*="1"]), .s2 [data-s]:not([data-s*="2"]) { display: none !important; }
.s2 .edge { box-shadow: inset 0 0 0 3px rgba(79, 141, 255, 0.85); }
