:root {
  --felt-1: #0f5a45;
  --felt-2: #083a2d;
  --felt-3: #04201a;
  --gold: #f0c56b;
  --gold-2: #c9963a;
  --cream: #fbf7ee;
  --ink: #15171c;
  --red: #d2342f;
  --text: #f3f1ea;
  --muted: rgba(243, 241, 234, .62);
  --panel: rgba(4, 26, 21, .62);
  --line: rgba(240, 197, 107, .18);
  --cw: 54px;           /* ширина карты в руке, задаётся из JS */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--felt-3);
  color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
}
#app {
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 35%, var(--felt-1) 0%, var(--felt-2) 55%, var(--felt-3) 100%);
}
#app::before { /* лёгкая фактура сукна */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hidden { display: none !important; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.gap { gap: 8px; margin-top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  font: inherit; font-weight: 800; font-size: 16px; letter-spacing: .01em;
  border: 0; border-radius: 16px; padding: 14px 18px; cursor: pointer;
  color: var(--ink); background: var(--cream);
  transition: transform .12s ease, filter .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .38; filter: grayscale(.6); pointer-events: none; }
.btn.gold {
  background: linear-gradient(180deg, #ffe09a 0%, var(--gold) 45%, var(--gold-2) 100%);
  box-shadow: 0 6px 18px rgba(240, 197, 107, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn.dark { background: rgba(0, 0, 0, .35); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.btn.ghost { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { font-size: 14px; padding: 9px 14px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn.big { font-size: 18px; padding: 17px; }
.btn.grow { flex: 1; }
.link { background: none; border: 0; color: var(--gold); font: inherit; font-weight: 700; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; position: relative;
  background: rgba(255, 255, 255, .08); color: var(--text); font-size: 18px; font-weight: 800;
}
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--felt-3);
}

/* ---------- Карта ---------- */
.card {
  position: relative; flex: none;
  width: var(--cw); height: calc(var(--cw) * 1.42);
  border-radius: calc(var(--cw) * .13);
  background: linear-gradient(160deg, #fff 0%, var(--cream) 60%, #efe7d6 100%);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 3px 8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .08);
  font-family: Manrope, sans-serif; font-weight: 800;
  transition: transform .16s cubic-bezier(.2, .9, .3, 1.3), box-shadow .16s, opacity .2s, filter .2s;
}
.card.red { color: var(--red); }
.card .r { position: absolute; left: 9%; top: 4%; font-size: calc(var(--cw) * .36); line-height: 1; letter-spacing: -.04em; }
.card .s { position: absolute; left: 10%; top: 31%; font-size: calc(var(--cw) * .28); line-height: 1; }
.card .mid { position: absolute; right: 8%; bottom: 3%; font-size: calc(var(--cw) * .56); line-height: 1; opacity: .92; }
.card.joker { background: linear-gradient(160deg, #fff 0%, #fbf3e3 100%); }
.card .jk {
  position: absolute; left: 8%; top: 7%; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: calc(var(--cw) * .17); letter-spacing: .08em; font-family: Unbounded, sans-serif;
}
.card.joker .mid { font-size: calc(var(--cw) * .6); right: 10%; bottom: 10%; }
.card.joker.black .mid { color: var(--ink); }
.card.cal { background: linear-gradient(160deg, #fff7e2, #f3dfb0); color: #6b3d0b; }
.card.cal .calico {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58%; aspect-ratio: 1; border-radius: 14%; background: #fff; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  display: flex; flex-direction: column;
}
.card.cal .calico::before { content: ""; display: block; height: 28%; background: var(--red); }
.card.cal .calico b { flex: 1; display: grid; place-items: center; font-size: calc(var(--cw) * .26); color: var(--ink); }
.card.cal .cap { position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; font-size: calc(var(--cw) * .13); letter-spacing: .04em; text-transform: uppercase; }
.card.big { --cw: 92px; }
.card.sm { --cw: 34px; }
.card.md { --cw: 46px; }

/* ---------- Вход ---------- */
#login { justify-content: center; align-items: center; overflow-y: auto; }
.login-inner { width: min(420px, 100%); padding: 24px 22px calc(24px + var(--safe-b)); text-align: center; }
.fan { position: relative; height: 150px; margin: 0 auto 6px; width: 220px; }
.fan .card { position: absolute; left: 50%; top: 10px; margin-left: -46px; animation: deal .8s cubic-bezier(.2, .8, .2, 1) both; }
.fan .c-l { transform: rotate(-16deg) translate(-38px, 12px); animation-delay: .05s; }
.fan .c-m { transform: translateY(-4px); z-index: 2; animation-delay: .18s; }
.fan .c-r { transform: rotate(16deg) translate(38px, 12px); animation-delay: .3s; }
@keyframes deal { from { opacity: 0; top: 80px; } }
.logo {
  font-family: Unbounded, sans-serif; font-weight: 800; font-size: 54px; line-height: 1; margin: 14px 0 12px;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff3cf, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45));
}
.logo span { margin-left: .04em; background: linear-gradient(180deg, #ffffff, #9fe8c8 60%, #3fb98a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { color: var(--muted); margin: 0 0 26px; font-weight: 600; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin: 0 0 6px 4px; }
.field input, .chat-form input {
  width: 100%; font: inherit; font-size: 18px; font-weight: 700; color: var(--text);
  background: rgba(0, 0, 0, .3); border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; outline: none;
  -webkit-user-select: text; user-select: text;
}
.field input:focus, .chat-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240, 197, 107, .14); }
.room-line { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.back { display: inline-block; margin-top: 22px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }

/* ---------- Шапка ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; flex: none; }
.bar-title { font-weight: 700; color: var(--muted); }
.bar-title b { color: var(--text); }
.bar-title.left { display: flex; align-items: baseline; gap: 10px; }
.brand { font-family: Unbounded, sans-serif; font-weight: 800; color: var(--gold) !important; letter-spacing: 0; }
.bar-right { display: flex; gap: 8px; }

/* ---------- Лобби ---------- */
.lobby-body { flex: 1; overflow-y: auto; padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.panel h2 { margin: 0; font-size: 17px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.invite { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invite-url { font-weight: 800; word-break: break-all; color: var(--gold); }
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.members li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.members li.me { background: rgba(240, 197, 107, .1); }
.members .nm { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.members .st { font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.members .st.ok { background: rgba(84, 214, 140, .18); color: #7cf0ae; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; position: relative;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .3);
}
.avatar.off { filter: grayscale(1) brightness(.6); }
.switch { display: flex; gap: 14px; align-items: center; cursor: pointer; }
.switch input { display: none; }
.switch .knob { width: 52px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .14); position: relative; flex: none; transition: .2s; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .knob { background: var(--gold); }
.switch input:checked + .knob::after { left: 25px; }
.rules summary { font-weight: 800; cursor: pointer; }
.rules ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lobby-foot { padding: 10px 14px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; flex: none; }

/* ---------- Стол ---------- */
.felt { position: relative; flex: 1; min-height: 0; }
.opps { position: absolute; inset: 0; pointer-events: none; }
.opp {
  position: absolute; transform: translate(-50%, -50%); width: 74px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: auto;
  transition: left .4s, top .4s;
}
.opp .ring { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; }
.opp .ring .avatar { width: 44px; height: 44px; font-size: 18px; }
.opp.turn .ring { background: conic-gradient(var(--gold) calc(var(--p, 1) * 360deg), rgba(255, 255, 255, .1) 0); box-shadow: 0 0 22px rgba(240, 197, 107, .55); }
.opp .nm { font-size: 12px; font-weight: 800; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.opp .lv { font-size: 10px; line-height: 1; letter-spacing: 1px; min-height: 10px; }
.opp .tagline { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: var(--muted); }
.opp .tagline.go { background: var(--gold); color: var(--ink); }
.opp .tagline.done { background: rgba(84, 214, 140, .25); color: #8ff5bb; }
.opp .tagline.chk { background: rgba(255, 255, 255, .14); color: #fff; }
.opp .tagline.lost { background: rgba(210, 52, 47, .35); color: #ffc0bb; }
.opp.out { opacity: .4; }
.opp .handico { position: absolute; right: 2px; bottom: 26px; width: 22px; height: 18px; }
.handico i { position: absolute; bottom: 0; left: 6px; width: 11px; height: 16px; border-radius: 2px; background: linear-gradient(135deg, #b8263a, #6d1020); border: 1px solid #f0c56b; transform-origin: 50% 100%; }
.handico i:nth-child(1) { transform: rotate(-22deg); }
.handico i:nth-child(3) { transform: rotate(22deg); }
.dealer-chip { position: absolute; left: -2px; top: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.bubble {
  position: absolute; top: -8px; left: 50%; transform: translate(-50%, -100%);
  background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 12px;
  max-width: 150px; width: max-content; z-index: 5; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); animation: pop .25s ease both;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--cream); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -80%) scale(.8); } }

.trick {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%);
  width: min(66%, 520px); height: 44%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
}
.trick .old { display: flex; flex-direction: column; align-items: center; gap: 4px; overflow-y: auto; min-height: 0; flex: 0 1 auto; width: 100%; opacity: .62; scrollbar-width: none; }
.trick .old::-webkit-scrollbar { display: none; }
.play { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: land .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.play .who { font-size: 11px; font-weight: 800; color: var(--muted); }
.play .who b { color: var(--gold); }
.play .cards { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 4px; padding-left: calc(var(--cw) * .45); }
.play .cards .card:first-child { margin-left: calc(var(--cw) * -.45); }
.play { flex: none; max-width: 100%; }
.play .cards .card + .card { margin-left: calc(var(--cw) * -.45); }
.play.last .cards .card + .card { margin-left: calc(var(--cw) * -.4); }
.play.old-row { flex-direction: row; gap: 8px; animation: none; }
.play.old-row .cards .card + .card { margin-left: calc(var(--cw) * -.55); }
@keyframes land { from { opacity: 0; transform: translateY(40px) scale(.85); } }
.empty-table { color: rgba(255, 255, 255, .22); font-family: Unbounded, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; }

.status {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: max-content; max-width: 94%; text-align: center;
  font-size: 14px; font-weight: 800; padding: 8px 14px; border-radius: 99px;
  background: rgba(0, 0, 0, .38); color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.status.mine { background: var(--gold); color: var(--ink); box-shadow: 0 0 24px rgba(240, 197, 107, .4); }

.me-zone {
  flex: none; padding: 8px 10px calc(10px + var(--safe-b));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45) 30%);
}
.me-line { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; font-weight: 800; }
.me-name { display: flex; align-items: center; gap: 8px; }
.me-lives { font-size: 13px; }
.timebar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 0 4px 8px; }
.timebar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ffe7a8); border-radius: 4px; }
.timebar.low i { background: linear-gradient(90deg, var(--red), #ff8a6b); }
.hand { position: relative; min-height: calc(var(--cw) * 1.42 + 18px); padding-top: 16px; }
.hand .hrow { display: flex; justify-content: center; }
.hand .hrow + .hrow { margin-top: calc(var(--cw) * -.62); }
.hand .card { cursor: pointer; }
.hand .card.sel { transform: translateY(-16px); box-shadow: 0 0 0 2.5px var(--gold), 0 10px 18px rgba(0, 0, 0, .45); }
.hand .card.dim { filter: brightness(.55) saturate(.6); }
.hand .card.newcard { animation: glow 1.6s ease 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px #7cf0ae, 0 0 22px #7cf0ae; } }
.hand .spect { text-align: center; color: var(--muted); font-weight: 700; padding: 18px 8px; }
.actions { display: flex; gap: 10px; margin-top: 10px; }
.actions .btn { padding: 15px 14px; }
#checkBtn { min-width: 96px; }

/* ---------- Листы, окна, тосты ---------- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-height: 72%;
  display: flex; flex-direction: column;
  background: #06221b; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; isolation: isolate;
  padding: 12px 14px calc(12px + var(--safe-b)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
  animation: up .25s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 17px; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; min-height: 160px; padding: 4px 0 8px; -webkit-user-select: text; user-select: text; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 15px; line-height: 1.35; word-wrap: break-word; align-self: flex-start; }
.msg b { display: block; font-size: 12px; color: var(--gold); margin-bottom: 1px; }
.msg.mine { align-self: flex-end; background: rgba(240, 197, 107, .2); }
.msg.sys { align-self: center; background: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 2px; }
.emojis { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.emojis button { font-size: 22px; border: 0; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 6px 9px; cursor: pointer; flex: none; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { font-size: 16px; padding: 12px 14px; }
.help-body { overflow-y: auto; }
.help-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.help-body th, .help-body td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-body th { color: var(--gold); }
.help-body td:first-child { font-weight: 800; white-space: nowrap; }

.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(400px, 100%); text-align: center; padding: 26px 20px 20px; border-radius: 26px;
  background: linear-gradient(180deg, #0f4b3b, #062a21); border: 1px solid rgba(240, 197, 107, .35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6); animation: pop2 .35s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes pop2 { from { transform: scale(.85); opacity: 0; } }
.modal h3 { font-family: Unbounded, sans-serif; font-size: 22px; margin: 6px 0 8px; color: var(--gold); }
.modal p { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.modal .bigemoji { font-size: 54px; line-height: 1; }
.modal .order { list-style: none; padding: 0; margin: 12px 0 16px; text-align: left; }
.modal .order li { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; font-weight: 800; }
.modal .order li:nth-child(odd) { background: rgba(255, 255, 255, .05); }
.modal .order .pl { margin-left: auto; font-size: 12px; color: var(--muted); }
.countdown { font-family: Unbounded, sans-serif; font-size: 96px; color: var(--gold); text-shadow: 0 8px 30px rgba(0, 0, 0, .5); animation: pop2 .4s both; }

.toasts { position: fixed; left: 0; right: 0; top: 31%; z-index: 35; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast {
  max-width: 90%; padding: 9px 16px; border-radius: 99px; font-weight: 800; font-size: 14px; text-align: center;
  background: rgba(10, 14, 12, .86); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  animation: tin .3s cubic-bezier(.2, .9, .3, 1.3) both;
}
.toast.gold { background: var(--gold); color: var(--ink); }
.toast.err { background: var(--red); color: #fff; }
.toast.bye { animation: tout .3s ease both; }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }
.conn { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 50; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 99px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (min-width: 700px) {
  :root { --cw: 64px; }
  .opp { width: 92px; }
  .opp .ring { width: 60px; height: 60px; }
  .opp .ring .avatar { width: 54px; height: 54px; }
  .opp .nm { font-size: 14px; max-width: 92px; }
  #table .me-zone, #table .felt { width: 100%; max-width: 900px; margin: 0 auto; }
  .lobby-body, .lobby-foot { width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-height: 640px) {
  .opp .ring { width: 42px; height: 42px; }
  .opp .ring .avatar { width: 37px; height: 37px; font-size: 15px; }
  .actions .btn { padding: 12px; }
}
