/* ═══════════ Monopoly Car ═══════════ */
:root {
  --red: #b3121b;
  --red-d: #6d0a10;
  --red-l: #e0323b;
  --gold: #f5c24c;
  --gold-d: #b5822a;
  --cream: #f3e6cf;
  --ink: #2b1a12;
  --paper: #efe2c6;
  --cw: 40px;          /* ширина клетки, пересчитывается в JS */
  --ch: 70px;          /* глубина клетки */
  --tag: 18px;         /* ценник снаружи */
  font-family: 'Exo 2', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: #7cb6e6 url('/img/bg.jpg') center top / cover fixed no-repeat;
  font-size: 14px;
}
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

/* ── кнопки ── */
.btn-gold, .btn-red, .btn-dark, .btn-green, .btn-grey, .btn-mini {
  border: 0; border-radius: 6px; padding: 8px 16px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 0 rgba(0,0,0,.35);
  transition: filter .15s, transform .05s;
}
.btn-gold { background: linear-gradient(#ffe08a, #f0a92b 55%, #c9781a); color: #4a2600; }
.btn-red { background: linear-gradient(#ef4a4f, #b3121b 60%, #800b11); color: #fff; }
.btn-dark { background: linear-gradient(#5b2a1c, #3a160c); color: var(--gold); }
.btn-green { background: linear-gradient(#b8f08e, #6ccb3e 55%, #3e9a1d); color: #173d05; }
.btn-grey { background: linear-gradient(#f2f2f2, #c9c9c9); color: #333; }
.btn-mini { padding: 3px 10px; font-size: 11px; background: linear-gradient(#ffd36b, #d18a20); color: #4a2600; }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:disabled { filter: grayscale(.8) opacity(.6); cursor: default; }
.big { font-size: 18px; padding: 12px 34px; }

/* ── панели ── */
.panel-red {
  background: linear-gradient(#c2161f, #8d0d14);
  border: 2px solid var(--gold-d); border-radius: 10px; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.15);
}
.frame {
  width: min(960px, 96vw); margin: 0 auto 14px;
  background: linear-gradient(#a3111a, #7a0c12); border: 3px solid var(--gold-d); border-radius: 14px;
  padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* ── шапка ── */
#site { min-height: 100vh; display: flex; flex-direction: column; }
header.top { width: min(960px, 96vw); margin: 12px auto 10px; display: flex; align-items: flex-end; gap: 16px; position: relative; min-height: 150px; }
.logo { margin-left: auto; text-decoration: none; display: block; }
.logo img { display: block; max-height: 150px; max-width: 520px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.logo img + .logo-text { display: none; }
.logo-text { display: flex; flex-direction: column; align-items: flex-end; line-height: .9; }
.logo-main { font-family: 'Russo One', sans-serif; font-size: 64px; color: #ff3b30; -webkit-text-stroke: 3px #fff3c4;
  text-shadow: 0 5px 0 #7a0c12, 0 8px 18px rgba(0,0,0,.4); letter-spacing: 2px; }
.logo-sub { font-family: 'Russo One', sans-serif; font-size: 40px; color: var(--gold); text-shadow: 0 3px 0 #7a4a00; margin-right: 8px; }

.login, .profile { width: 330px; padding: 10px 14px; }
.login-title { font-family: 'Russo One'; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.login label { display: flex; justify-content: space-between; align-items: center; margin: 5px 0; font-weight: 600; }
.login input { width: 190px; padding: 5px 8px; border-radius: 5px; border: 1px solid #5a0a0f; background: #fff7e4; }
.auth-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.auth-err { color: #ffd2d2; min-height: 16px; font-size: 12px; }

.profile-row { display: flex; gap: 10px; align-items: flex-start; }
.avatar { width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--gold); background: #3a0a0c center/cover;
  display: grid; place-items: center; font: 30px 'Russo One'; color: var(--gold); flex: none; }
.profile-info { flex: 1; }
.nick { font-family: 'Russo One'; font-size: 18px; color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.stats div { background: rgba(0,0,0,.25); border-radius: 5px; padding: 3px 4px; text-align: center; }
.stats span { display: block; font-size: 10px; opacity: .85; }
.stats b { font-size: 15px; }

/* ── гость ── */
.hero { background: var(--paper); border-radius: 10px; padding: 24px 30px; }
.hero h1 { font-family: 'Russo One'; color: var(--red); margin: 0 0 10px; }
.hero p { font-size: 16px; line-height: 1.5; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; list-style: none; }
.features li { background: #fff8e8; border-left: 4px solid var(--red); padding: 8px 12px; border-radius: 4px; }

/* ── лобби ── */
.big-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px; }
.big-tabs button {
  border: 0; border-radius: 8px; padding: 14px 6px; color: #fff3cf; font: 20px 'Russo One', sans-serif;
  background: linear-gradient(#c3161f, #7e0b11); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; gap: 10px; text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.big-tabs button i { font-style: normal; font-size: 28px; }
.big-tabs button.active { background: linear-gradient(#e33a42, #a5111a); outline: 2px solid var(--gold); }

.games-box { background: var(--paper); border-radius: 8px; min-height: 230px; max-height: 300px; overflow: auto; padding: 8px; }
.games-list { display: flex; flex-direction: column; gap: 6px; }
.game-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-bottom: 1px dashed rgba(0,0,0,.15); }
.slots { flex: 1; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.slot { width: 104px; height: 32px; border-radius: 4px; display: grid; place-items: center; font-weight: 600;
  background: linear-gradient(#fffaf0, #e2d2b2); border: 1px solid #c8b48c; box-shadow: 0 2px 0 rgba(0,0,0,.15);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 6px; }
.slot.empty { color: #3cab1e; font-size: 26px; font-weight: 800; cursor: pointer; }
.slot.empty:hover { background: linear-gradient(#f4ffe8, #cbe7b2); }
.slot.me { background: linear-gradient(#fff2b8, #f1c85a); }
.slot.dead { text-decoration: line-through; opacity: .55; }
.row-btn { width: 110px; }
.lock { font-size: 18px; }
.empty-list { text-align: center; padding: 40px; color: #7a5b40; font-size: 16px; }
.game-row .time { width: 70px; text-align: right; font-size: 12px; color: #7a5b40; }

.rating-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rating-cols h3 { font-family: 'Russo One'; color: var(--red); margin: 4px 0 8px; }
.rating-cols ol { margin: 0; padding-left: 26px; }
.rating-cols li { padding: 3px 0; border-bottom: 1px dotted rgba(0,0,0,.15); display: flex; justify-content: space-between; }

.create-form { display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 20px; }
.create-row { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.create-row input[name=password] { padding: 6px 10px; border-radius: 5px; border: 1px solid #b59a6e; width: 220px; }
.seg { display: flex; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label { width: 44px; height: 40px; display: grid; place-items: center; border-radius: 6px; font: 20px 'Russo One';
  background: linear-gradient(#fffaf0, #e2d2b2); border: 1px solid #c8b48c; cursor: pointer; }
.seg label:has(input:checked) { background: linear-gradient(#ffe08a, #f0a92b); border-color: var(--gold-d); }

.chat-box { display: grid; grid-template-columns: 1fr 230px; gap: 8px; margin-top: 8px; }
.chat-main { background: var(--paper); border-radius: 8px; display: flex; flex-direction: column; height: 260px; }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 10px; font-size: 13px; }
.chat-log .m { margin: 2px 0; word-wrap: break-word; }
.chat-log .t { color: #8a7259; font-size: 11px; }
.chat-log .f { font-weight: 800; color: var(--red); cursor: pointer; }
.chat-log .m.priv { background: rgba(245,194,76,.25); border-radius: 4px; }
.chat-form { display: flex; gap: 4px; padding: 6px; border-top: 1px solid rgba(0,0,0,.1); align-items: center; }
.chat-form input { flex: 1; padding: 6px 8px; border-radius: 5px; border: 1px solid #c8b48c; background: #fffaf0; }
.chat-to { background: var(--gold); border-radius: 4px; padding: 2px 6px; font-size: 12px; cursor: pointer; }
.online { background: linear-gradient(#5b2a1c, #3a160c); border-radius: 8px; color: #f3e6cf; display: flex; flex-direction: column; height: 260px; }
.online-head { padding: 8px 10px; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; color: var(--gold); }
.online ul { list-style: none; margin: 0; padding: 4px 8px; overflow-y: auto; flex: 1; }
.online li { padding: 2px 0; cursor: pointer; display: flex; justify-content: space-between; }
.online li small { color: #c9a77a; }
.online li.ingame::before { content: '🏁 '; }
.foot { text-align: center; color: #fff; text-shadow: 0 1px 2px #000; padding: 10px; margin-top: auto; font-size: 12px; }

/* ═══════════ ИГРОВОЕ ПОЛЕ ═══════════ */
#playfield {
  position: fixed; inset: 0; overflow: auto;
  background: #141414 url('/img/game-bg.jpg') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.board-wrap { position: relative; padding: var(--tag); }
.board {
  display: grid;
  grid-template-columns: var(--ch) repeat(10, var(--cw)) var(--ch);
  grid-template-rows: var(--ch) repeat(7, var(--cw)) var(--ch);
  background: #2a2a2a; border: 3px solid #3c3c3c; border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 20px 50px rgba(0,0,0,.6);
}
.cell {
  position: relative; border: 1px solid #8b8b8b;
  background: linear-gradient(135deg, #fdfdfd, #d4d6d9 45%, #f2f3f4 55%, #bfc2c6);
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: visible; cursor: pointer;
  user-select: none;
}
.cell:hover { filter: brightness(1.06); z-index: 2; box-shadow: 0 0 0 2px var(--gold); }
.cell .label { font-weight: 800; color: #222; line-height: 1; pointer-events: none; }
.cell.top .label, .cell.bottom .label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: calc(var(--cw) * .32); }
.cell.left .label, .cell.right .label { font-size: calc(var(--cw) * .32); }
.cell img.brand { max-width: 88%; max-height: 88%; object-fit: contain; pointer-events: none; }
.cell.top img.brand, .cell.bottom img.brand { max-width: 80%; }
.cell .ico { font-size: calc(var(--cw) * .7); pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.cell.corner .ico { font-size: calc(var(--ch) * .55); }
.cell.corner .label { writing-mode: horizontal-tb; transform: none; position: absolute; bottom: 3px; font-size: calc(var(--cw) * .26); }
.cell.corner { flex-direction: column; }

/* ценники снаружи поля */
.tag { position: absolute; display: grid; place-items: center; font-weight: 800; font-size: calc(var(--tag) * .62); color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.6); pointer-events: none; white-space: nowrap; }
.cell.top .tag { left: 1px; right: 1px; top: calc(-1 * var(--tag) - 2px); height: var(--tag); border-radius: 3px 3px 0 0; }
.cell.bottom .tag { left: 1px; right: 1px; bottom: calc(-1 * var(--tag) - 2px); height: var(--tag); border-radius: 0 0 3px 3px; }
.cell.left .tag { top: 1px; bottom: 1px; left: calc(-1 * var(--tag) - 2px); width: var(--tag); writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 3px 3px 0; }
.cell.right .tag { top: 1px; bottom: 1px; right: calc(-1 * var(--tag) - 2px); width: var(--tag); writing-mode: vertical-rl; border-radius: 0 3px 3px 0; }
.tag.owned { outline: 2px solid rgba(255,255,255,.8); }

/* полоска группы у внутреннего края */
.cell .stripe { position: absolute; pointer-events: none; }
.cell.top .stripe { left: 0; right: 0; bottom: 0; height: 5px; }
.cell.bottom .stripe { left: 0; right: 0; top: 0; height: 5px; }
.cell.left .stripe { top: 0; bottom: 0; right: 0; width: 5px; }
.cell.right .stripe { top: 0; bottom: 0; left: 0; width: 5px; }

.cell .stars { position: absolute; pointer-events: none; font-size: calc(var(--cw) * .3); color: #ffb300; text-shadow: 0 0 2px #000; line-height: 1; }
.cell.top .stars { bottom: 6px; left: 0; right: 0; }
.cell.bottom .stars { top: 6px; left: 0; right: 0; }
.cell.left .stars { right: 7px; top: 2px; writing-mode: vertical-rl; }
.cell.right .stars { left: 7px; top: 2px; writing-mode: vertical-rl; }
.cell .pledge { position: absolute; inset: 0; background: rgba(40,40,40,.55); display: grid; place-items: center; color: #ffd54f;
  font-weight: 800; font-size: calc(var(--cw) * .38); pointer-events: none; }
.cell .pledge::before { content: '🔒'; display: block; font-size: calc(var(--cw) * .45); }
.cell.dim { filter: grayscale(1) brightness(.6); }
.cell.pick { box-shadow: 0 0 0 3px #4caf50 inset; }
.cell.picked { box-shadow: 0 0 0 4px #ffeb3b inset; }

/* центр */
.center {
  grid-row: 2 / 9; grid-column: 2 / 12; margin: 6px; border-radius: 6px;
  background: linear-gradient(#262626, #161616); border: 2px solid #4a4a4a;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 8px; color: #eee; min-height: 0; overflow: hidden;
}
.center-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9ccc65; }
.center-top b { color: #fff; }
.players { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard { flex: 1 1 0; min-width: 120px; display: flex; gap: 6px; align-items: center; padding: 5px; border-radius: 6px;
  background: linear-gradient(#3a3a3a, #262626); border: 2px solid #444; position: relative; }
.pcard.turn { border-color: var(--gold); box-shadow: 0 0 12px rgba(245,194,76,.6); }
.pcard.dead { opacity: .4; filter: grayscale(1); }
.pcard .chip { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset -3px -3px 6px rgba(0,0,0,.45), inset 3px 3px 6px rgba(255,255,255,.4), 0 1px 3px #000; }
.pcard .pn { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pm { font-size: 12px; color: #ffd54f; white-space: nowrap; }
.pcard .pm i { font-style: normal; color: #9ccc65; margin-left: 6px; }
.pcard .badge { position: absolute; top: -7px; right: 4px; font-size: 13px; }
.pcard .off { color: #ef5350; font-size: 10px; }
.timerbar { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.timerbar div { height: 100%; background: linear-gradient(90deg, #ef5350, #ffca28, #66bb6a); transform-origin: left; }

.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; }

.action { display: flex; flex-direction: column; gap: 6px; justify-content: center; min-height: 0; overflow: auto; }
.action .msg { text-align: center; font-size: 13px; color: #ddd; }
.action .msg b { color: var(--gold); }
.action button { width: 100%; padding: 10px; font-size: 14px; }
.action .row { display: flex; gap: 6px; }
.action .sub { display: block; font-size: 10px; text-transform: none; font-weight: 600; opacity: .85; }

.g-bottom { display: grid; grid-template-rows: 1fr auto; min-height: 0; height: calc(var(--cw) * 2.6); background: #0e0e0e; border-radius: 6px; border: 1px solid #333; }
.g-log { overflow-y: auto; padding: 4px 8px; font-size: 12px; line-height: 1.35; }
.g-log .good { color: #9ccc65; } .g-log .warn { color: #ffb74d; } .g-log .bad { color: #ef5350; font-weight: 800; }
.g-log .chat b { color: var(--gold); }
.g-chat { display: flex; gap: 4px; padding: 4px; }
.g-chat input { flex: 1; padding: 4px 8px; border-radius: 4px; border: 1px solid #444; background: #1d1d1d; color: #eee; }
.g-chat button { padding: 4px 12px; }

/* фишки */
.tokens { position: absolute; inset: 0; pointer-events: none; }
.token { position: absolute; width: calc(var(--cw) * .5); height: calc(var(--cw) * .5); border-radius: 50%;
  box-shadow: inset -3px -3px 6px rgba(0,0,0,.45), inset 3px 3px 6px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.7);
  border: 2px solid #fff; transition: left .16s ease-out, top .16s ease-out; z-index: 5; }
.token.jump { transition: left .45s cubic-bezier(.3,1.6,.6,1), top .45s cubic-bezier(.3,1.6,.6,1); }

/* модалки */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; }
.modal-card { background: linear-gradient(#3b3b3b, #1f1f1f); color: #eee; border: 2px solid #666; border-radius: 10px; padding: 14px;
  min-width: 300px; max-width: min(720px, 94vw); max-height: 90vh; overflow: auto; position: relative; box-shadow: 0 20px 60px #000; }
.modal-card h3 { margin: 0 0 10px; font-family: 'Russo One'; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.modal-card .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #aaa; font-size: 20px; }
.fcard { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fcard .logo-box { grid-column: 1 / -1; background: linear-gradient(135deg, #fff, #cfd2d6); border-radius: 6px; height: 70px; display: grid; place-items: center;
  font: 26px 'Russo One'; color: #222; border-bottom: 6px solid var(--gc, #999); }
.fcard .logo-box img { max-height: 60px; max-width: 80%; }
.kv { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dotted #555; font-size: 13px; }
.kv.cur { color: var(--gold); font-weight: 800; }
.fcard .btns { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.fcard .btns button { flex: 1; }
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade h4 { margin: 4px 0; color: var(--gold); }
.trade .list { max-height: 260px; overflow-y: auto; background: #111; border-radius: 6px; padding: 4px; }
.trade label.it { display: flex; gap: 6px; align-items: center; padding: 3px 4px; border-radius: 4px; font-size: 13px; }
.trade label.it:hover { background: #222; }
.trade label.it i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.trade label.it small { margin-left: auto; color: #aaa; }
.trade input[type=number] { width: 100%; padding: 5px; background: #111; border: 1px solid #555; color: #fff; border-radius: 4px; margin-top: 6px; }
.trade-sum { grid-column: 1 / -1; text-align: center; font-size: 13px; }
.trade-sum.bad { color: #ef5350; }
.trade select { width: 100%; padding: 5px; background: #111; color: #fff; border: 1px solid #555; border-radius: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #b3121b; color: #fff; padding: 10px 18px;
  border-radius: 8px; border: 2px solid var(--gold); z-index: 100; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.5); }

.winner { text-align: center; padding: 10px 20px; }
.winner .cup { font-size: 70px; }
.winner h2 { font-family: 'Russo One'; color: var(--gold); margin: 6px 0; }

@media (max-width: 760px) {
  header.top { flex-direction: column-reverse; align-items: center; }
  .logo { margin: 0; }
  .big-tabs { grid-template-columns: 1fr 1fr; }
  .big-tabs button { font-size: 15px; }
  .chat-box { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}

/* ── компоновка игрового экрана (как в оригинале: поле + карточки справа) ── */
#playfield { gap: 18px; }
.center { grid-template-rows: 1fr; grid-template-columns: 1.3fr 1fr; padding: 10px; gap: 10px; }
.center .g-bottom { height: auto; position: relative; }
.side { width: 230px; align-self: center; display: flex; flex-direction: column; gap: 8px; }
.game-clock { color: #9ccc65; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.game-clock > div { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.game-clock b { color: #fff; }
.side .players { flex-direction: column; }
.side .pcard { flex: none; flex-direction: row; padding: 8px; min-height: 76px; }
.side .pcard .ava { width: 56px; height: 56px; border-radius: 6px; background: #111 center/cover; display: grid; place-items: center;
  font: 24px 'Russo One'; color: #fff; flex: none; border: 2px solid #555; }
.side .pcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.side .pcard .pn { background: #111; border-radius: 3px; padding: 2px 6px; font-size: 12px; }
.side .pcard .money { background: #111; border-radius: 3px; padding: 2px 6px; font-size: 12px; color: #ffd54f; font-weight: 800; }
.side .pcard .money.cap { color: #9ccc65; }
.side .pcard .chip { position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; }
.side .pcard .status { font-size: 11px; color: #ffb74d; }
@media (max-width: 1100px) { #playfield { flex-direction: column; } .side { width: auto; align-self: stretch; padding: 0 10px; }
  .side .players { flex-direction: row; } .side .pcard { flex: 1 1 0; } }

/* ── фикс: подписи клеток поворачиваем трансформом, чтобы не раздувать сетку ── */
.cell { min-width: 0; min-height: 0; }
.cell .label { writing-mode: horizontal-tb !important; transform: none; white-space: nowrap;
  font-size: min(calc(var(--cw) * .34), calc(var(--ch) * var(--k, .2))) !important; }
.cell.top .label, .cell.bottom .label { position: absolute; left: 50%; top: 50%; width: var(--ch); text-align: center;
  transform: translate(-50%, -50%) rotate(-90deg) !important; }
.cell.left .label, .cell.right .label { width: 100%; padding: 0 6px; }
.cell.corner .label { position: absolute; left: 0; right: 0; bottom: 4px; width: auto; transform: none !important; font-size: calc(var(--cw) * .27) !important; }
.cell.top img.brand, .cell.bottom img.brand { position: absolute; left: 50%; top: 50%; max-width: calc(var(--ch) * .85); max-height: calc(var(--cw) * .85);
  transform: translate(-50%, -50%) rotate(-90deg); }
#playfield { align-items: safe center; justify-content: safe center; }
.board-wrap, .side { margin: auto 0; }
.side { color: #eee; }
.cell.corner .label { font-size: calc(var(--cw) * .22) !important; white-space: normal; line-height: 1.05; }
.cell .icon-img { width: min(calc(var(--cw) * .95), 92%); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.cell.corner .icon-img { width: calc(var(--ch) * .68); margin-bottom: calc(var(--cw) * .2); }
.cell.left .icon-img, .cell.right .icon-img { width: auto; height: 92%; }
.cell.top img.brand.sq, .cell.bottom img.brand.sq { transform: translate(-50%, -50%); max-width: calc(var(--cw) * .85); max-height: calc(var(--ch) * .6); }
.cell.left img.brand, .cell.right img.brand { max-height: 80%; max-width: 86%; }

/* ═══════════ SKIN: потёртый металл, тени, блики (стиль игрового стола) ═══════════ */
#playfield {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.75) 100%),
    url('/img/tex/metal-dark.jpg') 0 0 / 640px repeat, #1a1a1a;
}

/* рамка поля */
.board {
  background: url('/img/tex/metal-mid.jpg') center / 640px repeat, #3a3a3a;
  border: 0; border-radius: 8px; padding: 0;
  box-shadow:
    0 0 0 1px #0b0b0b,
    0 0 0 6px #2c2c2c,
    0 0 0 7px rgba(255,255,255,.12),
    0 0 0 9px #111,
    0 25px 60px rgba(0,0,0,.85),
    inset 0 0 0 1px rgba(255,255,255,.08);
}
.board-wrap::before, .board-wrap::after {
  content: ''; position: absolute; pointer-events: none; z-index: 4; mix-blend-mode: screen;
  width: calc(var(--cw) * 4); height: calc(var(--cw) * .9); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(160,215,255,.95) 0, rgba(70,150,255,.55) 18%, rgba(40,100,255,.12) 45%, transparent 70%);
  filter: blur(1px);
}
.board-wrap::before { left: calc(var(--tag) + var(--ch) + var(--cw) * 6.2); top: calc(var(--tag) - var(--cw) * .45); }
.board-wrap::after  { left: calc(var(--tag) + var(--ch) - var(--cw) * 2); bottom: calc(var(--tag) - var(--cw) * .45); }
.board::before { content: ''; position: absolute; pointer-events: none; z-index: 4; mix-blend-mode: screen;
  right: calc(-1 * var(--cw) * .5); top: calc(var(--ch) + var(--cw) * 3); width: calc(var(--cw) * 1); height: calc(var(--cw) * 3); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(160,215,255,.7), rgba(60,130,255,.25) 35%, transparent 70%); }
.board { position: relative; }

/* клетки */
.cell {
  border: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.08) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.22) 100%),
    url('/img/tex/metal-light.jpg') var(--bx, 0) var(--by, 0) / 420px repeat, #c9cbce;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.85),
    inset -1px -1px 0 rgba(0,0,0,.45),
    inset 0 0 14px rgba(0,0,0,.22),
    0 0 0 1px #1b1b1b;
}
.cell.corner {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.35), rgba(0,0,0,.25)),
    url('/img/tex/metal-light.jpg') var(--bx, 0) var(--by, 0) / 420px repeat, #c4c6c9;
}
.cell:hover { filter: brightness(1.08); box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,200,60,.9), 0 0 0 1px #1b1b1b; }
.cell img.brand { mix-blend-mode: multiply; filter: contrast(1.08) saturate(.92); }
.cell .label { color: #262626; text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 -1px 0 rgba(0,0,0,.15); font-family: 'Russo One', sans-serif; font-weight: 400; letter-spacing: .3px; }
/* иконки спецклеток — тёмные, выдавленные в металле */
.cell .icon-img {
  filter: grayscale(1) brightness(.33) contrast(1.9)
          drop-shadow(0 1px 0 rgba(255,255,255,.75)) drop-shadow(0 -1px 0 rgba(0,0,0,.35));
  opacity: .92;
}
.cell .stripe { opacity: .9; box-shadow: 0 0 4px rgba(0,0,0,.4); }

/* ценники */
.tag {
  font-family: 'Exo 2', sans-serif; font-weight: 800; letter-spacing: .2px;
  background-image: linear-gradient(rgba(255,255,255,.38), rgba(255,255,255,.08) 48%, rgba(0,0,0,.08) 52%, rgba(0,0,0,.28)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.7);
  text-shadow: 0 1px 1px rgba(0,0,0,.85);
  filter: saturate(.8) brightness(.95);
  border: 1px solid rgba(0,0,0,.45);
}
.tag.owned { outline: 0; filter: saturate(1) brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 8px rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.7); }

/* центр: утопленная тёмная панель */
.center {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25)),
    url('/img/tex/metal-dark.jpg') 0 0 / 640px repeat, #222;
  border: 1px solid #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), inset 0 6px 18px rgba(0,0,0,.85), 0 1px 0 rgba(255,255,255,.35);
}
.center .g-bottom {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.06), transparent 60%), #0b0b0b;
  border: 1px solid #000; border-radius: 4px;
  box-shadow: inset 0 3px 12px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.12);
}
.g-log { color: #d7d7d7; text-shadow: 0 1px 0 #000; }
.g-chat input { background: #151515; border-color: #2c2c2c; box-shadow: inset 0 2px 4px #000; }

/* кнопки как на игровом столе: глянец сверху, тень снизу */
.action button, .modal-card button:not(.x), .btn-mini {
  position: relative; border: 1px solid rgba(0,0,0,.75) !important; border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 6px rgba(0,0,0,.25), 0 2px 5px rgba(0,0,0,.8);
  text-shadow: 0 1px 0 rgba(255,255,255,.4); font-family: 'Exo 2', sans-serif; font-weight: 800;
}
.action button::after, .modal-card button:not(.x)::after {
  content: ''; position: absolute; left: 1px; right: 1px; top: 1px; height: 48%; border-radius: 4px 4px 40% 40% / 4px 4px 8px 8px;
  background: linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.08)); pointer-events: none;
}
.btn-green { background: linear-gradient(#a7e07e, #6fbf46 50%, #4e9a2a 51%, #67b53a); color: #183a06; }
.btn-grey  { background: linear-gradient(#f0f0f0, #cfcfcf 50%, #b5b5b5 51%, #d0d0d0); color: #2b2b2b; }
.btn-gold  { background: linear-gradient(#ffd27a, #f0a22e 50%, #d47f12 51%, #eb9a28); color: #3f2100; }
.btn-red   { background: linear-gradient(#f59a9a, #e06666 50%, #c94848 51%, #dc6060); color: #3a0606; }
.btn-red, .btn-red .sub { text-shadow: 0 1px 0 rgba(255,255,255,.35); }

/* карточки игроков */
.side .pcard {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.25)), url('/img/tex/metal-mid.jpg') var(--bx, 0) 0 / 640px repeat, #3d3d3d;
  border: 1px solid #0d0d0d; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.75);
  padding: 9px 9px 14px;
}
.side .pcard.turn { border-color: #0d0d0d; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px rgba(255,196,70,.85), 0 0 18px rgba(255,196,70,.45), 0 4px 12px rgba(0,0,0,.75); }
.side .pcard .ava { border: 2px solid #111; box-shadow: 0 0 0 1px rgba(255,255,255,.25), inset 0 0 12px rgba(0,0,0,.6); border-radius: 4px;
  background-image: linear-gradient(135deg, rgba(255,255,255,.35), transparent 45%, rgba(0,0,0,.35)); text-shadow: 0 2px 3px rgba(0,0,0,.6); }
.side .pcard .pn, .side .pcard .money { background: #141414; border: 1px solid #000; box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255,255,255,.18); border-radius: 3px; }
.side .pcard .pn { color: #e8e8e8; }
.side .pcard .money { color: #f4c542; }
.side .pcard .money.cap { color: #f4c542; }
.timerbar { left: 9px; right: 9px; bottom: 4px; height: 6px; border-radius: 3px; background: #111; box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,.2); }
.timerbar div { background: linear-gradient(#ff8a80, #d32f2f 50%, #b71c1c 51%, #e53935); border-radius: 3px; }
.pcard.turn .timerbar div { background: linear-gradient(#b9f6a0, #5cbf2a 50%, #3f9a14 51%, #55b726); }
.game-clock { text-shadow: 0 1px 0 #000; }

/* фишки — стеклянные шарики */
.token { border: 0; box-shadow: inset -3px -4px 6px rgba(0,0,0,.55), inset 2px 3px 5px rgba(255,255,255,.75), 0 3px 5px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6); }

/* окна: металлическая пластина с заклёпками */
.modal { background: rgba(0,0,0,.5); }
.modal-card {
  background:
    radial-gradient(circle at 18px 18px, #f2f2f2 0 3px, #8a8a8a 4px 6px, #3a3a3a 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 18px) 18px, #f2f2f2 0 3px, #8a8a8a 4px 6px, #3a3a3a 7px, transparent 8px),
    radial-gradient(circle at 18px calc(100% - 18px), #f2f2f2 0 3px, #8a8a8a 4px 6px, #3a3a3a 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), #f2f2f2 0 3px, #8a8a8a 4px 6px, #3a3a3a 7px, transparent 8px),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.3)),
    url('/img/tex/metal-dark.jpg') 0 0 / 640px repeat, #262626;
  border: 1px solid #000; border-radius: 10px; padding: 26px 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 2px rgba(255,255,255,.05), 0 0 0 3px #111, 0 30px 80px rgba(0,0,0,.9);
}
.modal-card .x { width: 28px; height: 28px; border-radius: 50%; top: 10px; right: 10px; z-index: 5; color: #fff; font-size: 14px; line-height: 1; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #8a8a8a, #2a2a2a); border: 2px solid #d6d6d6; box-shadow: 0 2px 6px #000; }
.modal-card h3 { font-family: Georgia, 'Times New Roman', serif; color: #fff; text-shadow: 0 1px 0 #000, 0 0 10px rgba(255,255,255,.15); }
.fcard .logo-box {
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(0,0,0,.15)), url('/img/tex/metal-light.jpg') 0 0 / 420px, #ccc;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0,0,0,.4), 0 2px 6px #000; border-bottom-width: 5px;
}
.fcard .logo-box img { mix-blend-mode: multiply; }
.kv { border-bottom: 1px solid rgba(255,255,255,.07); box-shadow: 0 1px 0 rgba(0,0,0,.6); }
.trade .list, .trade select, .trade input[type=number] { background: #101010; box-shadow: inset 0 2px 6px #000; border-color: #000; }

/* итог партии */
.winner { padding: 0; min-width: 420px; }
.winner .plate-top, .winner .plate-bottom {
  margin: -26px -34px 0; padding: 26px 34px 18px; text-align: center; border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,0,0,.15)), url('/img/tex/metal-mid.jpg') 0 0 / 640px, #777;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.15);
}
.winner .plate-bottom { margin: 0 -34px -26px; border-radius: 0 0 10px 10px; padding: 20px 34px 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.winner h2 { font: 20px Georgia, serif; color: #fff; text-shadow: 0 1px 2px #000; margin: 6px 0; }
.winner .glow { height: 2px; margin: 0 -34px; background: linear-gradient(90deg, transparent, #9fd2ff 30%, #fff 50%, #9fd2ff 70%, transparent); box-shadow: 0 0 12px #5aa9ff; }
.winner .res { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; text-align: left; padding: 18px 10px; color: #bbb; font: 13px Georgia, serif; }
.winner .res b { color: #fff; }
.winner .engraved { font: 26px Georgia, serif; letter-spacing: 2px; color: #d8d8d8; margin-top: 14px;
  text-shadow: 0 -1px 0 rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.35); background: linear-gradient(#fff, #8d8d8d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── лобби: кожа со строчкой, бумага с тенью ── */
.frame {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)), url('/img/tex/metal-dark.jpg') 0 0 / 640px, #8d0f17;
  background-blend-mode: normal, overlay, normal;
  outline: 1px dashed rgba(255,214,140,.45); outline-offset: -7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 30px rgba(0,0,0,.45), 0 12px 34px rgba(0,0,0,.55);
}
.panel-red {
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.25)), url('/img/tex/metal-dark.jpg') 0 0 / 640px, #a3121b;
  background-blend-mode: normal, overlay, normal;
  outline: 1px dashed rgba(255,214,140,.45); outline-offset: -5px;
}
.games-box, .chat-main, .hero {
  background: radial-gradient(ellipse at center, #f6ead2 40%, #e6d3ac 100%);
  box-shadow: inset 0 0 24px rgba(120,80,30,.35), inset 0 2px 4px rgba(0,0,0,.35);
}
.big-tabs button {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 50%, rgba(0,0,0,.18)), url('/img/tex/metal-dark.jpg') 0 0 / 640px, #b5141d;
  background-blend-mode: normal, overlay, normal;
  border: 1px solid #4a0508; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 6px rgba(0,0,0,.4);
}
.big-tabs button.active { outline: 2px solid #f5c24c; outline-offset: -3px; }
.slot { background: linear-gradient(#fffaf0, #dccaa4); box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(0,0,0,.3); }
.online { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.3)), url('/img/tex/metal-dark.jpg') 0 0 / 640px, #4a2014; background-blend-mode: normal, overlay, normal;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.6); }
/* иконки: монохром с сохранением формы, лёгкое тиснение */
.cell .icon-img, .cell img.brand.mono {
  mix-blend-mode: multiply;
  filter: grayscale(1) brightness(.78) contrast(1.55) drop-shadow(0 1px 0 rgba(255,255,255,.7)) !important;
  opacity: 1;
}
.modal-card:has(.winner) { overflow: hidden; }
.winner .plate-top, .winner .plate-bottom {
  background:
    radial-gradient(circle at 22px 22px, #fafafa 0 3px, #9a9a9a 4px 6px, #333 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 22px) 22px, #fafafa 0 3px, #9a9a9a 4px 6px, #333 7px, transparent 8px),
    radial-gradient(circle at 22px calc(100% - 22px), #fafafa 0 3px, #9a9a9a 4px 6px, #333 7px, transparent 8px),
    radial-gradient(circle at calc(100% - 22px) calc(100% - 22px), #fafafa 0 3px, #9a9a9a 4px 6px, #333 7px, transparent 8px),
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,0,0,.15)), url('/img/tex/metal-mid.jpg') 0 0 / 640px, #777;
}
.winner .plate-top { padding: 30px 60px 22px; }
.winner .plate-bottom { padding: 22px 60px 26px; }

/* ═════════════ 3D-КУБИКИ ═════════════ */
.center { position: relative; }
.dice { position: absolute; inset: 0; z-index: 6; pointer-events: none; perspective: 900px; transition: opacity .35s; }
.dice.fade { opacity: 0; }
.dice[hidden] { display: block !important; visibility: hidden; }
.die3 { position: absolute; left: 50%; top: 50%; width: var(--ds); height: var(--ds); margin: calc(var(--ds) / -2) 0 0 calc(var(--ds) / -2);
  transform-style: preserve-3d; }
.die3 .shadow { position: absolute; inset: 8% -4% -14% 4%; border-radius: 30%;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,.35) 60%, transparent); filter: blur(3px); }
.die3 .lift { position: absolute; inset: 0; transform-style: preserve-3d; }
.die3 .view { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(28deg); }
.die3 .cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.die3 .face, .die3 .core { position: absolute; inset: 0; backface-visibility: hidden; }
.die3 .core { inset: 2%; background: #c9c3b6; backface-visibility: visible; }
.die3 .face {
  border-radius: 17%; padding: 15%;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,0) 55%),
    linear-gradient(145deg, #fbf8f1, #e3ddd0 70%, #cfc8b8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset -3px -4px 7px rgba(80,60,30,.28), inset 2px 2px 4px rgba(255,255,255,.9);
}
.die3 .face i { display: block; border-radius: 50%; margin: 13%; visibility: hidden;
  background: radial-gradient(circle at 38% 34%, #4a4a4a, #0b0b0b 62%);
  box-shadow: inset 0 2px 2px rgba(0,0,0,.85), 0 1px 0 rgba(255,255,255,.9); }
.die3 .face i.on { visibility: visible; }
.die3 .f1 i.on { background: radial-gradient(circle at 38% 34%, #f0464e, #8c0b12 65%); margin: 4%; }
/* грани: 1 спереди, 6 сзади, 2 справа, 5 слева, 3 сверху, 4 снизу */
.die3 .f1 { transform: translateZ(calc(var(--ds) / 2)); }
.die3 .f6 { transform: rotateY(180deg) translateZ(calc(var(--ds) / 2)); }
.die3 .f2 { transform: rotateY(90deg) translateZ(calc(var(--ds) / 2)); }
.die3 .f5 { transform: rotateY(-90deg) translateZ(calc(var(--ds) / 2)); }
.die3 .f3 { transform: rotateX(90deg) translateZ(calc(var(--ds) / 2)); }
.die3 .f4 { transform: rotateX(-90deg) translateZ(calc(var(--ds) / 2)); }
.die3 .c2 { transform: rotateY(90deg); }
.die3 .c3 { transform: rotateX(90deg); }

/* ═════════════ 2 НА 2 В ЛОББИ ═════════════ */
.team { display: flex; gap: 4px; padding: 3px; border-radius: 6px; }
.team0 { background: linear-gradient(rgba(229,57,53,.75), rgba(160,20,20,.6)); box-shadow: inset 0 0 0 1px #8e1b18, 0 1px 3px rgba(0,0,0,.4); }
.team1 { background: linear-gradient(rgba(30,136,229,.75), rgba(13,71,161,.6)); box-shadow: inset 0 0 0 1px #0d3c7a, 0 1px 3px rgba(0,0,0,.4); }
.vs { align-self: center; font: italic 900 18px Georgia, serif; color: #f5c84a; text-shadow: 0 1px 0 #000, 0 0 8px rgba(245,200,74,.5); padding: 0 4px; }
.mode-badge { align-self: center; font-weight: 900; font-size: 13px; color: #fff; padding: 3px 7px; border-radius: 4px;
  background: linear-gradient(#e53935 50%, #1e88e5 50%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 3px #000; text-shadow: 0 1px 1px #000; }
.mode-hint { max-width: 520px; font-size: 13px; opacity: .85; margin: 0; }
.create-row[hidden] { display: none; }

/* ═════════════ 2 НА 2 НА ПОЛЕ ═════════════ */
.pcard.team0 { box-shadow: inset 4px 0 0 #e53935, 0 2px 6px rgba(0,0,0,.6); }
.pcard.team1 { box-shadow: inset 4px 0 0 #1e88e5, 0 2px 6px rgba(0,0,0,.6); }
.team-lbl { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; opacity: .85; }
.pcard.team0 .team-lbl { color: #ff8a80; }
.pcard.team1 .team-lbl { color: #82b1ff; }
.cell .tag.mate { text-shadow: 0 1px 1px #000;
  background-image: linear-gradient(rgba(255,255,255,.38), rgba(255,255,255,.08) 48%, rgba(0,0,0,.08) 52%, rgba(0,0,0,.28)),
    linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%) !important; }
.btn-blue { color: #fff; border: 1px solid #0b3a6b; border-radius: 6px; padding: 8px 12px; font-weight: 700; cursor: pointer; text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  background: linear-gradient(#64b5f6, #1e88e5 50%, #1565c0 51%, #0d47a1); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.5); }
.btn-blue:hover { filter: brightness(1.1); }
.transfer { display: grid; gap: 10px; }
.transfer input { padding: 8px 10px; border-radius: 6px; border: 1px solid #555; background: #111; color: #fff; font-size: 16px; }
.transfer .quick { display: flex; gap: 6px; flex-wrap: wrap; }
.transfer .quick button { padding: 5px 10px; }
#seg-mode label { width: auto; padding: 0 16px; font-size: 16px; white-space: nowrap; }
.dice { right: auto; width: 56%; }
