/* Purrfect Banker: warm, soft, light-only cat theme. */

:root {
  --cream: #fff4e6;
  --cream-2: #ffe9d2;
  --card: #ffffff;
  --ink: #3d2c2e;
  --muted: #8a7570;
  --line: #f0dfcc;
  --coral: #ff7a6b;
  --coral-dark: #e65f50;
  --peach: #ffb38a;
  --mint: #5cc4a0;
  --mint-dark: #3aa47f;
  --lavender: #b9a6f2;
  --sun: #ffd36b;
  --sky: #8ccfff;
  --good: #2f9e6e;
  --bad: #e2554b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 0 rgba(61, 44, 46, .06), 0 10px 30px rgba(61, 44, 46, .08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", "Varela Round", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, #ffe1c4 0, transparent 32%),
    radial-gradient(circle at 92% 90%, #fde3ea 0, transparent 30%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.35;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--coral-dark); }
button, input { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.token { width: 48px; height: 48px; display: inline-block; flex: none; }
.hero-cat { width: 120px; height: 120px; display: block; margin: 0 auto 12px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}
.chip-soft { background: var(--cream-2); color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, filter .15s ease, opacity .15s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .token { width: 30px; height: 30px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral-dark); }
.btn-mint { background: var(--mint); color: #fff; box-shadow: 0 4px 0 var(--mint-dark); }
.btn-warn { background: #fff0ec; color: var(--coral-dark); box-shadow: inset 0 0 0 2px #ffcfc6; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-link { background: none; color: var(--coral-dark); text-decoration: underline; min-height: 44px; }
.btn-small { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.btn-big { min-height: 60px; font-size: 1.15rem; padding: 12px 26px; }
.btn-huge { min-height: 76px; font-size: 1.4rem; width: 100%; }
.btn-block { width: 100%; }

.icon-btn {
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--cream-2);
  font-size: 1.3rem; font-weight: 800;
  cursor: pointer; flex: none;
}

/* ---------- Inputs ---------- */

.input {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1.1rem;
  outline: none;
}
.input:focus { border-color: var(--peach); box-shadow: 0 0 0 4px #ffe1cf; }
.input-code { text-align: center; font-weight: 800; letter-spacing: .12em; font-size: 1.4rem; text-transform: uppercase; }
.label { display: block; font-weight: 800; margin: 14px 0 8px; }
.code-form { display: flex; gap: 10px; }
.code-form .btn { flex: none; }

/* ---------- Toast and connection ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  max-width: min(92vw, 520px);
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  z-index: 100;
  transition: transform .25s ease;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.good { background: var(--good); }
.toast.bad, .toast.error { background: var(--bad); }

.conn { background: var(--sun); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.conn-float { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 90; }

.loading { padding: 60px 20px; text-align: center; color: var(--muted); font-weight: 700; }
.center-screen { max-width: 480px; margin: 0 auto; padding: 40px 20px; text-align: center; }

/* ---------- Home ---------- */

.home { max-width: 920px; margin: 0 auto; padding: 40px 16px; }
.home-hero { text-align: center; margin-bottom: 28px; }
.home-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.hero-cats { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; }
.hero-cats img { width: 84px; height: 84px; }
.hero-cats img:nth-child(2) { transform: translateY(-10px); }
.lede { font-size: 1.15rem; color: var(--muted); }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.home-card .btn-big { width: 100%; }
.my-games { margin-top: 18px; }
.my-games-list { display: flex; flex-wrap: wrap; gap: 8px; }
.my-games-list small { color: var(--muted); font-weight: 600; }
.home-foot { text-align: center; margin-top: 26px; color: var(--muted); font-size: .9rem; }

/* ---------- Shared bits ---------- */

.mini-players { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.mini-player {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 700;
}
.mini-player .token { width: 32px; height: 32px; }
.mini-player.out { opacity: .4; text-decoration: line-through; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item.voided .feed-text, .feed-item.voided .feed-amt { text-decoration: line-through; opacity: .5; }
.feed-amt { font-weight: 800; white-space: nowrap; }
.feed-amt.in { color: var(--good); }
.feed-amt.out { color: var(--bad); }
.feed-time { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.standings { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.standing { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 10px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.standing .place { width: 32px; text-align: center; font-weight: 800; font-size: 1.2rem; }
.standing .name { flex: 1; font-weight: 800; font-size: 1.15rem; }
.standing .amt { font-weight: 800; font-size: 1.2rem; }
.standing.winner { background: #fff6d6; box-shadow: inset 0 0 0 3px var(--sun), var(--shadow); }
.standing.me { outline: 3px solid var(--peach); }

@keyframes flashUp { 0% { background: #c9f2df; transform: scale(1.04); } 100% { background: transparent; transform: none; } }
@keyframes flashDown { 0% { background: #ffd6d1; transform: scale(.97); } 100% { background: transparent; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }
.pop { animation: pop .35s ease both; }

/* =========================================================
   Phone
   ========================================================= */

.page-play { overscroll-behavior-y: contain; }
.play { max-width: 520px; margin: 0 auto; padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); }

.join-head { text-align: center; padding: 12px 0; }
.join-head .chip { margin-bottom: 12px; }
.join-players { text-align: center; }
.join-form .btn-big { width: 100%; margin-top: 18px; }
.token-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.token-pick {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; min-height: 48px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--cream); cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 700; font-size: .9rem;
}
.token-pick .token { width: 64px; height: 64px; }
.token-pick.selected { background: #fff0e4; box-shadow: inset 0 0 0 3px var(--coral); }
.token-pick:disabled { opacity: .35; cursor: not-allowed; }

.wallet-head { display: flex; justify-content: space-between; align-items: center; }
.wallet-who { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.wallet-who .token { width: 52px; height: 52px; }
.balance-wrap { text-align: center; margin: 10px 0 16px; }
.balance-label { color: var(--muted); font-weight: 700; }
.balance {
  font-size: clamp(3.2rem, 17vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  border-radius: 20px;
  display: inline-block;
  padding: 0 14px;
}
.balance.neg { color: var(--bad); }
.balance.flash-up { animation: flashUp 1.2s ease; }
.balance.flash-down { animation: flashDown 1.2s ease; }

.btn-go {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #6fd3ad, #4bbd95);
  color: #fff;
  box-shadow: 0 6px 0 var(--mint-dark), var(--shadow);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s;
}
.btn-go:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 var(--mint-dark); }
.btn-go:disabled { opacity: .6; }
.go-arrow { font-size: 2rem; background: rgba(255, 255, 255, .25); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.go-text { font-size: 1.7rem; font-weight: 900; }
.go-amount { font-size: 1.4rem; font-weight: 900; background: rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 999px; }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 96px; padding: 12px;
  border: 0; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  font-weight: 800; font-size: 1.05rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.action:active { transform: scale(.97); }
.action-icon { font-size: 1.9rem; }
.action-pay { background: #fff0ec; }
.action-collect { background: #eef8ff; }
.action-request { background: #f3efff; }
.action-auction { background: #fff8e1; }

.btn-pot {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: 64px; padding: 12px 20px;
  border: 0; border-radius: var(--radius);
  background: #fff6d6; box-shadow: inset 0 0 0 3px var(--sun);
  font-weight: 800; font-size: 1.1rem; cursor: pointer;
}
.btn-pot strong { font-size: 1.3rem; }
.btn-pot:disabled { opacity: .5; cursor: default; }

.waiting-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; margin-bottom: 12px;
  border-radius: var(--radius-sm); background: #f3efff;
}

.my-feed { margin-top: 22px; }
.my-feed h2 { font-size: 1.05rem; color: var(--muted); }
.my-feed .feed { background: #fff; border-radius: var(--radius); padding: 4px 18px; box-shadow: var(--shadow); }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; background: rgba(61, 44, 46, .35); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-card {
  width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-head h2 { flex: 1; margin: 0; }

.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 110px; padding: 12px;
  border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.pick .token { width: 64px; height: 64px; }
.pick-icon { font-size: 2.6rem; line-height: 64px; }

.pad-total { text-align: center; font-size: 3rem; font-weight: 900; letter-spacing: -.02em; }
.pad-msg { text-align: center; color: var(--bad); font-weight: 700; min-height: 0; margin-bottom: 6px; font-size: .95rem; }
.pad-msg.show { background: #ffe9e6; border-radius: var(--radius-sm); padding: 8px 12px; }
.pad-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.qbtn {
  min-height: 52px; border: 0; border-radius: var(--radius-sm);
  background: var(--sun); font-weight: 800; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 3px 0 #e8b94a;
}
.qbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #e8b94a; }
.pad-notes { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.note-chip {
  flex: none; min-height: 44px; padding: 8px 16px;
  border: 0; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; cursor: pointer;
}
.note-chip.selected { background: var(--lavender); color: #fff; box-shadow: none; }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.key {
  min-height: 56px; border: 0; border-radius: var(--radius-sm);
  background: #fff; font-size: 1.5rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 0 var(--line);
}
.key:active { background: var(--cream-2); }
.key-soft { font-size: 1rem; background: var(--cream-2); }
.btn-confirm { width: 100%; min-height: 64px; font-size: 1.2rem; }

/* Incoming request: must be answered */
.blocker { position: fixed; inset: 0; z-index: 40; background: rgba(61, 44, 46, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.req-card {
  width: 100%; max-width: 440px;
  background: #fff; border-radius: 28px; padding: 26px 20px;
  text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: pop .3s ease;
}
.req-card .token { width: 88px; height: 88px; }
.req-who { font-size: 1.15rem; margin-top: 6px; }
.req-amount { font-size: 3.4rem; font-weight: 900; letter-spacing: -.02em; }
.req-note { display: inline-block; background: var(--cream-2); padding: 4px 14px; border-radius: 999px; font-weight: 700; margin-bottom: 8px; }
.req-funds { color: var(--muted); margin: 6px 0 16px; font-weight: 600; }
.req-funds.short { color: var(--bad); }
.req-buttons { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* Phone auction panel */
.auction-panel { position: fixed; inset: 0; z-index: 30; background: #fff8e1; overflow-y: auto; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
.auc { max-width: 520px; margin: 0 auto; text-align: center; }
.auc-label { display: inline-block; background: var(--ink); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 800; margin-bottom: 10px; }
.auc-property { font-size: 2rem; margin-bottom: 14px; }
.auc-high { display: flex; align-items: center; justify-content: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); text-align: left; }
.auc-high .token { width: 72px; height: 72px; }
.auc-high.winning { box-shadow: inset 0 0 0 4px var(--mint), var(--shadow); }
.auc-bid { font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.auc-leader { font-weight: 700; color: var(--muted); }
.auc-timer { position: relative; height: 40px; margin: 16px 0; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--line); }
.auc-bar { position: absolute; inset: 0 auto 0 0; background: var(--mint); transition: width .2s linear; }
.auc-bar.urgent { background: var(--coral); }
.auc-timer span { position: relative; line-height: 40px; font-weight: 900; font-size: 1.1rem; }
.auc-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auc-step {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 78px; border: 0; border-radius: var(--radius);
  background: var(--coral); color: #fff; font-size: 1.6rem; font-weight: 900; cursor: pointer;
  box-shadow: 0 5px 0 var(--coral-dark);
}
.auc-step small { font-size: .9rem; font-weight: 700; opacity: .9; }
.auc-step:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-dark); }
.auc-step:disabled { background: #e8d9cf; box-shadow: none; color: #a8968f; }
.auc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.auc-out { font-weight: 800; font-size: 1.15rem; margin: 18px 0; }
.auc-wallet { color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.auc-others { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.auc-result .auc-sold { font-size: 2rem; font-weight: 900; margin: 6px 0; }
.auc-result .btn { min-width: 160px; margin-top: 10px; }

/* =========================================================
   Dashboard (laptop, landscape, read from across the table)
   ========================================================= */

.page-dash { overflow-x: hidden; }
.dash { min-height: 100vh; display: flex; flex-direction: column; }
.dash-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.dash-code { font-size: 1.1rem; }
.dash-code strong { letter-spacing: .06em; }
.dash-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.dash-main { flex: 1; padding: 24px; }

.lobby { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; align-items: start; }
.lobby-qr { text-align: center; }
.lobby-qr h1 { font-size: 2.4rem; }
.qr { background: #fff; border-radius: var(--radius); padding: 12px; display: inline-block; width: min(100%, 420px); box-shadow: inset 0 0 0 3px var(--line); }
.qr svg { width: 100%; height: auto; display: block; }
.qr-small { width: 220px; }
.lobby-code { font-size: 4rem; font-weight: 900; letter-spacing: .08em; margin-top: 12px; }
.lobby-url { font-size: 1.05rem; word-break: break-all; }
.lobby-side { display: flex; flex-direction: column; gap: 18px; }
.lobby-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lobby-player { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--cream); border-radius: var(--radius-sm); font-weight: 800; font-size: 1.2rem; }
.lobby-player .token { width: 56px; height: 56px; }

.settings { display: flex; flex-direction: column; gap: 4px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.setting:last-child { border-bottom: 0; }
.setting small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.money-input { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border-radius: var(--radius-sm); padding: 4px 12px; font-weight: 800; }
.money-input input { width: 90px; border: 0; background: transparent; font-weight: 800; font-size: 1.1rem; padding: 8px 0; outline: none; }
.money-input-big { font-size: 1.5rem; }
.money-input-big input { width: 160px; font-size: 1.5rem; }
.toggle { cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { flex: none; width: 58px; height: 34px; border-radius: 999px; background: #e6d8cb; position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); transition: transform .2s; }
.toggle input:checked + i { background: var(--mint); }
.toggle input:checked + i::after { transform: translateX(24px); }
.toggle input:focus-visible + i { outline: 3px solid var(--peach); outline-offset: 2px; }

.table { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.table-players { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.table-players.n3, .table-players.n5, .table-players.n6 { grid-template-columns: repeat(3, 1fr); }
.player-card {
  position: relative;
  background: #fff; border-radius: 28px; box-shadow: var(--shadow);
  padding: 24px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.player-card .token { width: clamp(90px, 10vw, 140px); height: clamp(90px, 10vw, 140px); }
.pc-name { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; margin-top: 6px; }
.pc-balance { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.pc-balance.neg { color: var(--bad); }
.player-card.flash-up { animation: flashUp 1.4s ease; }
.player-card.flash-down { animation: flashDown 1.4s ease; }
.pc-delta { position: absolute; top: 14px; right: 16px; font-weight: 900; font-size: 1.4rem; animation: floatUp 2.2s ease forwards; }
.pc-delta.up { color: var(--good); }
.pc-delta.down { color: var(--bad); }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

.table-side { display: flex; flex-direction: column; gap: 18px; }
.pot-card { background: #fff6d6; box-shadow: inset 0 0 0 3px var(--sun), var(--shadow); text-align: center; }
.pot-label { font-weight: 800; font-size: 1.1rem; }
.pot-amount { font-size: 3rem; font-weight: 900; }
.req-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.req-line .token { width: 36px; height: 36px; }
.feed-card { max-height: calc(100vh - 220px); overflow-y: auto; }
.feed-dash .feed-text { font-size: 1.05rem; }
.feed-dash .type-auction .feed-text { font-weight: 800; }

.finished { max-width: 640px; margin: 0 auto; text-align: center; }
.finished h1 { font-size: 3rem; }
.standings-big .standing { padding: 16px 22px; }
.standings-big .token { width: 64px; height: 64px; }
.standings-big .name, .standings-big .amt { font-size: 1.6rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(61, 44, 46, .45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { position: relative; width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto; background: var(--cream); border-radius: 28px; padding: 28px; animation: pop .25s ease; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.qr-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: center; }
.qr-modal .qr { width: 100%; max-width: 320px; }
.rejoin-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.row .input { flex: 1; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.row-center { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.undo-text { font-size: 1.3rem; font-weight: 800; background: #fff; padding: 14px 18px; border-radius: var(--radius-sm); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.seg-opt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; min-height: 48px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; font-weight: 800; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt .token { width: 36px; height: 36px; }
.seg-opt:has(input:checked) { background: var(--coral); color: #fff; box-shadow: none; }
.seg-dir .seg-opt { padding: 6px 20px; }

/* Dashboard auction overlay */
.auction-overlay { position: fixed; inset: 0; z-index: 55; background: rgba(255, 248, 225, .97); display: flex; align-items: center; justify-content: center; padding: 30px; }
.auc-dash { width: 100%; max-width: 1000px; text-align: center; }
.auc-dash .auc-label { font-size: 1.3rem; padding: 8px 20px; }
.auc-dash .auc-property { font-size: clamp(2.6rem, 5vw, 4rem); }
.auc-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.auc-leader-big { display: flex; align-items: center; justify-content: center; gap: 22px; background: #fff; border-radius: 28px; padding: 26px; box-shadow: var(--shadow); text-align: left; }
.auc-leader-big .token { width: 150px; height: 150px; }
.auc-leader-big .auc-bid { font-size: clamp(3.4rem, 6vw, 5.4rem); }
.auc-leader-big .auc-leader { font-size: 1.5rem; }
.auc-ladder { list-style: none; margin: 0; padding: 14px 20px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); text-align: left; max-height: 300px; overflow: hidden; }
.auc-ladder li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 1.2rem; font-weight: 700; color: var(--muted); }
.auc-ladder li span { flex: 1; }
.auc-ladder li.top { color: var(--ink); font-size: 1.5rem; }
.auc-ladder .token { width: 40px; height: 40px; }
.auc-timer-big { height: 64px; margin: 24px 0; }
.auc-timer-big span { line-height: 64px; font-size: 1.8rem; }
.auc-dash .mini-player { font-size: 1.15rem; }
.auc-dash.auc-result .hero-cat { width: 180px; height: 180px; }
.auc-dash.auc-result .auc-sold { font-size: 3.4rem; font-weight: 900; }
.auc-dash.auc-result .auc-bid { font-size: 4rem; font-weight: 900; }

@media (max-width: 1000px) {
  .table { grid-template-columns: 1fr; }
  .feed-card { max-height: none; }
  .lobby, .qr-modal, .auc-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-main { padding: 16px; }
  .dash-bar { padding: 10px 16px; }
  .table-players, .table-players.n3, .table-players.n5, .table-players.n6 { grid-template-columns: 1fr 1fr; }
  .lobby-code { font-size: 2.6rem; }
}
