:root {
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --cell: 36px;
  --bg: #12062b; --panel: #1f0d46; --panel2: #2a1460; --line: #4b2c93; --ink: #f4ecff; --muted: #b9a6e6;
  --gold: #ffcf4a; --gold2: #f39c12; --purple: #3d1a7a; --purple2: #5a2aa8;
  font-family: -apple-system, BlinkMacSystemFont, "SF Hebrew", "Arial Hebrew", "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
#app { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; }
.screen { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: none; padding: var(--sat) var(--sar) var(--sab) var(--sal); }
.screen.active { display: flex; }
.hidden { display: none !important; }

.btn { border: 0; border-radius: 12px; padding: 9px 16px; background: linear-gradient(#6a3bc4, #48208f); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 2px 0 #250e55, inset 0 1px 0 rgba(255,255,255,.25); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #250e55; }
.btn.big { font-size: 17px; padding: 12px 20px; }
.btn.small { font-size: 13px; padding: 6px 11px; border-radius: 10px; }
.btn.gold { background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; box-shadow: 0 2px 0 #8a5300, inset 0 1px 0 rgba(255,255,255,.6); }
.btn.red { background: linear-gradient(#ff6b6b, #c0262d); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); box-shadow: none; color: var(--muted); }
.btn.wide { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .4; }

/* ---------- title ---------- */
#scr-title { background: #090320; }
.title-art { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 0; }
.title-art svg { width: 100%; height: 100%; display: block; }
.title-side { position: relative; z-index: 1; margin-inline-end: auto; width: min(52%, 430px); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 16px 22px; background: linear-gradient(270deg, rgba(9,3,32,0) 0%, rgba(9,3,32,.72) 28%, rgba(9,3,32,.86)); }
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-main { font-size: 54px; font-weight: 900; letter-spacing: -1px; line-height: 1; background: linear-gradient(180deg, #fff6c9 0%, #ffd34a 45%, #f08a1c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5a1a00) drop-shadow(0 0 18px rgba(255,170,40,.45)); }
.logo-sub { margin-top: 8px; font-size: 15px; font-weight: 700; color: #8fe9ff; letter-spacing: .5px; text-shadow: 0 0 10px rgba(80,200,255,.6); }
.title-buttons { display: flex; flex-direction: column; gap: 9px; }

/* ---------- setup ---------- */
#scr-setup { flex-direction: column; background: radial-gradient(circle at 70% 0%, #3a1680, var(--bg) 70%); overflow-y: auto; }
.setup-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px 0; }
.setup-head h2 { margin: 0; font-size: 20px; }
.setup-body { display: flex; gap: 16px; padding: 8px 14px 14px; flex: 1; min-height: 0; }
.setup-players { flex: 1.2; display: flex; flex-direction: column; gap: 6px; }
.setup-opts { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.setup-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.setup-row { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; }
.setup-row .num { width: 20px; text-align: center; color: var(--gold); font-weight: 800; }
.setup-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; background: #120530; color: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; -webkit-user-select: text; user-select: text; }
.setup-row .x { border: 0; background: none; color: #ff8a8a; font-size: 16px; padding: 4px 6px; }
.seg { display: inline-flex; background: #120530; border: 1px solid var(--line); border-radius: 10px; padding: 2px; gap: 2px; align-items: center; }
.seg span { font-size: 13px; color: var(--muted); padding: 0 6px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
.seg.small button { padding: 4px 9px; font-size: 13px; }
.seg button.on { background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- game ---------- */
#scr-game { background: radial-gradient(ellipse at 30% 50%, #2d1166 0%, #160733 70%); }
#game { display: flex; width: 100%; height: 100%; gap: 6px; padding: 4px 6px; }
#side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#board-area { flex: none; display: flex; align-items: center; justify-content: center; }

#board-frame { padding: 5px; border-radius: 12px; background: linear-gradient(145deg, #6c33c9, #2b0f63 60%, #4a1d9a); box-shadow: 0 6px 18px rgba(0,0,0,.55), inset 0 0 0 2px #8e5cf0; }
#board { direction: ltr; display: grid; grid-template-columns: var(--hdr, 14px) repeat(12, var(--cell)) var(--hdr, 14px); grid-template-rows: var(--hdr, 14px) repeat(9, var(--cell)); gap: 0; background: #3b1680; border-radius: 8px; }
#board .colh, #board .rowh { display: flex; align-items: center; justify-content: center; font-size: var(--hdr-f, 10px); font-weight: 800; color: #d9c4ff; }
#board .cell { position: relative; margin: 1px; border: 0; padding: 0; border-radius: 4px; background: linear-gradient(160deg, #5b2bb0, #4a1f98); box-shadow: inset 0 0 0 1px rgba(170,130,255,.35); display: flex; align-items: center; justify-content: center; }
#board .cell span { direction: rtl; font-size: calc(var(--cell) * .27); font-weight: 700; color: rgba(225,205,255,.55); white-space: nowrap; }
#board .cell.tile.lone { background: linear-gradient(160deg, #fffaf0, #e7dcc4); box-shadow: 0 1px 0 #8f7f60, inset 0 0 0 1px #fff; }
#board .cell.tile.lone span { color: #3b2a12; }
#board .cell.tile.ch { background: linear-gradient(160deg, var(--cc), var(--cc) 45%, var(--cd)); background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 70%, white), var(--cc) 45%, var(--cd)); box-shadow: 0 1px 0 rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.45); }
#board .cell.tile.ch span { color: rgba(255,255,255,.95); text-shadow: 0 1px 1px rgba(0,0,0,.6); }
#board .cell.last { outline: 2.5px solid #fff; outline-offset: -1px; z-index: 2; animation: pop .5s ease-out; }
@keyframes pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
#board .cell.mine { box-shadow: inset 0 0 0 2px var(--gold); background: linear-gradient(160deg, #7a45d6, #5e2db8); }
#board .cell.mine span { color: #ffe9a8; }
#board .cell.mine.bad { box-shadow: inset 0 0 0 2px #ff6b6b; }
#board .cell.sel { background: linear-gradient(#ffe07a, #f2a516) !important; z-index: 3; animation: pulse 1s infinite alternate; }
#board .cell.sel span { color: #3a1d00 !important; }
#board .cell.pend { outline: 3px dashed #fff; outline-offset: -2px; z-index: 3; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); box-shadow: 0 0 12px #ffcf4a; } }

#topbar { display: flex; align-items: center; gap: 6px; height: 30px; flex: none; }
#turninfo { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
#turninfo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 6px var(--gold); }
#turninfo .dot.ai { background: #7fd8ff; box-shadow: 0 0 6px #7fd8ff; }
.endtag { background: #c0262d; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.tb-btns { display: flex; gap: 5px; }
.icon { width: 32px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-weight: 800; font-size: 15px; }

#players { display: flex; gap: 4px; flex: none; }
.pchip { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 2px 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); line-height: 1.15; }
.pchip .pn { font-size: 11.5px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip .pc { font-size: 12px; color: #9df0a8; font-weight: 800; direction: ltr; }
.pchip.cur { border-color: var(--gold); background: linear-gradient(#4a2394, #2f1468); box-shadow: 0 0 0 1px var(--gold), 0 0 10px rgba(255,207,74,.35); }
.pchip.me .pn::after { content: ' ★'; color: var(--gold); }

#market { flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 2px 4px; }
.mrow { display: grid; grid-template-columns: 106px 52px 46px 42px 1fr 50px; align-items: center; height: calc((var(--vh100, 100vh) - var(--sat) - var(--sab) - 212px) / 8.2); max-height: 26px; min-height: 19px; font-size: 13px; text-align: center; border-radius: 6px; }
.mrow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow.mhead { font-size: 10.5px; color: var(--muted); height: 16px; min-height: 16px; font-weight: 700; }
.mrow .mc { text-align: right; }
.mrow.off { opacity: .45; }
.mrow.can { background: rgba(255,207,74,.12); cursor: pointer; }
.mrow.can:active { background: rgba(255,207,74,.3); }
.mrow .lead { font-size: 11px; color: var(--muted); text-align: right; padding-inline-start: 4px; }
.mrow .mine { color: var(--gold); font-weight: 800; }
.mrow .plus { display: inline-flex; width: 22px; height: 18px; align-items: center; justify-content: center; border-radius: 6px; background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; font-style: normal; font-weight: 900; }
.lock { font-style: normal; font-size: 9px; margin-inline-start: 1px; }
.badge { position: relative; display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 6px; overflow: hidden; background: linear-gradient(90deg, var(--cd), var(--cc)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); min-width: 80px; }
.badge b { position: relative; font-size: 12.5px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.7), 0 0 4px rgba(0,0,0,.4); font-weight: 900; }
.sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; opacity: .55; display: block; }
.sky svg { width: 100%; height: 100%; display: block; }

#hand { display: flex; gap: 5px; flex: none; min-height: 40px; align-items: center; justify-content: center; }
.handlbl { font-size: 11px; color: var(--muted); }
.htile { position: relative; width: 50px; height: 38px; border-radius: 6px; border: 0; background: linear-gradient(160deg, #fffaf0, #e2d4b6); color: #2c1c06; font-weight: 800; font-size: 15px; box-shadow: 0 2px 0 #7d6a45, inset 0 0 0 1px #fff; direction: rtl; }
.htile.sel { background: linear-gradient(#ffe07a, #f2a516); transform: translateY(-3px); box-shadow: 0 4px 0 #8a5300, 0 0 12px rgba(255,207,74,.7); }
.htile.bad { opacity: .45; }
.htile.bad i { position: absolute; bottom: -1px; left: 0; right: 0; font-size: 9px; font-style: normal; color: #b00; }
.htile.idle { filter: saturate(.6) brightness(.85); }

#actions { flex: 1; min-height: 38px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; align-content: center; }
.amsg { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); }
.amsg.sm { font-size: 11.5px; color: var(--muted); }
#actions .amsg.so-msg { flex: 1 1 0; min-width: 0; line-height: 1.2; } /* ac66: the sell-step bar text gives way, "↩ שנה" + "המשך" stay whole */
#actions .amsg.so-msg ~ .btn { flex: none; }
.amsg.log .lh, .rc-line .lh, .rf-list .lh, .sh-rc .lh { font-weight: 800; }
.amsg.log { font-size: 12.5px; color: #d9cbff; display: -webkit-box; -webkit-line-clamp: 2; overflow: hidden; }
/* ac85: what the other player is doing this turn (bottom bar, replaces the raw last log line) */
.amsg.log.oact { color: var(--ink); font-size: 12.5px; line-height: 1.3; border-inline-start: 3px solid var(--pc); padding-inline-start: 6px; -webkit-box-orient: vertical; }

/* ---------- sheets ---------- */
#sheet-wrap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 20; background: rgba(8,2,24,.62); display: flex; align-items: center; justify-content: center; padding: calc(var(--sat) + 8px) calc(var(--sar) + 10px) calc(var(--sab) + 8px) calc(var(--sal) + 10px); }
#sheet { width: min(640px, 100%); max-height: 100%; overflow-y: auto; background: linear-gradient(170deg, #2e1468, #1b0a40); border: 1.5px solid #7a4ee0; border-radius: 16px; padding: 12px 16px 14px; box-shadow: 0 10px 40px rgba(0,0,0,.6); -webkit-overflow-scrolling: touch; }
#sheet h3 { margin: 2px 0 6px; font-size: 18px; text-align: center; }
#sheet h3.win { font-size: 22px; color: var(--gold); }
#sheet .sub { margin: 0 0 8px; color: var(--muted); font-size: 13px; text-align: center; }
.cgrid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cpick { border: 0; background: none; padding: 0; }
.ccard { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 104px; height: 78px; border-radius: 40px 40px 12px 12px; overflow: hidden; padding: 4px; background: linear-gradient(180deg, #120530, var(--cd) 70%, var(--cc)); box-shadow: inset 0 0 0 2px var(--cc), 0 3px 8px rgba(0,0,0,.4); vertical-align: middle; }
.ccard .sky { opacity: .9; top: 14px; bottom: 26px; left: 6px; right: 6px; }
.ccard b { position: relative; font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px var(--cd); }
.ccard small { position: relative; font-size: 11px; color: #fff; opacity: .92; }
.cpick:active .ccard { transform: scale(.96); }
.mhead2 { display: flex; align-items: center; justify-content: center; gap: 10px; }
.mhead2 .arrow { font-size: 26px; color: var(--gold); }
.cols { display: flex; gap: 14px; }
.cols > div { flex: 1; }
.lbl { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
ul.bon { margin: 0; padding: 0 16px 0 0; font-size: 13.5px; line-height: 1.6; }
.pos { color: #9df0a8; }
.step { display: flex; align-items: center; gap: 6px; margin: 5px 0; }
.step .sl { width: 72px; font-size: 13.5px; }
.step button { width: 34px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-size: 18px; font-weight: 800; }
.step b { width: 26px; text-align: center; font-size: 17px; }
.step .sn { font-size: 12.5px; color: var(--muted); }
.keep { font-size: 13.5px; margin: 4px 0; }
.keep small { color: var(--muted); font-size: 11px; }
.qbtns { display: flex; gap: 6px; margin-top: 6px; }
.row2 { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.mitem { display: flex; gap: 12px; align-items: center; margin: 6px 0; }
.mitem .dl { font-size: 12px; color: var(--muted); }
table.rank, table.chart { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: center; }
table.rank th, table.chart th { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 3px; }
table.rank td, table.chart td { padding: 4px 3px; border-top: 1px solid rgba(122,78,224,.35); }
table.rank tr.first td { color: var(--gold); font-size: 15px; }
table.chart td:nth-child(-n+3) { color: #ffe9a8; font-weight: 700; }
.fitems { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.fitems .ccard { width: 84px; height: 56px; }
.fitems .ccard b { font-size: 13px; }
.holdings { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bills { display: flex; gap: 8px; justify-content: center; margin: 4px 0 8px; }
.bstack { display: inline-flex; align-items: center; gap: 3px; }
.bill { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 24px; border-radius: 4px; font-size: 12px; font-weight: 900; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 2px 0 rgba(0,0,0,.4); }
.help p { font-size: 13.5px; line-height: 1.55; margin: 6px 0; }
.logl { font-size: 13px; line-height: 1.5; padding-right: 20px; margin: 0; }
.logl li.merge, .logl li.bonus { color: #ffe9a8; }
.logl li.end { color: #ff9a9a; font-weight: 700; }
.menu { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

/* ---------- cover / toast / rotate ---------- */
#cover { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #3b1680, #0b0320 75%); }
.cv-box { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 20px; }
.cv-small { color: var(--muted); font-size: 16px; }
.cv-name { font-size: 40px; font-weight: 900; color: var(--gold); }
.cv-why { font-size: 15px; }
.cv-last { font-size: 12px; color: var(--muted); max-width: 520px; margin-top: 6px; }
#toast { position: fixed; z-index: 40; top: calc(var(--sat) + 6px); left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.9); color: #2a1460; font-weight: 700; padding: 3px 12px 4px; border-radius: 999px; font-size: 13px; line-height: 1.3; box-shadow: 0 2px 8px rgba(0,0,0,.35); pointer-events: none; max-width: 92vw; width: max-content; text-align: center; }
#toast.on-side { font-size: 12.5px; } /* ac100: on the game screen it sits over the side panel (placed by pillPlace), never over the board */
#rotate { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 100; background: #12062b; color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 22px; font-weight: 800; text-align: center; }
#rotate small { font-size: 14px; color: var(--muted); font-weight: 400; }
.rot-phone { width: 46px; height: 80px; border: 4px solid var(--gold); border-radius: 10px; animation: rot 1.8s ease-in-out infinite; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (max-width: 700px) { #rotate { display: flex; } }
@media (max-height: 360px) { .mrow { max-height: 22px; } #hand .htile { height: 34px; } }

/* ===== v2 (ac2): turn banner, hotel blocks, flash ===== */
#topbar { height: 40px; }
#turninfo.tb { height: 38px; border-radius: 10px; padding: 0 8px; gap: 7px; border: 2px solid var(--pc, var(--line)); background: var(--panel2); white-space: normal; }
#turninfo .tb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
#turninfo .tb-txt b { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#turninfo .tb-txt small { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
#turninfo.tb.you { background: linear-gradient(90deg, #ffe27a, #f5a623); border-color: #fff3c2; color: #2a1500; animation: tbpulse 1.4s ease-in-out infinite alternate; }
#turninfo.tb.you .tb-arr { font-size: 15px; color: #6b2f00; animation: tbarr .7s ease-in-out infinite alternate; }
#turninfo.tb.ai { background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 30%, #1f0d46), #24104f); color: #fff; }
#turninfo.tb.ai .tb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); flex: none; box-shadow: 0 0 8px var(--pc); animation: tbblink .8s ease-in-out infinite alternate; }
#turninfo.tb.ai .tb-txt b { color: var(--pc); }
#turninfo.tb.wait { background: #2a1460; color: #fff; }
#turninfo.tb.over { background: linear-gradient(90deg, #ffe27a, #f5a623); color: #2a1500; }
#turninfo .endtag { flex: none; font-size: 11px; font-weight: 800; background: #c0392b; color: #fff; border-radius: 6px; padding: 1px 5px; }
@keyframes tbpulse { from { box-shadow: 0 0 4px 1px rgba(255,214,90,.5); } to { box-shadow: 0 0 14px 4px rgba(255,214,90,.95); } }
@keyframes tbarr { from { transform: translateX(0); } to { transform: translateX(-3px); } }
@keyframes tbblink { from { opacity: .45; } to { opacity: 1; } }

#players { margin-top: 3px; }
.pchip { position: relative; }
.pchip .pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); margin-inline-end: 3px; vertical-align: 1px; }
.pchip.cur { border: 2px solid var(--pc); background: linear-gradient(color-mix(in srgb, var(--pc) 35%, #2f1468), #2f1468); box-shadow: 0 0 10px 1px var(--pc); }
.pchip .parr { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 1; color: var(--pc); font-style: normal; text-shadow: 0 0 4px rgba(0,0,0,.8); animation: tbarr2 .7s ease-in-out infinite alternate; }
@keyframes tbarr2 { from { margin-top: 0; } to { margin-top: 2px; } }

/* building icon (drawn, white) */
.bld { display: none; width: 60%; height: 60%; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M4 18V4.5L11 2v16zM12 18V7.5l5 1.5v9z'/%3E%3Cg fill='%23000' opacity='.35'%3E%3Crect x='6' y='6' width='1.6' height='1.6'/%3E%3Crect x='8.6' y='6' width='1.6' height='1.6'/%3E%3Crect x='6' y='9' width='1.6' height='1.6'/%3E%3Crect x='8.6' y='9' width='1.6' height='1.6'/%3E%3Crect x='6' y='12' width='1.6' height='1.6'/%3E%3Crect x='8.6' y='12' width='1.6' height='1.6'/%3E%3Crect x='13.5' y='10.5' width='1.6' height='1.6'/%3E%3Crect x='13.5' y='13.5' width='1.6' height='1.6'/%3E%3Crect x='7' y='15.5' width='2.2' height='2.5'/%3E%3C/g%3E%3C/svg%3E"); filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); font-style: normal; }
#board { position: relative; }
#board .cell span { color: rgba(225,205,255,.42); }
#board .cell.tile.lone { background: linear-gradient(160deg, #efe7d6, #cfc2a8); box-shadow: 0 1px 0 #7d6e52, inset 0 0 0 1px rgba(255,255,255,.8); }
#board .cell.tile.lone span { color: #4a3a1e; }
#board .cell.tile.ch { background: var(--cc); }
#board .cell.tile.ch span { display: none; }
#board .cell.tile.ch .bld { display: block; opacity: .85; }
#board .cell.tile.ch.jr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
#board .cell.tile.ch.jl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
#board .cell.tile.ch.jt { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
#board .cell.tile.ch.jb { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
#board .cell.tile.ch.jt.jl, #board .cell.tile.ch.jb.jl, #board .cell.tile.ch.jt.jr, #board .cell.tile.ch.jb.jr { }
#board .cell.last { outline: 2px solid rgba(255,255,255,.85); }
#board .cell.flash { z-index: 7; }
#board .cell.flash::after { content: ''; position: absolute; top: -5px; right: -5px; bottom: -5px; left: -5px; inset: -5px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 0 10px 4px var(--fl, #ffcf4a), inset 0 0 8px rgba(255,255,255,.8); pointer-events: none; animation: flashring .45s ease-in-out infinite alternate; }
@keyframes flashring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.18); opacity: .55; } }
#clabels { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; z-index: 5; }
.clabel { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; white-space: nowrap; direction: rtl; font-size: max(10px, calc(var(--cell) * .3)); font-weight: 900; color: #fff; background: var(--cd); border: 1.5px solid rgba(255,255,255,.9); border-radius: 6px; padding: 1px 4px; box-shadow: 0 2px 4px rgba(0,0,0,.55); text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.clabel .bld { display: block; width: 1em; height: 1em; }

/* legend swatch in the stock panel */
.badge .sw { position: relative; flex: none; width: 13px; height: 13px; margin-inline-end: 4px; border-radius: 3px; background: var(--cc); box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1; }
.badge .sw .bld { display: block; width: 80%; height: 80%; }

/* help illustration */
.hotel-ex { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 6px 8px; margin: 6px 0; }
.hotel-ex p { margin: 0; flex: 1; }
.hotel-ex .mini { position: relative; direction: ltr; flex: none; display: grid; grid-template-columns: repeat(5, 22px); grid-template-rows: repeat(3, 22px); gap: 2px; padding: 4px; background: #3b1680; border-radius: 6px; }
.hotel-ex .mini > i { border-radius: 3px; display: flex; align-items: center; justify-content: center; font-style: normal; }
.hotel-ex .me2 { background: linear-gradient(160deg, #5b2bb0, #4a1f98); }
.hotel-ex .mc2 .bld { display: block; }
.hotel-ex .ml2 { background: linear-gradient(160deg, #efe7d6, #cfc2a8); color: #4a3a1e; font-size: 8px; font-weight: 800; direction: rtl; }
.hotel-ex .mlab { position: absolute; left: 39px; top: 22px; color: #fff; font-size: 10px; font-weight: 900; border: 1px solid #fff; border-radius: 5px; padding: 0 3px; direction: rtl; }

/* v3 (ac4): every tile keeps its coordinate readable; the chain name lives only on the top band of its own tiles */
#board .cell.tile.ch { flex-direction: column; justify-content: flex-end; }
#board .cell.tile.ch span { display: block; line-height: 1; margin-bottom: calc(var(--cell) * .1); font-size: calc(var(--cell) * .27); color: #fff; font-weight: 800; text-shadow: 0 0 2px rgba(0,0,0,.9), 0 1px 1px rgba(0,0,0,.8); position: relative; z-index: 6; }
#board .cell.tile.ch .bld { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); width: 40%; height: 40%; opacity: .8; }
#board .cell.tile.ch.named .bld { display: none; }
.clabel { transform: none; display: block; overflow: hidden; text-align: center; padding: 0 2px; gap: 0; box-sizing: border-box; border: 1px solid rgba(255,255,255,.75); border-radius: 4px; white-space: nowrap; font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.45); }

/* v4 (ac5): quick-start computer-count picker */
.quick-box { display: flex; flex-direction: column; gap: 7px; padding: 8px 10px 10px; border-radius: 14px; background: rgba(26,11,58,.78); border: 1.5px solid rgba(255,211,74,.45); }
.ai-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-pick-label { font-size: 17px; font-weight: 800; color: #ffe07a; white-space: nowrap; }
.ai-pick-btns { display: flex; gap: 6px; direction: ltr; }
.ai-pick-btns button { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #6a3bc4; background: #120530; color: #e9ddff; font-size: 20px; font-weight: 900; padding: 0; line-height: 1; }
.ai-pick-btns button.on { background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; border-color: #fff3c4; box-shadow: 0 0 10px rgba(255,190,60,.7); }
.ai-pick-btns button:active { transform: translateY(1px); }
/* 5–6 players: compact chips so every name and amount fits in 844x390 */
#players.many { gap: 3px; }
#players.many .pchip { padding: 2px 1px; border-top: 3px solid var(--pc); }
#players.many .pchip .pdot { display: none; }
#players.many .pchip .pn { font-size: 10.5px; letter-spacing: -.2px; }
#players.many .pchip.me .pn::after { content: '★'; font-size: 9px; }
#players.many .pchip .pc { font-size: 11px; letter-spacing: -.3px; }

/* v5 (ac6): cash balance on the turn banner and on every player chip */
#turninfo .tb-txt { flex: 1 1 auto; }
#turninfo.tb { gap: 6px; }
#turninfo .tb-cash { flex: none; margin-inline-start: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 2px 6px; border-radius: 8px; background: rgba(20,8,48,.55); color: #9df0a8; }
#turninfo .tb-cash small { font-size: 9.5px; font-weight: 700; color: #e9ddff; opacity: .9; }
#turninfo .tb-cash bdi { font-size: 13.5px; font-weight: 900; white-space: nowrap; letter-spacing: -.2px; }
#turninfo.tb.you .tb-cash { background: rgba(60,25,0,.82); color: #b8ffbf; }
#turninfo.tb.you .tb-cash small { color: #ffe9a8; }
.pchip .pc { direction: rtl; display: flex; align-items: baseline; justify-content: center; gap: 3px; max-width: 100%; white-space: nowrap; }
.pchip .pc bdi { direction: ltr; unicode-bidi: isolate; }
.pchip .pcl { font-style: normal; font-size: 9.5px; font-weight: 700; color: #cbb8f2; }
#players.many .pchip .pcl { display: none; }
#turninfo .tb-cash.big bdi { font-size: 12px; letter-spacing: -.4px; }

/* v6 (ac7): the tile placed this turn can be tapped to take it back until the turn ends */
#board .cell.undoable { z-index: 4; cursor: pointer; }
#board .cell.undoable::before { content: '↩'; position: absolute; top: -6px; left: -6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: #5b2a86; font: 700 10px/15px system-ui, sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.45); pointer-events: none; z-index: 5; }
#board .cell.undoable { outline: 2px dashed #fff !important; outline-offset: -1px; }
.undo-hint { flex: 0 1 auto; max-width: 92px; max-height: 38px; font-size: 10px; line-height: 1.1; font-weight: 600; text-align: center; color: #f4e6ff; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.55); border-radius: 8px; padding: 1px 5px; cursor: pointer; overflow: hidden; }
.unplace-row { display: flex; justify-content: center; margin-top: 6px; }

/* ac8: Hodaya — no written hint, take-back is just automatic */
.undo-hint{display:none!important}
#board .cell.undoable::before{display:none!important}

/* ac9: Hodaya — coordinates on empty squares whiter, clearer */
#board .cell:not(.tile):not(.sel):not(.mine) span { color: rgba(255,255,255,.95) !important; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
#board .cell.mine:not(.tile) span { color: #fff3c4 !important; }

/* ac11 — online play */
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }
.btn.online { background: linear-gradient(#3fb6ff, #1c6fd1); box-shadow: 0 2px 0 #0b3a7a, inset 0 1px 0 rgba(255,255,255,.35); }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
#scr-online { background: radial-gradient(120% 120% at 80% 0%, #2a1260 0%, #0e0530 60%, #090320 100%); }
#online-body { display: flex; gap: 18px; width: 100%; height: 100%; padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left)); box-sizing: border-box; align-items: stretch; }
.on-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.on-col h2 { margin: 0; font-size: 22px; color: #ffd34a; }
.on-col .hint { margin: 0; font-size: 13px; color: #d9cdf7; line-height: 1.35; }
.on-lbl { font-size: 12.5px; color: #bfaef0; font-weight: 700; }
.on-col input[type=text] { font: inherit; font-size: 17px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid #6a4bc0; background: #1b0c45; color: #fff; }
.on-col .btn b { font-family: monospace; letter-spacing: 1px; }
.invite { display: flex; flex-direction: column; gap: 7px; }
.inv-code { display: flex; align-items: baseline; gap: 10px; }
.inv-code small { color: #bfaef0; font-size: 12px; }
.inv-code b { font-size: 26px; letter-spacing: 4px; color: #fff; font-family: ui-monospace, monospace; }
.inv-link { font-size: 11.5px; color: #9fd8ff; background: rgba(0,0,0,.3); border-radius: 8px; padding: 5px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.inv-btns { display: flex; gap: 7px; flex-wrap: wrap; }
.inv-btns .btn { flex: 1 1 auto; font-size: 14px; padding: 8px 10px; }
#inv-wa { background: linear-gradient(#4be27a, #1fa855); color: #05300f; box-shadow: 0 2px 0 #0d5a2a, inset 0 1px 0 rgba(255,255,255,.5); }
.lb-left { justify-content: flex-start; }
.lb-left .btn.ghost { align-self: flex-start; margin-top: auto; }
.lb-right { justify-content: flex-start; }
.lb-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; max-height: 190px; }
.lb-seat { display: flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 10px; background: rgba(255,255,255,.07); border-inline-start: 4px solid var(--pc); font-size: 14.5px; }
.lb-seat.me { background: rgba(255,211,74,.14); }
.lb-seat.off { opacity: .6; }
.lb-seat .pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); display: inline-block; }
.lb-seat small { color: #bfaef0; font-size: 11.5px; }
.lb-seat .x { margin-inline-start: auto; background: none; border: 0; color: #ff9b9b; font-size: 15px; padding: 2px 6px; }
.lb-host { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-host .check { font-size: 13px; color: #e8ddff; }
.lb-wait { color: #ffd34a; font-size: 15px; font-weight: 700; margin: 6px 0 0; animation: lbpulse 1.6s ease-in-out infinite; }
@keyframes lbpulse { 50% { opacity: .55; } }
.pchip.off { opacity: .55; }
.poff { font-style: normal; font-size: 10px; margin-inline-start: 3px; }
.menu-room { font-size: 13px; color: #d9cdf7; text-align: center; }
.menu-room b { font-family: ui-monospace, monospace; letter-spacing: 2px; color: #fff; }
#net-badge { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 60; background: #c0262d; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
#net-badge.hidden { display: none; }
.modal-invite .invite { margin: 6px 0 10px; }

/* ac12 (Hodaya): the buy-step summary bar — "1 קונטיננטל · 2 ריביירה" + total, big, at the bottom of the panel */
#actions.buying { align-content: space-evenly; row-gap: 4px; }
.buysum { flex: 1 0 100%; min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 9px;
  background: rgba(20,6,52,.85); border: 1.5px solid var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 10px rgba(255,200,80,.12);
  font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; color: #fff; }
.buysum.empty { justify-content: center; border-style: dashed; border-color: rgba(255,214,110,.6); color: #d9cbff; font-weight: 700; }
.buysum .bs-items { flex: none; display: flex; align-items: center; gap: .3em; }
.buysum .bs-total { margin-inline-start: auto; }
.buysum.empty .bs-items { flex: 1; justify-content: center; }
.buysum .bs-chip { display: inline-flex; align-items: center; gap: .25em; padding: .05em .45em; border-radius: .45em; line-height: 1.25;
  background: linear-gradient(160deg, var(--cc), var(--cc)); background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 80%, white), var(--cc)); color: var(--ci); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 1px 0 var(--cd); }
.buysum .bs-chip b { font-size: 1.1em; font-weight: 900; }
.buysum .bs-dot { font-style: normal; color: var(--gold); font-weight: 900; }
.buysum .bs-total { flex: none; color: var(--gold); font-size: .9em; }
.buysum .bs-total bdi { font-weight: 900; }
#actions.buying .bs-hint { font-size: 12px; }
#actions .bs-hint.bs-total2 { font-size: 16px; font-weight: 900; color: var(--gold); }
#actions .bs-hint.bs-total2 bdi { font-weight: 900; }
/* the hand is idle in the buy step: slightly shorter tiles leave room for the bar */
#side.buying #hand { min-height: 32px; }
#side.buying #hand .htile { height: 32px; }
@media (max-height: 370px) { .buysum { height: 30px; } #side.buying #hand, #side.buying #hand .htile { min-height: 28px; height: 28px; } }

/* ac13 (Hodaya): under the board — the last finished turn (stays until the next one ends, no fade) and the viewer's own shares */
#board-area { flex-direction: column; gap: 4px; }
#under { width: 0; min-width: 100%; flex: none; display: flex; flex-direction: column; gap: 3px; direction: rtl; }
.u-chip { display: inline-flex; align-items: center; gap: .18em; padding: 0 .25em; border-radius: .4em; line-height: 1.2; white-space: nowrap; vertical-align: baseline;
  background: linear-gradient(160deg, var(--cc), var(--cc)); background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 80%, white), var(--cc)); color: var(--ci); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 1px 0 var(--cd); font-weight: 800; }
.u-chip b { font-weight: 900; }
.u-chip .sw { flex: none; width: 1em; height: 1em; border-radius: 3px; background: var(--cd); box-shadow: 0 0 0 1px #fff; display: inline-flex; align-items: center; justify-content: center; }
.u-chip .sw .bld { display: block; width: 85%; height: 85%; }
/* ac14 (Hodaya): every player's shares, always visible — one row per player (2 columns for 4–6 players); the viewer's row first + highlighted */
#board-area { width: var(--ba-w, auto); }
#holdings { display: grid; grid-template-columns: 1fr; grid-auto-rows: var(--hd-row, 21px); gap: 1px 4px; padding: 2px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(190,160,255,.35); font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; box-sizing: border-box; }
#holdings .hd-pair { display: flex; gap: 4px; min-width: 0; }
#holdings .hd-pair .hd-row { flex: 1 1 auto; }
#holdings .hd-pair .hd-gap { flex: 1 1 auto; min-width: 0; } /* ac34: 5 players — the lone last line keeps the column shape */
/* ac34 (Hodaya m:18fe27bf): 4–6 players read DOWN two real columns (שלך, then מחשב 1 under it, …). The pairs dissolve into one
   2-column grid so every row of a column starts on the same edge; each column takes its content width (base 0, so it can
   shrink and fitHoldings tightens), the spare room is shared. */
#holdings.cols-2 { grid-template-columns: minmax(0, auto) minmax(0, auto); }
#holdings.cols-2 .hd-pair { display: contents; }
#holdings:empty { visibility: hidden; }
#holdings .hd-row { min-width: 0; display: flex; align-items: center; gap: .35em; padding: 0 5px; border-radius: 6px; white-space: nowrap; overflow: hidden;
  background: rgba(20,6,52,.55); border: 1px solid transparent; line-height: 1.15; }
#holdings .hd-row.me { background: linear-gradient(90deg, rgba(255,200,60,.42), rgba(255,214,110,.22)); border-color: var(--gold); box-shadow: 0 0 6px rgba(255,214,110,.35); }
#holdings .hd-lbl { flex: none; max-width: 5.6em; overflow: hidden; text-overflow: ellipsis; font-weight: 900; color: color-mix(in srgb, var(--pc) 55%, white); }
#holdings .hd-row.me .hd-lbl { color: var(--gold); }
#holdings .hd-items { display: flex; align-items: center; gap: .28em; min-width: 0; }
#holdings .hd-none { color: #b9a8e8; font-weight: 600; font-size: .92em; }
/* ac19 (Hodaya): holdings chips = plain hotel colour, full name + share count; no hotel drawing, no chain size. Degrades: short name -> tighter -> colour + number */
#holdings .hd-chip { background: var(--cc); color: var(--ci); box-shadow: 0 0 0 1px rgba(0,0,0,.32); gap: .26em; padding: 0 .34em; border-radius: .35em; font-weight: 800; }
#holdings .hd-chip b { font-weight: 900; }
#holdings .hd-chip .u-a { display: none; }
#holdings .hd-row.abbr .hd-chip .u-n { display: none; }
#holdings .hd-row.abbr .hd-chip .u-a { display: inline; }
#holdings .hd-row.tight { gap: .25em; padding: 0 3px; }
#holdings .hd-row.tight .hd-items { gap: .2em; }
#holdings .hd-row.tight .hd-chip { padding: 0 .22em; gap: .16em; }
#holdings .hd-row.nonm .hd-chip .u-n, #holdings .hd-row.nonm .hd-chip .u-a { display: none; }
#holdings .hd-row.nonm .hd-chip { min-width: 1.35em; justify-content: center; padding: 0 .2em; }
#holdings .hd-row.mini { gap: .18em; padding: 0 2px; }
#holdings .hd-row.mini .hd-items { gap: .14em; }
#holdings .hd-row.mini .hd-chip { min-width: 1.15em; padding: 0 .1em; }
/* ac29 (Hodaya 1:01 AM Oct 16): during a merger turn, a chip whose count a merger decision / the maker's buys just changed shows the change ("+3" / "−1"), outlined; pulses once */
/* ac33: 4–6 players — every holding is a round circle in the hotel colour with the count, no names */
#holdings .hd-row.circ .hd-chip { background: none; box-shadow: none; padding: 0; gap: .12em; min-width: 0; border-radius: 0; }
#holdings .hd-row.circ .hd-chip .u-n, #holdings .hd-row.circ .hd-chip .u-a { display: none; }
#holdings .hd-row.circ .hd-chip b { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none;
  width: 1.5em; height: 1.5em; border-radius: 50%; font-size: .8em; line-height: 1; letter-spacing: -.03em; direction: ltr;
  background: var(--cc); color: var(--ci); box-shadow: 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25); }
#holdings .hd-row.circ .hd-items { gap: .22em; }
#holdings .hd-row.circ.tight .hd-items { gap: .14em; }
#holdings .hd-row.circ.mini .hd-chip b { width: 1.42em; height: 1.42em; }
#holdings .hd-row.circ .hd-chip.chg { box-shadow: none; }
#holdings .hd-row.circ .hd-chip.chg b { box-shadow: 0 0 0 1.5px #fff, 0 0 6px 1px rgba(255,255,255,.55); }
#holdings .hd-row.circ .hd-chip.chg::after { font-size: .66em; padding: 0 .2em; }
#holdings .hd-chip.chg { box-shadow: 0 0 0 1.5px #fff, 0 0 7px 1px rgba(255,255,255,.55); }
#holdings .hd-chip.chg::after { content: attr(data-d); direction: ltr; unicode-bidi: isolate; font-size: .72em; font-weight: 900; line-height: 1.25; padding: 0 .28em; border-radius: .7em; background: #fff; color: #0b7a2e; }
#holdings .hd-chip.chg.down::after { color: #b3122e; }
#holdings .hd-row.mini .hd-chip.chg::after { padding: 0 .16em; }
#holdings .hd-chip.fresh { animation: hdPulse 1.1s ease-out 1; }
@keyframes hdPulse { 0% { transform: scale(1); box-shadow: 0 0 0 1.5px #fff, 0 0 0 0 rgba(255,255,255,.9); } 35% { transform: scale(1.14); box-shadow: 0 0 0 2px #fff, 0 0 12px 4px rgba(255,255,255,.8); } 100% { transform: scale(1); box-shadow: 0 0 0 1.5px #fff, 0 0 7px 1px rgba(255,255,255,.55); } }

/* ac13: the side panel is wider now (smaller board); keep the inline total at >=15px */
.buysum .bs-total { font-size: .95em; }

/* ac16 (Hodaya): give back a share picked this turn — − next to + in the stock list, × on each chip in the buy bar */
.mrow .bcol { display: flex; align-items: center; justify-content: flex-end; gap: 4px; overflow: visible; }
.mrow .minus { position: relative; display: inline-flex; width: 24px; height: 18px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 6px;
  background: linear-gradient(#ff9aa8, #d93a55); color: #fff; font: 900 15px/1 inherit; font-family: inherit; box-shadow: 0 1px 0 #7a1024; cursor: pointer; touch-action: manipulation; }
.mrow .minus::after { content: ''; position: absolute; top: -5px; right: -2px; bottom: -5px; left: -2px; inset: -5px -2px; }
.mrow .minus:active { transform: scale(.9); filter: brightness(1.15); }
.mrow .plus.no { opacity: .28; filter: grayscale(1); }
.mrow.back:not(.can) { background: rgba(255,120,140,.08); }
.buysum .bs-chip { cursor: pointer; touch-action: manipulation; }
.buysum .bs-chip:active { transform: scale(.94); filter: brightness(1.12); }
.buysum .bs-x { display: inline-flex; width: 1.05em; height: 1.05em; align-items: center; justify-content: center; border-radius: 50%; margin-inline-start: .1em;
  background: rgba(0,0,0,.3); color: #fff; font-style: normal; font-size: .62em; font-weight: 900; line-height: 1; }

/* ac17 (Hodaya): mergers explained — announcement before any decision, then every player's choice */
#sheet.modal-mergeAnn, #sheet.modal-merger { width: min(760px, 100%); padding: 8px 14px 10px; }
.ann-top { text-align: center; font-size: 24px; font-weight: 900; color: var(--gold); line-height: 1.15; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.ann-h { text-align: center; font-size: 18px; font-weight: 700; line-height: 1.45; margin: 2px 0 6px; }
.ann-h small { color: #c9b8f5; font-weight: 600; }
.ann-h .u-chip, .mbox .u-chip, .before .u-chip { font-size: 1em; }
.gold { color: var(--gold); }
.dn { color: color-mix(in srgb, var(--pc) 60%, white); font-weight: 900; white-space: nowrap; }
.pdot2 { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--pc); margin-inline-end: .25em; box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); vertical-align: .05em; }
.mbox { margin: 5px 0; padding: 5px 9px 6px; border-radius: 11px; border: 2px solid var(--cc); border-inline-start-width: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 20%, #1b0a40), #1b0a40 70%); font-size: 16px; }
.mb-h { font-size: 17px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mb-h .u-chip { font-size: 18px; }
.mb-bon { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 3px; font-size: 16px; }
.bz { white-space: nowrap; }
.bz small { color: #c9b8f5; }
.mbox em { font-style: normal; font-weight: 900; }
.mb-dl { margin-top: 4px; border-top: 1px dashed rgba(255,255,255,.25); padding-top: 3px; }
.drow, .mbuy { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 17px; line-height: 1.5; }
.drow .dn, .mbuy .dn { min-width: 4.6em; }
.drow.wait { color: #c9b8f5; }
.drow.wait.me { color: var(--gold); font-weight: 800; }
.drow.none { color: #c9b8f5; font-size: 15px; }
.dz { white-space: nowrap; }
.dz.sell b, .dz.trade b, .dz.kept b { font-size: 1.12em; color: #fff; }
.morder { text-align: center; font-size: 14.5px; font-weight: 700; color: #e9dcff; margin: 0 0 4px; }
.morder b { color: var(--gold); font-size: 1.1em; }
.mbuy { font-weight: 700; margin: 2px -4px; padding: 2px 6px; border-radius: 8px; background: rgba(255,207,74,.14); border: 1.5px solid var(--gold); }
.mbuy .u-chip { font-size: 1em; }
.mbuy .mb-o { color: #d8cbff; font-weight: 600; font-size: .85em; }
#actions .btn.mdone { font-weight: 900; }
.ann-you { margin: 6px 0 0; padding: 5px 10px; border-radius: 10px; background: rgba(255,207,74,.16); border: 1.5px solid var(--gold); text-align: center; font-size: 17px; font-weight: 700; }
.ann-you.dim { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); color: #d8cbff; font-weight: 600; }
#sheet .btn.big.wide { margin-top: 8px; font-size: 19px; padding: 11px 20px; }
#sheet h3 small.by { font-size: 13px; color: #c9b8f5; font-weight: 600; }
.before { text-align: center; font-size: 14.5px; margin: -2px 0 6px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.07); }
@media (max-height: 374px) { .morder { font-size: 13.5px; } .ann-top { font-size: 21px; } .ann-h { font-size: 16.5px; } .mbox, .mb-bon { font-size: 15px; } .drow, .mbuy { font-size: 16px; } .mb-h { font-size: 16px; } }

/* ac17 (Hodaya): the tile she placed stays in her hand row, marked, until "סיום תור"; and glows on the board */
.htile.placed { background: linear-gradient(#fff3c4, #ffd45e); color: #3a1d00; box-shadow: 0 0 0 2.5px var(--gold), 0 0 10px rgba(255,207,74,.85); font-weight: 900; padding-bottom: 7px; line-height: 1; }
.htile.placed i { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 9.5px; font-style: normal; font-weight: 900; color: #1f7a2a; line-height: 1; }
#board .cell.placed { z-index: 3; outline: 4px solid #ffd21f !important; outline-offset: -2px; box-shadow: inset 0 0 0 1.5px #3a1d00 !important; animation: placedGlow 1.3s ease-in-out infinite alternate; }
@keyframes placedGlow { from { filter: drop-shadow(0 0 1px rgba(255,207,74,.4)); } to { filter: drop-shadow(0 0 7px rgba(255,207,74,1)) brightness(1.12); } }
#actions .btn.takeback { background: linear-gradient(#fff, #e6dcff); color: #3d1a7a; border: 2px solid var(--gold); font-weight: 900; white-space: nowrap; flex: none; box-shadow: 0 2px 0 #5a3fa8; }
#actions .btn.takeback:active { transform: scale(.95); }

/* ac17 (Hodaya 8:22 PM): every hotel's tile count, clearly, next to its name (🔒 = safe, 11+) */
.mrow .szc { overflow: visible; }
.mrow .szb { display: inline-flex; align-items: center; gap: 1px; padding: 0 5px; border-radius: 7px; background: #fff; color: #2a0f5c; font-size: 13.5px; font-weight: 900; line-height: 1.3; box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.mrow .szb.safe { background: #ffe07a; color: #3a1d00; }
.mrow.mhead .szc { color: #fff; } /* ac28: the 2nd header cell is מחיר now, back to muted */
.u-sz { font-style: normal; font-weight: 900; font-size: .8em; padding: 0 .28em; margin-inline-start: .15em; border-radius: .35em; background: rgba(255,255,255,.82); color: #2a0f5c; line-height: 1.25; }
.u-sz.safe { background: #fff1b0; }
#board .cell .cn { display: none; }
#board .cell.tile.ch.cnt .bld { display: none; }
#board .cell.tile.ch.cnt .cn { display: block; position: absolute; top: 5%; left: 50%; transform: translateX(-50%); min-width: 52%; padding: 0 2px; box-sizing: border-box; text-align: center;
  font-size: calc(var(--cell) * .36); line-height: 1.05; font-weight: 900; color: #2a0f5c; background: #fff; border-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.6); z-index: 6; }
#board .cell.tile.ch.cnt.safe .cn { background: #ffe07a; color: #3a1d00; box-shadow: 0 0 0 1.5px #3a1d00, 0 1px 2px rgba(0,0,0,.6); }
#board .cell.tile.ch.cnt span { margin-top: calc(var(--cell) * .38); margin-bottom: 0; font-size: calc(var(--cell) * .24); }
#board .cell.tile.ch.named .cn { display: none !important; }
.buysum.nosz .u-sz { display: none; }
.buysum .u-sz { font-size: .66em; padding: 0 .16em; margin-inline-start: .08em; }

/* ac18 (Hodaya 9:33 PM): merger screens dock beside the board so the board (and the merged hotels) stay visible */
#sheet-wrap.dock { background: transparent; justify-content: flex-end; align-items: stretch; padding: calc(var(--sat) + 4px) calc(var(--sar) + 4px) calc(var(--sab) + 4px) var(--dockL, 50%); }
#sheet-wrap.dock #sheet { width: 100%; max-height: 100%; padding: 6px 10px 0; border-radius: 12px; border-color: var(--gold); box-shadow: -6px 0 22px rgba(0,0,0,.55); }
#sheet-wrap.dock #sheet h3 { font-size: 16px; margin: 0 0 4px; }
#sheet-wrap.dock .ann-top { font-size: 19px; line-height: 1.1; }
#sheet-wrap.dock .ann-h { font-size: 14.5px; line-height: 1.35; margin: 1px 0 3px; }
#sheet-wrap.dock .morder { font-size: 12.5px; margin: 0 0 2px; }
#sheet-wrap.dock .mbox { margin: 3px 0; padding: 3px 7px 4px; font-size: 14px; }
#sheet-wrap.dock .mb-h, #sheet-wrap.dock .mb-bon { font-size: 14px; }
#sheet-wrap.dock .drow, #sheet-wrap.dock .mbuy { font-size: 14.5px; }
#sheet-wrap.dock .ann-you { font-size: 14.5px; padding: 3px 8px; margin: 4px 0 0; }
#sheet-wrap.dock .before { font-size: 13.5px; margin: 0 0 4px; }
#sheet-wrap.dock #sheet [data-x], #sheet-wrap.dock #sheet [data-q="ok"] { position: sticky; bottom: 0; z-index: 2; margin: 6px 0 0; font-size: 17px; padding: 9px 14px; box-shadow: 0 -8px 12px #1b0a40, 0 6px 0 #1b0a40; }
#sheet-wrap.dock #sheet .btn.big.wide { margin-top: 6px; }

/* ac18: a trade that is impossible is grey, with the reason */
#sheet .btn.off, #sheet .step button.off { opacity: .38; filter: grayscale(1); }
.tnote { margin: 4px 0 0; padding: 3px 8px; border-radius: 8px; background: rgba(255,90,90,.14); border: 1px solid rgba(255,120,120,.5); font-size: 13.5px; font-weight: 700; color: #ffd0d0; text-align: center; }

/* ac20 (Hodaya 2:42 AM): one decision screen for every swallowed chain — a row per hotel, its name in its own colour, sell / trade / keep beside it */
#sheet.dispose h3.dhead { font-size: 16px; line-height: 1.35; margin: 0 0 4px; text-align: center; }
#sheet.dispose h3.dhead .u-chip { font-size: 1em; }
#sheet.dispose h3.dhead small.by { font-size: 13px; color: var(--muted); font-weight: 600; }
.dsub { font-size: 13.5px; margin: 0 0 3px; color: var(--muted); }
.drow2 { margin: 0 0 6px; padding: 4px 8px 5px; border-radius: 10px; border: 2px solid var(--cc); border-inline-start-width: 9px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 16%, transparent), color-mix(in srgb, var(--cc) 6%, transparent)); }
.dr-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.dname { display: inline-block; padding: 1px 10px; border-radius: 8px; background: var(--cc); color: var(--ci); font-size: 18px; font-weight: 900; line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 1px 0 var(--cd); white-space: nowrap; }
.dcnt { font-size: 14.5px; white-space: nowrap; }
.dcnt b { font-size: 16px; }
.dq { margin-inline-start: auto; display: inline-flex; gap: 4px; }
.dq .btn.small { font-size: 12.5px; padding: 3px 8px; min-height: 0; }
.dr-c { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.dr-c .step { margin: 3px 0; gap: 4px; }
.dr-c .step .sl { width: auto; font-size: 14px; font-weight: 700; }
.dr-c .step button { width: 32px; height: 30px; }
.dr-c .step b { width: 22px; }
.dr-c .keep { font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; }
.dr-c .keep b { font-size: 17px; }
.dr-f { display: flex; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); line-height: 1.3; }
.dr-f .dget { color: #fff; font-weight: 800; white-space: nowrap; }
.drow2 .tnote { margin-top: 3px; }
#sheet-wrap.dock #sheet.dispose h3.dhead { font-size: 15px; margin: 0 0 3px; }

/* ac20 compact pass: header line with the quick buttons, 3 rows fit beside the board at 932×430 */
#sheet .drow2 .dq .btn.small { font-size: 12px; padding: 2px 7px; min-height: 0; min-width: 0; height: 26px; line-height: 1; border-radius: 8px; margin: 0; }
#sheet .drow2 .dr-c .step button { height: 28px; }
#sheet .drow2 .dr-h { gap: 5px; min-height: 26px; }
#sheet .drow2 { margin-bottom: 5px; padding: 3px 7px 4px; }
#sheet .drow2 .dcnt { font-size: 14px; }

#sheet .drow2 .dr-f { align-items: center; margin-top: 1px; }
#sheet .drow2 .dr-h .dget { margin-inline-start: auto; font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; }
#sheet .drow2 .dr-f { font-size: 12.5px; gap: 2px 6px; }
#sheet .drow2 .dbon b { font-weight: 800; }

/* ac21 (Hodaya, Oct 14 2026: "שיהיה כאן ... בכתב לבן פשוט בדיוק כמו שרשום בחרי אריח מהיד / לא צריך את הכיתוב הגדול מתחת הלוח"):
   the last finished turn is one plain white line in the side panel under the hand, same look as the "בחרי אריח מהיד" hint;
   the big gold box under the board is gone and the board took its height (bigger tiles, bigger coordinates). */
#actions .ltline { flex: 1 0 100%; display: block; line-height: 1.3; overflow: hidden; }
#actions .ltline.c2 { display: -webkit-box; -webkit-line-clamp: 2; }
#actions .ltline.c3 { display: -webkit-box; -webkit-line-clamp: 3; }
/* ac21: the bigger board leaves the docked merger panel ~36px narrower — tighter row spacing so a 3-hotel panel still fits at 932×430 */
#sheet-wrap.dock #sheet.dispose { padding-left: 8px; padding-right: 8px; }
#sheet-wrap.dock #sheet .drow2 { padding-left: 5px; padding-right: 5px; }
#sheet-wrap.dock #sheet .drow2 .dr-c { gap: 4px 6px; }
#sheet-wrap.dock #sheet .drow2 .dr-f { gap: 2px 4px; }
#sheet-wrap.dock #sheet .drow2 .dq { gap: 3px; }
#sheet-wrap.dock #sheet .drow2 .dq .btn.small { padding: 2px 5px; }

/* ac22 (Hodaya Oct 14 2026 11:37 AM): the buy bar after a merger — hint never squeezed into a thin column, the bar never spills up under the hand */
#actions.buying.hmin .bs-hint { min-width: 6.5em; }
#actions.buying.over { align-content: flex-start; }
#actions.bt1 .bs-hint .gb { display: none; }
#actions.bt2 .bs-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#actions.bt4 .bs-hint { display: none; }
#side.buytight #hand, #side.buytight #hand .htile { min-height: 28px; height: 28px; }
#side.buytight .buysum { height: 30px; }
/* ac22 (11:43 AM): the docked merger panel stops above her tile hand (--dockB, set in dockSheet); taller content scrolls inside, the main button stays sticky */
#sheet-wrap.dock { padding-bottom: var(--dockB, calc(var(--sab) + 4px)); }
/* ac22 (11:46 AM "האיקס לביטול לא עובד"): the ⓧ is bigger and carries an invisible ~34px hit area; the whole chip stays tappable */
.buysum .bs-x { position: relative; width: 1.25em; height: 1.25em; font-size: .66em; }
.buysum .bs-x::after { content: ''; position: absolute; top: -11px; right: -9px; bottom: -11px; left: -9px; inset: -11px -9px; }
.buysum .bs-chip { position: relative; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
#actions.bt5 .bs-hint.bs-total2 { font-size: 13px; line-height: 1.1; }
#actions.bt5 .btn.small { padding-left: 6px; padding-right: 6px; }
#actions.bt5 .btn.gold { padding-left: 9px; padding-right: 9px; }

/* ac23 (Hodaya Oct 14 2026 7:59 PM: "too much text — make it easy to trade, take money, or do nothing"):
   merger decision = three big choices per swallowed hotel. Docked, it splits around the price list (#market) and her hand. */
#sheet.dz { padding: 6px 8px 8px; }
#sheet.dz .dz-top, #sheet.dz .dz-bot { background: linear-gradient(170deg, #2e1468, #1b0a40); }
.dz-head { font-size: 15px; font-weight: 800; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; margin: 0 0 4px; }
.dz-head .u-chip { font-size: 1em; }
.dz-row { margin: 0 0 4px; }
.dz-lab { font-size: 13px; font-weight: 700; margin: 0 2px 2px; white-space: nowrap; }
.dz-lab .u-chip { font-size: 1em; }
.dz-cards { display: flex; gap: 5px; align-items: stretch; }
.dz-card { flex: 1.3 1 0; min-width: 0; display: flex; align-items: stretch; border-radius: 11px; border: 2px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); overflow: hidden; min-height: 50px; }
.dz-card.keep { flex: 1 1 0; }
.dz-card.on { border-color: var(--gold); background: rgba(242,194,27,.18); box-shadow: 0 0 0 1px var(--gold) inset; }
.dz-card.off { opacity: .45; filter: grayscale(.8); }
.dz-card button { background: none; border: 0; color: inherit; font: inherit; padding: 0; margin: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.dz-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 2px; cursor: pointer; }
.dz-t { display: block; max-width: 100%; font-size: 16px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.dz-n { font-size: 1.12em; }
.dz-s { display: block; max-width: 100%; font-size: 12px; font-weight: 600; color: #e6dcff; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.dz-card.on .dz-s { color: #fff; }
.dz-s b { color: #fff; font-weight: 900; }
.dz-pm { flex: none; width: 30px; font-size: 21px !important; font-weight: 900 !important; background: rgba(255,255,255,.10) !important; cursor: pointer; }
.dz-pm:disabled { opacity: .3; }
.dz-foot { display: flex; align-items: center; gap: 8px; height: 100%; }
.dz-sum { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; }
#sheet .dz-ok { flex: none; min-width: 120px; font-size: 18px; padding: 8px 16px; margin: 0; }
#sheet .dz-remerge { flex: none; font-size: 12.5px; padding: 4px 8px; margin: 0; }
#sheet.dz .dz-bot { margin-top: 6px; }
/* docked split: the wrap is the side column's own box; the panel's top and bottom parts frame the price list and hand */
#sheet-wrap.dock.split { padding-top: var(--dzWT, 4px); padding-bottom: var(--dzWB, 4px); }
#sheet-wrap.dock.split #sheet.dz { display: flex; flex-direction: column; height: 100%; max-height: 100%; overflow: visible; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
#sheet-wrap.dock.split #sheet.dz .dz-top { flex: none; min-height: var(--dzT); max-height: var(--dzTmax); overflow-y: auto; display: flex; flex-direction: column; padding: 4px 6px 5px; border: 1.5px solid var(--gold); border-radius: 12px; box-shadow: -6px 0 22px rgba(0,0,0,.55); }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-rows { flex: 1 1 auto; display: flex; flex-direction: column; }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-row { flex: 1 1 auto; display: flex; margin: 0; }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-cards { flex: 1 1 auto; }
#sheet-wrap.dock.split #sheet.dz .dz-head { font-size: 14px; margin: 0 0 3px; }
#sheet-wrap.dock.split #sheet.dz .dz-gap { flex: 1 1 auto; min-height: 0; pointer-events: none; }
#sheet-wrap.dock.split #sheet.dz .dz-bot { flex: none; height: var(--dzB); margin: 0; padding: 4px 6px; border: 1.5px solid var(--gold); border-radius: 12px; box-shadow: -6px 0 22px rgba(0,0,0,.55); }
#sheet-wrap.dock.split #sheet.dz .dz-ok { height: 100%; max-height: 52px; }
#sheet-wrap.dock.split { pointer-events: none; }
#sheet-wrap.dock.split #sheet.dz .dz-top, #sheet-wrap.dock.split #sheet.dz .dz-bot { pointer-events: auto; }
#sheet.dz.narrow .dz-e { display: none; }
#sheet.dz.narrow .dz-pm { width: 25px; }
#sheet.dz.narrow .dz-cards { gap: 4px; }
#sheet.dz.multi .dz-head { white-space: normal; }
#sheet.dz.narrow2 .dz-sv, #sheet.dz.narrow2 .dz-g { display: none; }

/* ac24: a swallowed chain stays on the board in its own colour until the merger's turn ends — subtle stripes + dashed name tag */
#board .cell.tile.ch.gone { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.26) 0 3px, transparent 3px 8px); }
.clabel.gone { border: 1.5px dashed #fff; }

/* ac25: two-step merger decision — a tap selects (✓ on the card), ✓ אישור stays grey until every hotel has a choice; "↩ שנה" undo */
.dz-card { position: relative; }
.dz-card.on::after { content: '✓'; position: absolute; top: 1px; left: 3px; font-size: 11px; line-height: 1; font-weight: 900; color: #1a1a1a; background: var(--gold); border-radius: 50%; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#sheet .dz-ok.off { background: rgba(255,255,255,.14); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.25); box-shadow: none; }
#sheet .dz-ok.ready { animation: dzReady 1.1s ease-in-out 2; }
@keyframes dzReady { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); box-shadow: 0 0 0 3px rgba(242,194,27,.45); } }
.dz-pick { color: #ffe27a; font-weight: 700; }
.dz-row.nudge .dz-card { animation: dzNudge .5s ease-in-out 1; }
@keyframes dzNudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#actions.nomk .mk-n { display: none; }

/* ac26: merger results without the top part; ↩ שנה beside המשך ← in one sticky row */
#sheet .mres-bot { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 0; position: sticky; bottom: 0; z-index: 2; background: #1b0a40; box-shadow: 0 -8px 12px #1b0a40; }
#sheet .mres-bot [data-x] { position: static !important; flex: 1 1 auto; margin: 0 !important; box-shadow: none !important; width: auto; min-width: 0; }
#sheet .mres-bot .undodisp { flex: 0 0 auto; white-space: nowrap; margin: 0; }
.mb-h .u-chip.mb-sv { font-size: 1em; }
/* ac26: ₪ and ? moved into ☰; hotels not on the board as small colour squares in their place */
.tb-btns .tb-hide { display: none !important; }
.tb-btns { align-items: center; }
#outchips { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; width: 70px; height: 38px; cursor: pointer; }
#outchips.none { width: 0; }
#outchips .oc { font-style: normal; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px;
  background: var(--cc); color: var(--ci); border: 1px solid var(--cd); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); font-size: 11px; font-weight: 900; line-height: 1; }
#outchips.one .oc { width: 16px; height: 22px; font-size: 12px; }

/* ac27: small print in the decision panel — what each other player already did ("מחשב 1: מכר 3 · המיר 2 · שמר 1") */
.dz-oth { font-size: 10.5px; line-height: 1.3; font-weight: 600; text-align: center; color: #e9e2ff; opacity: .9; margin: -2px 0 4px;
  max-height: 2.7em; overflow: hidden; white-space: normal; }
.dz-oth .dzo-p { white-space: nowrap; display: inline-block; margin: 0 5px; }
.dz-oth .dzo-n { color: var(--pc, #fff); font-weight: 800; }
.dz-oth b { color: #fff; }
.dz-oth .dzo-c { font-style: normal; font-weight: 800; color: var(--cc, #fff); }
.dz-oth .dzo-w { opacity: .7; font-weight: 500; }
.dz-oth .dzo-c .cs { display: none; }
.dz-oth.tight .dzo-c .cl { display: none; }
.dz-oth.tight .dzo-c .cs { display: inline; }
.dz-oth.tight2 .dzo-none { display: none; }
#sheet-wrap.dock.split #sheet.dz .dz-oth { white-space: nowrap; max-height: 1.4em; margin: -1px 0 2px; }
#sheet-wrap.dock.split #sheet.dz .dz-oth.wrap2 { white-space: normal; max-height: 2.7em; }
/* docked beside the price list the panel has no spare height: with the small line it gets a little tighter instead of growing over the prices */
#sheet-wrap.dock.split #sheet.dz .dz-top:has(.dz-oth) { padding-top: 2px; padding-bottom: 3px; }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-top:has(.dz-oth) { height: var(--dzT); min-height: 0; }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-top:has(.dz-oth) .dz-rows, #sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-top:has(.dz-oth) .dz-row { min-height: 0; }
#sheet-wrap.dock.split #sheet.dz .dz-top:has(.dz-oth) .dz-head { font-size: 13px; line-height: 1.15; margin-bottom: 0; }
#sheet-wrap.dock.split #sheet.dz .dz-oth { font-size: 10px; line-height: 1.2; margin: 0 0 2px; }
#sheet-wrap.dock.split #sheet.dz .dz-top:has(.dz-oth) .dz-card { min-height: 45px; }
.setup-kind { font-size: 13px; font-weight: 700; opacity: .85; white-space: nowrap; padding: 0 6px; }
/* ac27 online-by-code */
.on-col input.on-code { font-family: ui-monospace, monospace; font-size: 30px; letter-spacing: 8px; text-align: center; text-transform: uppercase; padding: 6px 10px; }
.lb-waiting { color: #ffd34a; font-weight: 700; }
.lb-waiting .dots i { font-style: normal; animation: lbdot 1.2s infinite; opacity: .2; }
.lb-waiting .dots i:nth-child(2) { animation-delay: .2s; } .lb-waiting .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lbdot { 50% { opacity: 1; } }
#inv-send { font-size: 16px; }
.inv-code b { font-size: 34px; }
.menu .menu-row { display: flex; gap: 8px; }
.menu .menu-row .btn { flex: 1 1 0; margin: 0; }

/* ac28 (Hodaya 12:47 AM Oct 16): the "אריחים" column is gone; the tile count is a plain small number right after the hotel's name.
   Its 46px went to the name (the full name + the number fit) and to מחיר / שלך. */
.mrow .mc { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.mrow .mc .badge { flex: none; min-width: 74px; justify-content: center; } /* no building icon (ac28 12:49 AM); same width for every hotel so the numbers line up (widest name ≈70px) */
.mrow .mcnt { flex: none; font-style: normal; font-weight: 800; font-size: 12.5px; color: #fff; line-height: 1; }

/* ac30: "🏁 סיים משחק" in the buy step (when the game can end) + two last-resort fit steps for the buy bar */
#actions .btn.endgame { background: linear-gradient(#ff6b6b, #c0262d); color: #fff; font-size: 14px; font-weight: 900; padding: 7px 11px; border-radius: 11px; border: 2px solid var(--gold); white-space: nowrap; flex: none; box-shadow: 0 2px 0 #6a0f14; }
#actions .btn.gold { white-space: nowrap; }
#actions.bt6 .btn, #actions.bt6 .btn.small, #actions.bt6 .btn.endgame { font-size: 12.5px; padding: 5px 7px; min-height: 30px; } /* tap target stays >= 30px (ac25) */
#actions.bt6 { column-gap: 4px; }
#actions.bt7 .bs-hint:not(.bs-total2) { display: none; }
#actions.bt7 .bs-hint.bs-total2 { font-size: 12px; min-width: 0; }
#actions.bt8 .bs-hint { display: none; }
#actions .bs-hint.bs-total2 bdi { white-space: nowrap; }
#actions.bt7 .takeback .tbl { display: none; }

/* ac30: one "🌐 משחק אונליין" → this screen with the two choices side by side (landscape) */
#online-body.choose { flex-direction: column; gap: 8px; padding-top: max(10px, env(safe-area-inset-top)); }
.on-head { display: flex; align-items: center; gap: 12px; flex: none; }
.on-head h2 { margin: 0; font-size: 22px; color: #ffd34a; }
.on-head .on-sub { font-size: 13px; color: #d9cdf7; }
.on-choices { flex: 1; min-height: 0; display: flex; gap: 14px; align-items: stretch; }
.on-choice { position: relative; justify-content: flex-start; background: rgba(255,255,255,.06); border: 1.5px solid #5a3fa8; border-radius: 16px; padding: 12px 14px; gap: 7px; overflow: auto; }
.on-choice h3 { margin: 0; font-size: 19px; color: #fff; padding-inline-start: 34px; line-height: 28px; }
.on-choice .on-num { position: absolute; top: 12px; inset-inline-start: 14px; width: 26px; height: 26px; border-radius: 50%; background: #ffd34a; color: #2a1500; font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.on-choice .btn.big { padding: 11px 14px; }
#on-c-create .btn.small { align-self: stretch; }
@media (max-height: 380px) { .on-choice { padding: 9px 12px; gap: 6px; } .on-col input.on-code { font-size: 26px; padding: 4px 8px; } .on-col input[type=text] { padding: 7px 10px; } .on-choice h3 { font-size: 17px; } }

/* i18n (Oct 17 2026): per-phone language. English = dir ltr on <html>; the board grid is ltr in both languages already. */
[dir=ltr] #board .cell span, [dir=ltr] .htile, [dir=ltr] .clabel, [dir=ltr] .hotel-ex .ml2, [dir=ltr] .pchip .pc, [dir=ltr] #under { direction: ltr; }
.lang-seg { direction: ltr; flex: none; }
.lang-seg button { padding: 4px 10px; font-size: 13px; }
.lang-title { position: absolute; top: calc(8px + var(--sat, 0px)); inset-inline-end: calc(12px + var(--sar, 0px)); z-index: 3; }
[dir=ltr] .title-side { background: linear-gradient(90deg, rgba(9,3,32,0) 0%, rgba(9,3,32,.72) 28%, rgba(9,3,32,.86)); }
.menu-lang { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: #d9cdf7; }
.on-head .lang-seg { margin-inline-start: auto; }
#online-body .on-col > .lang-seg { align-self: flex-end; }
[dir=ltr] .dz-card.trade, [dir=ltr] .dz-card.sell { flex-direction: row-reverse; } /* LTR: − on the left, + on the right */

/* ac35: tie merger — tap the hotel that falls */
.cpick { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.cpick .fall-to { font-size: 11px; color: #ffd76a; font-weight: 700; white-space: nowrap; }
.tie-out { margin: 2px 0; }
.tie-out .btn { margin-inline-start: 6px; }
/* ac35: every turn since hers, under the actions; scrolls inside when it is long (newest at the bottom) */
#recap { flex: 0 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 1px; padding: 0 2px; }
#recap.empty { display: none; }
#recap .rc-line { flex: none; font-size: 12px; line-height: 1.3; color: var(--ink); border-inline-start: 3px solid var(--pc); padding-inline-start: 5px; }
#recap .rc-line.fresh { animation: rcfresh 1.2s ease-out 1; }
@keyframes rcfresh { from { background: rgba(255, 215, 106, .25); } to { background: transparent; } }
#actions:empty { min-height: 0; flex: 0 0 0; }
#recap .rc-line { font-size: 11.5px; line-height: 1.25; }
#recap { cursor: pointer; }
#recap.more { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px); mask-image: linear-gradient(to bottom, transparent 0, #000 12px); }
#recap-full { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 40; background: rgba(8,2,24,.66); display: flex; align-items: center; justify-content: center; padding: 10px; }
#recap-full .rf-box { width: min(680px, 100%); max-height: 100%; overflow-y: auto; background: linear-gradient(170deg, #2e1468, #1b0a40); border: 1.5px solid #7a4ee0; border-radius: 16px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
#recap-full h3 { margin: 0 0 4px; font-size: 16px; text-align: center; }
#recap-full .rf-list { display: flex; flex-direction: column; gap: 4px; }
#recap-full .rc-line { font-size: 14px; line-height: 1.35; color: var(--ink); border-inline-start: 4px solid var(--pc); padding-inline-start: 7px; }
#recap-full .rf-close { align-self: center; margin-top: 4px; }
/* her buy step needs the whole bar (ac12–ac30 fitting): the recap steps aside until her turn is over */
#side.buying #recap { display: none; }

/* ac36 (Hodaya Oct 17 2026 11:11 PM): the merger panels carry the "since your turn" recap themselves (.sh-rc) —
   tie choice: under the cards; trade/sell/keep: in the bottom part, beside ✓ אישור. Tap → the full list. */
body.rc-sheet #recap { visibility: hidden; }
#sheet .sh-rc { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; cursor: pointer; padding: 0 2px; text-align: start; min-width: 0; }
#sheet .sh-rc .rc-line { flex: none; font-size: 11.5px; line-height: 1.25; font-weight: 400; color: var(--ink); border-inline-start: 3px solid var(--pc); padding-inline-start: 5px; }
#sheet .sh-rc.more { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px); mask-image: linear-gradient(to bottom, transparent 0, #000 12px); }
#sheet.mchoose .sh-rc { margin: 6px 0 4px; padding-top: 4px; border-top: 1px solid rgba(255,215,106,.35); max-height: 5.4em; }
#sheet-wrap.dock #sheet.mchoose.rcx { display: flex; flex-direction: column; }
#sheet-wrap.dock #sheet.mchoose.rcx > * { flex: none; }
#sheet-wrap.dock #sheet.mchoose.rcx > .sh-rc { flex: 1 1 auto; min-height: 44px; max-height: none; }
#sheet.dz .dz-bot.rcx { display: flex; flex-direction: column; gap: 4px; }
#sheet.dz .dz-bot.rcx .sh-rc { max-height: 4em; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx { flex-direction: row; align-items: stretch; gap: 6px; padding: 3px 5px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .sh-rc { flex: 1 1 auto; max-height: none; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot { flex: 0 0 auto; width: 40%; max-width: 190px; height: 100%; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px 4px; border-inline-start: 1px solid rgba(255,215,106,.35); padding-inline-start: 5px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-sum { flex: 1 0 100%; font-size: 12.5px; line-height: 1.2; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-ok { flex: 1 1 auto; height: auto; min-height: 32px; max-height: 44px; padding-top: 4px; padding-bottom: 4px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-remerge { font-size: 11.5px; padding: 3px 6px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .sh-rc .rc-line { font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-sum { order: -1; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot:has(.dz-remerge) { width: 46%; max-width: 220px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-remerge { flex: 0 1 auto; min-height: 32px; white-space: nowrap; }
/* ac36: the confirm column as a grid — the total on top, [🔄 שנה מיזוג] + ✓ אישור under it; everything inside the bottom part */
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; align-content: stretch; gap: 2px 4px; width: 40%; max-width: 190px; min-height: 0; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-sum { grid-column: 1 / -1; grid-row: 1; align-self: center; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-ok { grid-column: 1 / -1; grid-row: 2; min-height: 0; max-height: 44px; height: 100%; align-self: center; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot:has(.dz-remerge) .dz-ok { grid-column: 2; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-remerge { grid-column: 1; grid-row: 2; white-space: normal; width: 4.6em; min-height: 0; height: 100%; max-height: 44px; font-size: 11px; line-height: 1.1; padding: 2px 4px; align-self: center; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot:has(.dz-remerge) { width: 44%; max-width: 210px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot { grid-template-columns: auto minmax(0, 1fr); }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-ok { min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; overflow: hidden; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot:has(.dz-remerge) .dz-ok { font-size: 15.5px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .sh-rc.wrap .rc-line { white-space: normal; overflow: visible; }
#sheet.dz .dz-bot.rcx .sh-rc { max-height: 6.4em; }
#sheet.dz .dz-bot.rcx .sh-rc .rc-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sheet.dz .dz-bot.rcx .sh-rc.wrap .rc-line { white-space: normal; overflow: visible; }

/* ac37: 🔊/🔇 sound toggle in the top bar (one tap mutes every game sound; this phone only) */
.tb-btns .icon.snd { width: 28px; padding: 0; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tb-btns .icon.snd.off { opacity: .6; }
@media (max-width: 760px) { /* small phones (667x375 etc.): the 🔊 must not eat the turn banner — tighter buttons, hotel squares fit their count */
  .tb-btns { gap: 4px; }
  .tb-btns .icon.snd { width: 26px; }
  .tb-btns #btn-menu { width: 28px; }
  #outchips.one { width: auto; padding: 0 2px; }
  #outchips.two { width: 62px; }
  #outchips.two .oc { width: 13.5px; height: 15px; font-size: 10px; }
}

/* ac39: live preview of her merger choice (המר / מכור / השאר) before ✓ אישור — the new count + its change in brackets */
.pvd { font-style: normal; font-weight: 800; color: #9df0a8; font-size: .72em; letter-spacing: -.3px; }
.pvd bdi { direction: ltr; unicode-bidi: isolate; }
.mrow > span.mine.pv { overflow: visible; text-overflow: clip; color: #fff3c4; }
.mrow .mine.pv .pvd { margin-inline-start: 1px; }
.pchip .pc .pvd { font-size: 9.5px; }
#players.many .pchip .pc .pvd { display: none; }
#turninfo .tb-cash small .pvd { font-size: 9.5px; color: #b8ffbf; }
#holdings .hd-chip.pv.chg { box-shadow: 0 0 0 1.5px #ffd84a, 0 0 7px 1px rgba(255,216,74,.55); }
#holdings .hd-chip.pv.chg::after { content: '(' attr(data-d) ')'; background: #ffd84a; color: #3a1d00; }
#holdings .hd-chip.pv.chg.down::after { color: #8a0f22; }
#holdings .hd-row.circ .hd-chip.pv.chg b { box-shadow: 0 0 0 1.5px #ffd84a, 0 0 6px 1px rgba(255,216,74,.55); }

/* ac41: the merger announcement — its body scrolls inside, "המשך ←" stays below it OUTSIDE the scrolling box (an iPhone did not take
   the tap on a sticky button inside the scrolled panel: Hodaya Oct 18 2026 5:50 AM "אני לוחצת על המשך וזה לא עובד") */
#sheet.modal-mergeAnn { display: flex; flex-direction: column; overflow: hidden; }
#sheet.modal-mergeAnn .ann-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#sheet.modal-mergeAnn > .ann-go, #sheet-wrap.dock #sheet.modal-mergeAnn > .ann-go { flex: none; position: relative; bottom: auto; z-index: 2; margin: 6px 0 0; touch-action: manipulation; }
#sheet-wrap.dock #sheet.modal-mergeAnn { padding-bottom: 8px; }

/* ac43 (Hodaya Oct 18 2026 9:02 AM: "אני לא רואה את ההיסטורית קניה של המחשב"): the others' purchases */
.tb-btns .icon.buys { width: 28px; padding: 0; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
/* only where the top bar has room for it (her 932×430 Pro Max); narrower phones keep the turn banner's width (ac37/38 tests) and reach it from ☰ and the buy bar */
@media (max-width: 899px) { .tb-btns .icon.buys { display: none; } }
.buysum.empty.has-oth { justify-content: flex-start; gap: 6px; cursor: pointer; }
.buysum.empty.has-oth .bs-items { flex: none; font-size: .82em; opacity: .85; }
.buysum .bs-oth { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--ink);
  border-inline-start: 1.5px solid rgba(255,214,110,.45); padding-inline-start: 6px; cursor: pointer; touch-action: manipulation; }
.buysum .bs-oth .u-chip { font-size: 11.5px; }
.buysum .bs-oth .lt-name { color: var(--pc); }
.buysum .bs-oth .lt-sum, .buysum .bs-oth .bh-none { color: #d9cbff; font-weight: 600; }
/* v13 (Hodaya m:3573829f "תעשה לו שורה נפרדת כרגע הוא מסתיר"): the note is its own row in the side panel, between the players and the
   hotel table — it never lies over the table; while it shows, the rows under it move down and the recap gives up the room */
#buynote { flex: none; position: relative; background: #fff; color: #2a1460; font-weight: 700; padding: 2px 8px; border-radius: 12px;
  font-size: 12px; line-height: 1.4; box-shadow: 0 2px 8px rgba(0,0,0,.4); text-align: center; pointer-events: none;
  overflow: hidden; display: block; max-height: calc(2.8em + 4px); animation: bnIn .22s ease-out; }
/* v19/ac53: one line per purchase, newest last; 2 lines show, more scroll (touch scroll on, taps still go nowhere else) */
#buynote.many { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; pointer-events: auto; }
#buynote .bn-row + .bn-row { border-top: 1px solid rgba(42,20,96,.12); }
/* v19/ac53 (Hodaya: thicker hotel rows, easier +): in her buy step fitMarketRows() sets --mrowh (27–32px) when there is room */
#side.buying .mrow:not(.mhead) { height: var(--mrowh, calc((var(--vh100, 100vh) - var(--sat) - var(--sab) - 212px) / 8.2)); max-height: var(--mrowh, 26px); }
#side.buying .mrow .plus { width: 34px; height: calc(var(--mrowh, 24px) - 4px); max-height: 28px; min-height: 18px; font-size: 17px; border-radius: 7px; } /* v14: full names may wrap to a 2nd line (it is in the flow, nothing is covered) */
#buynote .u-chip { font-size: 11px; }
@keyframes bnIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
#buynote.hidden { display: none !important; }
#buynote .lt-name { color: #2a1460; }
#buynote .lt-sum { color: #5a4a8a; font-weight: 600; }
.modal-buys .buyl { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 5px; max-height: 62vh; max-height: calc(var(--vh100, 100vh) * .62); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-buys .buyl li { font-size: 14px; line-height: 1.4; border-inline-start: 4px solid var(--pc); padding-inline-start: 8px; color: var(--ink); }
.modal-buys .buyl li:first-child { background: rgba(255,214,110,.08); border-radius: 0 6px 6px 0; }
.modal-buys .bh-n { display: inline-block; min-width: 3.6em; font-size: .8em; color: #bfaeee; font-weight: 700; margin-inline-end: 4px; }
.modal-buys .lt-name { color: var(--pc); }
.modal-buys .lt-sum, .modal-buys .bh-none { color: #bfaeee; }

/* ac44 — "↩️ ביטול מהלך": the step-back arrow in the top bar (her turn only; faded while there is nothing to step back) */
.tb-btns .icon.stepback { width: auto; min-width: 40px; height: 30px; padding: 0 8px; font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold); background: linear-gradient(180deg, #4a2a92, #2c1466); box-shadow: 0 0 8px rgba(242,194,27,.35); }
.tb-btns .icon.stepback.hidden { display: none !important; }
.tb-btns .icon.stepback.off { opacity: .38; box-shadow: none; border-color: var(--line); }
.tb-btns .icon.stepback:active { transform: scale(.94); }
.dz-foot .stepback-in { flex: none; white-space: nowrap; }
.unplace-row .stepback-in { white-space: nowrap; }
@media (max-width: 720px) { .tb-btns .icon.stepback { min-width: 34px; padding: 0 5px; font-size: 15px; } }
.dz-foot .dz-stepback { min-width: 38px; padding: 0 6px; font-size: 16px; }


/* store pages (כוח ההון v3; כוח הכסף has no such pages, the rule is unused there): small Support · Privacy links in the title screen's bottom corner (over the art, outside the button column) */
.title-legal { position: absolute; bottom: calc(6px + var(--sab, 0px)); inset-inline-end: calc(12px + var(--sar, 0px)); z-index: 3; font-size: 12px; color: rgba(255,255,255,.55); background: rgba(9,3,32,.55); border-radius: 10px; padding: 2px 4px; }
.title-legal a { color: rgba(255,255,255,.75); text-decoration: none; padding: 4px 6px; display: inline-block; }
.title-legal a:active { color: #fff; }

/* v7 (כוח ההון; in כוח הכסף from ac63): title menu fits short landscape screens (Hodaya Oct 19: top/bottom were cut off) */
.title-side { max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; justify-content: safe center; padding-top: 10px; padding-bottom: 10px; }
@media (max-height: 460px) {
  .title-side { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .logo-main { font-size: 40px; }
  .logo-sub { margin-top: 3px; font-size: 13px; }
  .title-buttons { gap: 6px; }
  .title-buttons .btn { padding: 7px 14px; font-size: 15px; }
  .title-buttons .btn.big { padding: 8px 16px; font-size: 16px; }
  .title-buttons .btn.small { padding: 5px 10px; font-size: 13px; }
}
@media (max-height: 360px) {
  .logo-main { font-size: 32px; }
  .logo-sub { font-size: 12px; }
  .title-buttons { gap: 4px; }
  .title-buttons .btn, .title-buttons .btn.big { padding: 6px 12px; font-size: 14px; }
}

/* v8 (כוח ההון; כוח הכסף from ac63): English (LTR) layout has the side column on the LEFT, so the docked merger panel sits there and the board stays visible */
#sheet-wrap.dock.dock-l { justify-content: flex-start; padding-left: calc(var(--sal) + 4px); padding-right: var(--dockR, 50%); }
#sheet-wrap.dock.dock-l #sheet { box-shadow: 6px 0 22px rgba(0,0,0,.55); }
#sheet-wrap.dock.split.dock-l #sheet.dz .dz-top { box-shadow: 6px 0 22px rgba(0,0,0,.55); }
/* v9 (כוח ההון; כוח הכסף from ac63) (Hodaya Oct 19: "check if there are other things different from the Hebrew") — English (LTR) mirror fixes; Hebrew untouched */
[dir=ltr] .logl { padding-right: 0; padding-left: 20px; }   /* game log numbers: same indent as in Hebrew */
#sheet-wrap.dock.split.dock-l #sheet.dz .dz-bot { box-shadow: 6px 0 22px rgba(0,0,0,.55); }

/* v10 (כוח ההון; כוח הכסף from ac63) (Hodaya Oct 19 2026: "why does it say Y instead of you"): English turn banner on a cramped top bar — short lines, may wrap
   to two lines, a little smaller; the ▶ steps aside only then. Set by enFitBanner() in ui.js, never in Hebrew. Cash box unchanged. */
#turninfo .ts { display: none; }
#turninfo.en-tight .tf { display: none; }
#turninfo.en-tight .ts { display: inline; }
#turninfo.tb.en-tight { padding: 0 5px; gap: 4px; }
#turninfo.tb.en-tight .tb-arr { display: none; }
#turninfo.en-tight .tb-txt { justify-content: center; }
#turninfo.en-tight .tb-txt b, #turninfo.en-tight .tb-txt small { white-space: normal; text-overflow: clip; overflow: hidden; line-height: 1.04; overflow-wrap: normal; word-break: normal; }
/* v13: after her own merger decision the panel holds only "אישור / Confirm" — a small card, not a tall empty one */
#sheet.ok-only { padding-bottom: 8px; }
#sheet-wrap.dock #sheet.ok-only { align-self: center; height: auto; padding: 10px 12px 12px; }
#sheet.ok-only .mres-ok [data-x] { margin: 0; }
/* v14 house rule: sell shares of other hotels at a merger */
#sheet.sellother .so-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
#sheet.sellother .so-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
#sheet.sellother .so-row .u-chip { font-size: 15px; }
#sheet.sellother .so-have { flex: 1; min-width: 0; font-size: 13px; color: #d9cbff; }
#sheet.sellother .so-lock { display: block; font-size: 11.5px; color: #ffd76a; line-height: 1.25; margin-top: 1px; } /* ac48: trade-in shares locked this turn */
#sheet.sellother .so-dead { display: block; font-size: 11.5px; color: #ff9d9d; line-height: 1.25; margin-top: 1px; } /* ac66: swallowed hotel, merger price */
#sheet.sellother .so-dead.so-pre { color: #ffd76a; } /* ac121/v84: the buying hotel, pre-merger price */
#sheet.sellother .so-row.so-defunct { border-style: dashed; }
/* ac66: on the scaled game (#app.zk, big screens) the list scrolls and the OK row sits under it — no sticky: WebKit/Safari does not stick a sticky
   button inside the scaled (transformed) game, so on a MacBook the "✓ אישור" was under the panel's edge until she scrolled (ac65). Phones: unchanged. */
#app.zk #sheet.sellother { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
#app.zk #sheet.sellother > * { -webkit-flex: none; flex: none; }
#app.zk #sheet.sellother > .so-list { -webkit-flex: 0 1 auto; flex: 0 1 auto; min-height: 58px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#app.zk #sheet.sellother > .so-foot { position: relative; bottom: auto; }
#sheet.sellother .so-q { display: inline-flex; align-items: center; gap: 6px; }
#sheet.sellother .so-q .btn { min-width: 38px; padding: 4px 10px; font-size: 18px; line-height: 1; }
#sheet.sellother .so-n { min-width: 1.4em; text-align: center; font-size: 17px; }
#sheet.sellother .so-foot { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; position: sticky; bottom: 0; padding: 6px 0 8px; background: inherit; }
#sheet.sellother .so-foot .btn { flex: 1 1 auto; }
#sheet.sellother .so-foot .btn[disabled] { opacity: .55; }
/* ac48 (Hodaya 7:49 PM, seen in כוח ההון: the faded Skip looked like the game was stuck): Skip is a full-contrast game button, never faded */
#sheet.sellother .so-foot .so-skip { opacity: 1; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

/* v19/ac53: her buy step gives the table more room (the banner now stays the whole turn): tighter gaps, a slimmer 2-line banner, a slimmer header */
#side.buying { gap: 2px; }
#side.buying #players { margin-top: 0; }
#side.buying #buynote { line-height: 1.22; padding: 1px 8px; max-height: calc(2.44em + 2px); }
#side.buying .mrow.mhead { height: 14px; min-height: 14px; }

/* v20/ac54: "↩ חזרה למכירת מניות" — full label; on a squeezed buy bar (bt7) the short "↩ מכירה" */
#actions .takeback .tbs { display: none; }
#actions.bt7 .takeback .tbs { display: inline; }
#sheet .so-row.so-locked { opacity: .75; }
#sheet .so-row.so-locked .btn[disabled] { opacity: .35; }

/* ac55 (Hodaya 11:12 PM m:c206557e: "שמות המלונות ... קצת יותר עבים"): in HER buy step the hotel names are heavier and 1.5px bigger.
   A long name may take two short lines inside its own chip (the rows are 27–32px here) — nothing is cut. */
#side.buying .mrow:not(.mhead) .mc .badge { height: auto; min-height: 19px; padding: 1px 6px; }
#side.buying .mrow:not(.mhead) .mc .badge b { font-size: 14px; font-weight: 900; -webkit-text-stroke: .35px #fff; white-space: normal; line-height: 1.02; text-align: center; }

/* ac56 (Hodaya Oct 20 2026, m:506f1495 + option 2 m:ea3bc4c4): ONE online button on the start screen; "חזרה לשחק עם …" sits INSIDE the online screen, under "צור חדר חדש", only while her room is open */
#on-backroom-btn { width: 100%; }

/* ac57 (Hodaya Oct 21 2026 7:19 AM, screenshot: the 1-5 circles spilled out of the box): the "how many computers?" row is gone.
   The purple button says "משחק נגד מחשב N" and a row of SMALL chips 1-5 sits under it, centred, always inside the box. */
.quick-box { gap: 8px; align-items: stretch; }
.ai-chips { display: flex; justify-content: center; gap: 8px; direction: ltr; flex-wrap: nowrap; }
.ai-chips button { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; border: 2px solid #6a3bc4; background: #120530; color: #e9ddff; font-size: 16px; font-weight: 900; padding: 0; line-height: 1; }
.ai-chips button.on { background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; border-color: #fff3c4; box-shadow: 0 0 8px rgba(255,190,60,.7); }
.ai-chips button:active { transform: translateY(1px); }
@media (max-height: 360px) { .ai-chips button { width: 28px; height: 28px; flex-basis: 28px; font-size: 14px; } }
@media (orientation: portrait) { .title-side { width: min(92%, 430px); margin-inline: auto; } .ai-chips { gap: 6px; } }
/* Oct 21 2026 — room code box: the "הכנס קוד / Enter code" hint in the normal font (the typed code stays big + spaced) */
.on-col input.on-code::placeholder { font-family: inherit; font-size: 18px; letter-spacing: 0; text-transform: none; opacity: .7; }

/* ac59 (Hodaya m:a601a50b): tie panel — the premiums under each tied hotel */
.tie-grid { align-items: flex-start; flex-wrap: nowrap; }
.tie-grid.tie3 { flex-wrap: wrap; }
.tie-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1 1 0; min-width: 128px; max-width: 210px; }
.tie-bon { width: 100%; box-sizing: border-box; padding: 3px 6px 3px; border-radius: 10px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1.5px var(--cc); font-size: 11px; line-height: 1.2; text-align: start; color: #f4ecff; }
.tie-bon .tb-cap { font-size: 10.5px; font-weight: 800; color: #ffd76a; text-align: center; margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie-bon .tb-l { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.tie-bon .tb-k { white-space: nowrap; }
.tie-bon .tb-m { color: #fff; white-space: nowrap; font-size: 12px; }
.tie-bon .tb-w { font-size: 10.5px; opacity: .9; padding-inline-start: 1.5em; white-space: nowrap; }
.tie-bon .tb-l .tb-w { padding-inline-start: 0; margin-inline-start: auto; }
.tie-bon .tb-none { padding-inline-start: 0; text-align: center; }
.tie-bon .tb-who.me { color: #ffd76a; font-weight: 800; }
.tie-bon .tb-you { margin-top: 2px; padding-top: 2px; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 10.5px; opacity: .85; }
.tie-bon .tb-you.on { color: #7dffa8; opacity: 1; font-weight: 700; }
.tie-bon .tb-you.on b { font-size: 12.5px; }

/* ac61 (Hodaya 9:03 AM Oct 23): price list = hotel · tiles | price | left | one column per player (her own first, "שלך") | +/−.
   The majority holder's number sits on a yellow pill (a tie → all tied). Player headers carry the player's colour underline (same colour as the player chip).
   Player columns are at most 58px wide; spare room goes to the last (+/−) column, whose buttons stay at the far edge. */
.mrow { grid-template-columns: var(--mcw, 104px) var(--prw, 42px) var(--lfw, 34px) repeat(var(--np, 2), minmax(0, 58px)) minmax(var(--bcw, 50px), 1fr); }
#market.mp5 { --mcw: 100px; --prw: 40px; --lfw: 32px; --bcw: 46px; }
#market.nobuy { --bcw: 4px; } /* not her buy step: no +/− to show, the player columns get the room */
.mrow.mhead .mc { overflow: visible; gap: 0; }
.mrow.mhead .mc .mhn { flex: none; width: 74px; text-align: center; font-weight: 700; }
.mrow.mhead .mc .mht { flex: none; margin-inline-start: 2px; font-size: 9px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mrow.mhead .pcol { font-size: 10px; color: #e9ddff; border-bottom: 2px solid var(--pc, transparent); line-height: 12px; margin: 0 1px; padding: 0 1px; text-overflow: clip; }
.mrow.mhead .pcol.me { color: var(--gold); }
.mrow > span.pcell { display: flex; align-items: center; justify-content: center; font-size: 13px; color: #e9ddff; overflow: visible; }
.mrow > span.pcell b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 3px; border-radius: 6px; font-weight: 800; box-sizing: border-box; }
.mrow > span.pcell.me { color: var(--gold); }
.mrow > span.pcell.maj b { background: #ffe07a; color: #3a1d00; box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.mrow > span.pcell.pv { color: #fff3c4; }
.mrow > span.pcell.pv.maj b { color: #3a1d00; }
#market.mp5 .mrow > span.pcell { font-size: 12.5px; }
#market.tight .mrow > span.pcell { font-size: 11px; letter-spacing: -.3px; }
#market.tight .mrow > span.pcell b { min-width: 0; padding: 0 2px; }

/* ac62 / v28 (Hodaya Oct 23 2026 m:39210111): every room she can go back to = one row: return button + ✕ (close the room completely) */
.on-room { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.on-room .on-room-go { flex: 1 1 auto; min-width: 0; font-size: 15.5px; padding: 9px 12px; line-height: 1.25; }
.on-room .on-room-pin { display: inline-block; font-family: ui-monospace, monospace; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; padding: 1px 6px; margin-inline-start: 4px; border-radius: 8px; background: rgba(0,0,0,.25); vertical-align: 1px; }
.on-room .on-room-x { flex: 0 0 40px; width: 40px; min-height: 40px; border-radius: 12px; border: 1.5px solid #c0504d; background: rgba(192,80,77,.16); color: #ffb3ad; font-size: 19px; font-weight: 800; line-height: 1; padding: 0; cursor: pointer; font-family: inherit; }
.on-room .on-room-x:active { background: rgba(192,80,77,.4); }
.on-room.ask { flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1.5px solid #c0504d; border-radius: 12px; background: rgba(192,80,77,.12); }
.on-room.ask .on-room-q { flex: 1 0 100%; font-size: 14.5px; font-weight: 700; color: #fff; }
.on-room.ask .btn.small { flex: 1 1 0; min-height: 36px; font-size: 14px; }
.on-room.ask .on-room-yes { background: linear-gradient(#e0605a, #b23a35); box-shadow: 0 2px 0 #6e1d1a; color: #fff; }
.on-room.ask .on-room-yes:disabled { opacity: .6; }
.on-room + .on-room { margin-top: 6px; }
#on-backroom .on-lbl, #on-return .on-lbl { margin-bottom: 4px; }

/* ac64 (Hodaya m:9e216008): room names in English only — hint under the field (flashes red when a letter was dropped) + "how many friends" chips */
.on-col input.en-name { direction: ltr; text-align: start; unicode-bidi: plaintext; }
html[dir=rtl] .on-col input.en-name:placeholder-shown { direction: rtl; }
.name-hint { display: block; font-size: 12px; line-height: 1.2; color: #bfaee8; margin: -4px 2px 0; }
.name-hint.warn { color: #ff9a9a; font-weight: 800; animation: nhint .35s ease-in-out 2; }
@keyframes nhint { 50% { transform: translateX(-4px); } }
.on-col h2.inv-h { font-size: 19px; margin: 0; }
.inv-pick { justify-content: center; }
.inv-pick button { width: 44px; height: 44px; }
@media (max-height: 380px) { .on-col h2.inv-h { font-size: 17px; } .inv-pick button { width: 40px; height: 40px; font-size: 18px; } }

/* ac64: merger cards on two lines when even narrow2 does not fit (side column ~230–290px on old small phones) */
#sheet.dz.narrow3 .dz-cards { flex-wrap: wrap; }
#sheet.dz.narrow3 .dz-card { flex: 1 1 40%; margin-bottom: 4px; }
#sheet.dz.narrow3 .dz-card.keep { flex: 1 1 100%; min-height: 36px; }
#sheet-wrap.dock.split #sheet.dz.narrow3:not(.multi) .dz-row { display: block; }

/* ac64: a docked decision panel (hotel pick, tie, merger summary) is only as tall as its content, at the top of the side column —
   the rest of the price list stays in view under it (it used to stretch over the whole column); taller content still scrolls inside */
#sheet-wrap.dock:not(.split) { align-items: flex-start; }
/* ac64: tie choice in a narrow docked panel — the bonus lines wrap inside their box instead of running over the next one */
.tie-bon { overflow: hidden; }
.tie-bon .tb-w { white-space: normal; }

/* ac64: the same rules without :has() (iOS < 15.4 / Chrome < 105 ignore any rule with :has) — the app sets .has-oth / .has-rm itself */
#sheet-wrap.dock.split #sheet.dz .dz-top.has-oth { padding-top: 2px; padding-bottom: 3px; }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-top.has-oth { height: var(--dzT); min-height: 0; }
#sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-top.has-oth .dz-rows, #sheet-wrap.dock.split #sheet.dz:not(.multi) .dz-top.has-oth .dz-row { min-height: 0; }
#sheet-wrap.dock.split #sheet.dz .dz-top.has-oth .dz-head { font-size: 13px; line-height: 1.15; margin-bottom: 0; }
#sheet-wrap.dock.split #sheet.dz .dz-top.has-oth .dz-card { min-height: 45px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot.has-rm { width: 46%; max-width: 220px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot.has-rm .dz-ok { grid-column: 2; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot.has-rm { width: 44%; max-width: 210px; }
#sheet-wrap.dock.split #sheet.dz .dz-bot.rcx .dz-foot.has-rm .dz-ok { font-size: 15.5px; }

/* ac65 (Hodaya Oct 23 4:55 PM: "the bigger the screen, the bigger the board and the share picking — use the space on every device").
   Big landscape screens: ui.js applyZoom() scales #app as one piece (transform), nothing to do here.
   A tablet held upright (portrait wider than 700): the side panel sits ABOVE a full-width board instead of beside a narrow one. */
#game.stack { flex-direction: column; }
#game.stack #side { flex: 1 1 auto; min-height: 0; width: 100%; }
#game.stack #board-area { align-self: center; }

/* ac68 (Hodaya Oct 24 2026 9:55 PM): the game's own keyboard on phones/tablets — the iPhone keyboard never opens, nothing is hidden */
.kb-field { caret-color: transparent; cursor: pointer; -webkit-user-select: none; user-select: none; }
/* ac127 (Hodaya WhatsApp Nov 5 2026 3:11 PM m:32eaac6d "מקלדת קטנה באותו מסך"): the keyboard is SMALL and docked at the bottom — no dark
   full-screen panel any more; the board, the chat and what everyone wrote stay in sight. In the chat it sits right under the chat window. */
.kb-field.kb-on { outline: 2px solid #ffcf4a; outline-offset: 1px; }
#kb-ov { --kr: 26px; position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; flex-direction: column; gap: 4px;
  background: #0e0424; border-top: 2px solid #4b2c93; border-radius: 14px 14px 0 0; box-shadow: 0 -6px 18px rgba(0,0,0,.45);
  padding: 5px calc(var(--sar, 0px) + 6px) calc(var(--sab, 0px) + 5px) calc(var(--sal, 0px) + 6px);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; font-family: inherit; color: #f4ecff; }
#kb-ov[hidden] { display: none; }
#kb-ov.kb-chat[dir="rtl"] { left: auto; width: min(100vw, calc(min(360px, 52vw) + 16px + var(--sar, 0px))); border-radius: 14px 0 0 0; border-left: 2px solid #4b2c93; }
#kb-ov.kb-chat[dir="ltr"] { right: auto; width: min(100vw, calc(min(360px, 52vw) + 16px + var(--sal, 0px))); border-radius: 0 14px 0 0; border-right: 2px solid #4b2c93; }
#kb-ov .kb-top { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; max-width: 640px; width: 100%; margin: 0 auto; }
#kb-ov .kb-top[hidden] { display: none; }
#kb-ov .kb-lab { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: #ffcf4a; max-width: 34%; line-height: 1.1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#kb-ov .kb-disp { flex: 1 1 auto; min-width: 0; height: 28px; display: flex; align-items: center; gap: 1px; padding: 0 9px; border-radius: 9px;
  border: 1.5px solid #ffcf4a; background: #120530; font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; white-space: pre; unicode-bidi: plaintext; }
#kb-ov .kb-disp.empty::before { content: attr(data-ph); color: #8f7cc0; font-weight: 500; font-size: 13px; }
#kb-ov .kb-caret { display: inline-block; width: 2px; height: 18px; background: #ffcf4a; animation: kbBlink 1s steps(1) infinite; flex: 0 0 2px; }
@keyframes kbBlink { 50% { opacity: 0; } }
#kb-ov .kb-done { display: none; }
#kb-ov .kb-hint { flex: 0 0 auto; font-size: 11px; color: #b9a6e6; text-align: center; line-height: 1.1; }
#kb-ov .kb-hint[hidden] { display: none; }
#kb-ov .kb-hint.warn { color: #ff8a80; font-weight: 700; }
#kb-ov .kb-keys { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; direction: ltr; max-width: 640px; width: 100%; margin: 0 auto; }
#kb-ov .kb-row { flex: 0 0 auto; height: var(--kr); display: flex; justify-content: center; gap: 4px; }
#kb-ov .kb-k { flex: 0 1 9.4%; min-width: 0; border: 0; border-radius: 7px; background: linear-gradient(#4a2b8f, #34186e); color: #fff; font-size: 17px; font-weight: 700;
  font-family: inherit; padding: 0; line-height: 1; box-shadow: 0 1px 0 #160636, inset 0 1px 0 rgba(255,255,255,.18); touch-action: manipulation; cursor: pointer; }
#kb-ov .kb-k:active { background: #ffcf4a; color: #3a1d00; }
#kb-ov .kb-k.kb-w { flex: 0 1 13%; font-size: 13.5px; background: linear-gradient(#3a2370, #261150); }
#kb-ov .kb-k.kb-w.on { background: #ffcf4a; color: #3a1d00; }
#kb-ov .kb-k.kb-sp { flex: 1 1 34%; font-size: 13px; font-weight: 600; color: #d9ccff; }
#kb-ov .kb-k.kb-ok { flex: 0 1 20%; background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; box-shadow: 0 1px 0 #8a5300; font-size: 14px; }
@media (orientation: portrait) { #kb-ov { --kr: 40px; } #kb-ov .kb-k { font-size: 19px; } #kb-ov .kb-k.kb-w, #kb-ov .kb-k.kb-ok { font-size: 15px; } }
@media (max-height: 340px) { #kb-ov { --kr: 23px; gap: 3px; padding-top: 4px; } #kb-ov .kb-keys, #kb-ov .kb-row { gap: 3px; } #kb-ov .kb-k { font-size: 15px; } }
/* ac68: ✕ in the corner of every panel that has סגירה (stays at the top while the panel scrolls) */
#sheet .sheet-x { position: -webkit-sticky; position: sticky; top: 0; float: left; z-index: 3; width: 40px; height: 40px; margin: -6px -8px -34px 0; border-radius: 50%;
  border: 1.5px solid #ffcf4a; background: #2a1160; color: #ffcf4a; font-size: 20px; font-weight: 800; line-height: 1; padding: 0; cursor: pointer; font-family: inherit; touch-action: manipulation; }
html[dir="ltr"] #sheet .sheet-x { float: right; margin: -6px 0 -34px -8px; }
#sheet .sheet-x:active { background: #ffcf4a; color: #3a1d00; }
#sheet .btn[data-x] { touch-action: manipulation; }
/* ac68: saved games on the start screen (the game on this phone + online rooms) */
.cont-row { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.cont-row .cont-x { flex: 0 0 40px; width: 40px; min-height: 40px; border-radius: 12px; border: 1.5px solid #c0504d; background: rgba(192,80,77,.16); color: #ffb3ad; font-size: 19px; font-weight: 800; line-height: 1; padding: 0; cursor: pointer; font-family: inherit; }
.cont-row .cont-x:active { background: rgba(192,80,77,.4); }
.cont-row.ask { flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1.5px solid #c0504d; border-radius: 12px; background: rgba(192,80,77,.12); }
.cont-row.ask .on-room-q { flex: 1 0 100%; font-size: 14.5px; font-weight: 700; color: #fff; }
.cont-row.ask .btn.small { flex: 1 1 0; min-height: 36px; font-size: 14px; }
.cont-row.ask .cont-yes { background: linear-gradient(#e0605a, #b23a35); box-shadow: 0 2px 0 #6e1d1a; color: #fff; }
.cont-row[hidden] { display: none; }
.cont-row #btn-continue { flex: 1 1 auto; min-width: 0; }
.title-rooms:empty { display: none; }
.title-rooms { display: flex; flex-direction: column; gap: 5px; }
.title-rooms .on-lbl { font-size: 12.5px; color: var(--muted, #b9a6e6); text-align: center; margin: 0; }
.title-rooms .on-room .on-room-go { font-size: 14.5px; padding: 7px 10px; }
.title-rooms .on-room .on-room-x { flex-basis: 36px; width: 36px; min-height: 36px; }

/* ac70 (Hodaya m:b22ca2ab): menu — 🏠 start screen + Close in one row; compact on short (landscape phone) screens so the whole menu
   fits with no scrolling and Close stays clear of the bottom edge */
.menu .menu-end .btn { font-size: 14.5px; line-height: 1.15; white-space: normal; padding-left: 8px; padding-right: 8px; }
.menu .menu-end .btn.gold { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: clip; } /* ac71 (m:b5e56d67): "סגירת תפריט" / "Close menu" on ONE line */
@media (max-height: 460px) {
  #sheet.modal-menu { padding-top: 8px; padding-bottom: 10px; }
  #sheet.modal-menu h3 { margin: 0 0 4px; }
  #sheet.modal-menu .menu { gap: 6px; }
  #sheet.modal-menu .menu > .btn, #sheet.modal-menu .menu-row .btn { padding-top: 6px; padding-bottom: 6px; min-height: 0; }
}

/* ac74 (Hodaya m:1288f117): exchange + sell on ONE screen after a merger — the 🔄 exchange row(s) on top, the sell rows below */
#sheet.sellother.cmb h3.cx-h { font-size: 15px; margin: 0 0 4px; line-height: 1.3; }
#sheet.sellother .cx-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px; }
#sheet.sellother .cx-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,207,74,.10); border: 1.5px solid #ffcf4a; }
#sheet.sellother .cx-row.cx-off { opacity: .75; border-color: var(--line); background: rgba(255,255,255,.04); }
#sheet.sellother .cx-what { flex: 1; min-width: 0; font-size: 13px; color: #f4ecff; }
#sheet.sellother .cx-what .u-chip { font-size: 14px; }
#sheet.sellother .cx-t { color: #ffd76a; }
#sheet.sellother .cx-sub { display: block; font-size: 11.5px; color: #d9cbff; line-height: 1.25; margin-top: 1px; }
#sheet.sellother .cx-sub2 { margin: 6px 0 0; font-size: 12px; }
/* ac114/v77 (Hodaya m: Nov 1 10:12 PM "צריך להיות רשום מכירת מניות" under the exchange row): the sell heading is a clear section line on every screen */
#sheet.sellother.cmb .cx-sub2 { margin: 8px 0 0; padding-top: 5px; border-top: 1px solid rgba(255,207,74,.45); line-height: 1.25; }
#sheet.sellother.cmb .cx-sellh { font-size: 14px; }
#app.zk #sheet.sellother > .cx-list { -webkit-flex: none; flex: none; }
#sheet.sellother .so-foot .cx-back { flex: none; }

/* ac75 (Hodaya m:c7afdfa3): the exchange + sell screen on a short landscape phone (667x375 / 844x390): compact rows and steppers, the
   note line hidden (the swallowed hotel's own row already says "נפלה · מחיר המיזוג"), back + OK on one row, so the sell rows are not
   hidden under the OK bar */
@media (max-height: 460px) {
  #sheet.sellother.cmb { padding-top: 6px; }
  #sheet.sellother.cmb h3.cx-h { font-size: 14px; margin: 0 0 2px; line-height: 1.2; }
  #sheet.sellother.cmb .cx-list { gap: 4px; margin: 2px 0 0; }
  #sheet.sellother.cmb .cx-row { padding: 3px 6px; gap: 5px; }
  #sheet.sellother.cmb .cx-what { font-size: 12.5px; line-height: 1.25; }
  #sheet.sellother.cmb .cx-what .u-chip, #sheet.sellother.cmb .so-row .u-chip { font-size: 13px; }
  #sheet.sellother.cmb .cx-sub { margin-top: 0; font-size: 11px; }
  #sheet.sellother.cmb .cx-sub2 { display: block; margin: 4px 0 0; padding-top: 3px; font-size: 12px; line-height: 1.15; } /* ac114/v77: was display:none */
  #sheet.sellother.cmb .cx-sub2n { display: none; }
  #sheet.sellother.cmb .cx-sellh { font-size: 13px; }
  #sheet.sellother.cmb .so-list { gap: 4px; margin: 4px 0 2px; }
  #sheet.sellother.cmb .so-row { padding: 2px 6px; gap: 5px; }
  #sheet.sellother.cmb .so-have { font-size: 12px; line-height: 1.25; }
  #sheet.sellother.cmb .so-dead, #sheet.sellother.cmb .so-lock { font-size: 11px; }
  #sheet.sellother.cmb .so-q { gap: 3px; }
  #sheet.sellother.cmb .so-q .btn { min-width: 32px; padding: 4px 6px; font-size: 17px; }
  #sheet.sellother.cmb .so-n { min-width: 1.1em; font-size: 16px; }
  #sheet.sellother.cmb .so-foot { flex-wrap: nowrap; align-items: stretch; padding: 4px 0 6px; gap: 6px; }
  #sheet.sellother.cmb .so-foot .btn { padding: 6px 8px; min-height: 0; line-height: 1.15; white-space: normal; }
  #sheet.sellother.cmb .so-foot .cx-ok { flex: 1 1 0; min-width: 0; font-size: 14.5px; }
  #sheet.sellother.cmb .so-foot .cx-back { flex: 0 1 auto; font-size: 13px; }
}

/* ac74 (Hodaya m:7f38616c): "✖ סגור משחק" under the winner panel's buttons */
#sheet .row2 .btn.closegame { white-space: nowrap; }
/* ac76 (Hodaya m:2693c3f7): the learning brain's version, tiny, in the menu title */
#sheet h3 .brain-v { font-size: 11px; font-weight: 400; opacity: .6; margin-inline-start: 10px; letter-spacing: 0; }

/* ac78 (Hodaya m:e4981d83 "חשוב שכמית הכסף שלי לא תוסתר"): her cash in the merger sell panel's header, live while she picks shares */
#sheet h3.cx-h { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-align-items: center; align-items: center; column-gap: 8px; row-gap: 2px; }
#sheet h3.cx-h .cx-ht { -webkit-flex: 0 1 auto; flex: 0 1 auto; min-width: 0; }
.cx-cash { display: inline-block; margin-inline-start: auto; padding: 1px 8px; border-radius: 999px; background: rgba(255,207,74,.14); border: 1px solid rgba(255,207,74,.55); color: #ffe08a; font-size: 13px; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.cx-cash bdi { color: #fff; }
.cx-cash .cx-ca { color: #ffd76a; }
.cx-cash .cx-cn { color: #8dffb0; }
.dz-head .cx-cash { margin-inline-start: 8px; font-size: 12px; vertical-align: middle; }
@media (max-height: 460px) and (orientation: landscape) { .cx-cash { font-size: 12px; padding: 0 7px; } }
#sheet.sellother h3.cx-h { position: -webkit-sticky; position: sticky; top: 0; z-index: 2; background: #2c1363; box-shadow: 0 6px 8px -4px #2c1363; padding-bottom: 2px; } /* ac78: the cash pill stays in view while the panel scrolls (667x375) */
@media (max-height: 460px) and (orientation: landscape) { #sheet.sellother h3.cx-h { font-size: 13px; line-height: 1.2; column-gap: 6px; } #sheet.sellother h3.cx-h .u-chip { font-size: 12.5px; } .cx-cash { font-size: 11.5px; padding: 0 6px; line-height: 1.4; } } /* ac78: keep the header on one line at 667x375 when it can */

/* ac83 (Hodaya m:c7a060e3): the other side declared the end — an unmissable notice; then a clear sign of the places */
#sheet.modal-endAnn { width: min(520px, 100%); text-align: center; padding: 14px 16px 12px; border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(255,207,74,.25), 0 10px 40px rgba(0,0,0,.55); }
.endann-flag { font-size: 44px; line-height: 1; margin: 2px 0 6px; animation: endflag 1.2s ease-in-out infinite alternate; }
@keyframes endflag { from { transform: rotate(-8deg) scale(1); } to { transform: rotate(8deg) scale(1.12); } }
#sheet h3.endann-h { font-size: 22px; color: var(--gold); margin: 4px 0 8px; line-height: 1.25; }
#sheet h3.endann-h small { font-size: 15px; color: inherit; opacity: .85; }
.endann-b { font-size: 17px; margin: 6px 0; }
.endann-b b { color: var(--gold); font-size: 19px; }
.endann-s { font-size: 13.5px; color: var(--muted); margin: 6px 0 10px; }
.endann-go { margin-top: 4px; }
.places { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 10px; }
.place { display: grid; grid-template-columns: 34px auto 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(122,78,224,.18); border: 1px solid rgba(122,78,224,.4); font-size: 15px; }
.place .pl-m { font-size: 24px; line-height: 1; }
.place .pl-t { font-weight: 800; white-space: nowrap; }
.place .pl-n { text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place .pl-c { font-weight: 800; white-space: nowrap; }
.place.p1 { background: linear-gradient(90deg, rgba(255,207,74,.28), rgba(255,207,74,.12)); border-color: var(--gold); font-size: 17px; }
.place.p1 .pl-t, .place.p1 .pl-c { color: var(--gold); }
.place.p2 { background: rgba(200,210,230,.14); border-color: rgba(200,210,230,.5); }
.place.me { box-shadow: 0 0 0 2px rgba(125,255,168,.55) inset; }

/* ac87 (Hodaya m:0dfe4d4a): the room-code keyboard is a digits-only pad — wider keys */
#kb-ov.kb-num .kb-keys { max-width: 330px; }
#kb-ov.kb-num .kb-k { flex: 0 1 31%; font-size: 19px; }
#kb-ov.kb-num .kb-k.kb-w, #kb-ov.kb-num .kb-k.kb-ok { flex: 0 1 31%; }

/* ac88 (Hodaya WhatsApp Oct 26 2026 7:21 PM: "גם בזמן קניות לא יוסתרו קלפי האריחים"): her tile rack (#hand) and the bar under it never leave the
   screen. On the shortest phones (568x320) with every hotel on the board the price list + banner were taller than the side column, and the rack
   was pushed below the bottom edge. Now the price list is the part that gives way: it shrinks and scrolls inside itself (only when it really does
   not fit — fitMarketRows() keeps the bigger buy rows only while the whole list still fits), and the rack + bar stay put. */
#side > #market { flex: 0 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#side > #hand { flex: none; }
/* ac88: the rack stays above every panel's dimmed backdrop (#sheet-wrap z 20) and every centred panel ends above it (rackFree() in ui.js) */
#scr-game #side > #hand { position: relative; z-index: 21; }
#sheet-wrap.rackfree { padding-bottom: var(--rackB, calc(var(--sab) + 8px)); }

/* ac91 (Hodaya WhatsApp Oct 27 2026 11:46 AM, m:3eb04025: "האריחים עלו על המסך" — on the final results the tile rack sat ON the
   "Computer wins!" panel): the rack is raised above the dimmed backdrop (ac88) only while the open panel ends above it (#sheet-wrap.rackfree).
   At game over (end notice + results) and whenever a panel is not kept clear of the rack, the rack drops under the panel. */
body.rack-under #scr-game #side > #hand { z-index: auto; }

/* ac92 = capital v54 (Hodaya WhatsApp Oct 27 2026 11:24 AM m:a68456db "שהפלוסים יהיו כל אחד באותו צבע המלון … מינוס עדיין ישאר אדום"; she approved the
   Accrue trial for all versions 12:15 PM "מעולה תשנה בכל הגרסאות"): each buy "+" in the hotel list takes its hotel's chip colours (--cc / --cd, same as .badge),
   white glyph with the chip's dark shadow; size/shape unchanged. The red − (.mrow .minus) is untouched; the faded + (.plus.no) keeps opacity .28 + grayscale. */
.mrow .plus.hc { background: linear-gradient(180deg, var(--cc), var(--cd)); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.75), 0 0 3px rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.35); }

/* ac96 (Hodaya m:7562ea41): her whole hand was locked — the old tiles show 🔒 נעול on the rack until she taps the panel's button; then the new ones say חדש */
.htile.locked { background: linear-gradient(160deg, #d9d2c4, #a99f8c); color: #5a4f3c; filter: none; opacity: 1; box-shadow: 0 2px 0 #6b604c, inset 0 0 0 1.5px #c0392b; padding-bottom: 8px; line-height: 1; animation: lkShake .5s ease-in-out 2; }
.htile.locked .lk-i { position: absolute; top: -9px; inset-inline-end: -6px; font-size: 14px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.htile.locked i { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 9.5px; font-style: normal; font-weight: 900; color: #b0211a; line-height: 1; }
@keyframes lkShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px) rotate(-2deg); } 75% { transform: translateX(2px) rotate(2deg); } }
.htile.fresh { box-shadow: 0 2px 0 #2c7a2a, 0 0 0 2px #3fbf4a, 0 0 10px rgba(63,191,74,.7); padding-bottom: 8px; line-height: 1; animation: frPop .45s ease-out both; }
.htile.fresh i { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 9.5px; font-style: normal; font-weight: 900; color: #1f7a2a; line-height: 1; }
@keyframes frPop { 0% { transform: scale(.4) translateY(8px); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
#sheet.modal-lockHand { text-align: center; }
#sheet.modal-lockHand .lk-h { font-size: 19px; color: #ffd34a; margin: 2px 0 6px; }
#sheet.modal-lockHand .lk-p { font-size: 15px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
#sheet.modal-lockHand .lk-why { margin: 0 0 8px; }
#sheet.modal-lockHand .lk-tiles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 10px; }
#sheet.modal-lockHand .lk-t { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 4px 7px; border-radius: 6px; background: linear-gradient(160deg, #d9d2c4, #a99f8c); color: #4a3f2c; font-weight: 800; font-size: 14px; box-shadow: inset 0 0 0 1.5px #c0392b; }
#sheet.modal-lockHand .lk-t b { font-size: 12px; }
#sheet.modal-lockHand .lk-skip { color: #ffb3a8; }
[dir=ltr] .htile.locked .lk-i { inset-inline-end: auto; right: -6px; }

/* ac96 (Hodaya m:ab3c422f): a hotel with no shares left in the bank — greyed, "אזל" / "Sold out" in the Left column */
/* ac107/v70 (Hodaya WhatsApp Oct 31 2026 11:13 PM + 11:14 PM): a sold-out hotel keeps its ORIGINAL chip colour (was: grayscale .85 + brightness .8);
   the red "אזל" / "Sold out" marker and the faded + say it can't be bought */
.mrow.soldout:not(.off) .mc .badge { filter: none; }
.mrow.soldout:not(.off) > span:not(.mc):not(.bcol):not(.pcell) { opacity: .85; }
.mrow.soldout .sold-t { display: inline-block; font-style: normal; font-weight: 900; font-size: 10px; line-height: 1.05; color: #ff9d9d; background: rgba(176,33,26,.28); border-radius: 5px; padding: 1px 4px; white-space: normal; text-align: center; }
#side.buying .mrow.soldout:not(.back) { background: rgba(0,0,0,.18); }

/* ac98 (Hodaya m:708e05df): after her merger — "the merger is done, now you can buy up to 3" banner over the board + the hotel table glows;
   the "are you sure you don't want to buy shares?" panel when she ends a turn with nothing bought while she could buy */
/* ac100 (Hodaya m:c5a1e36f "שזה לא יסתיר את המסך"): a slim see-through pill over the side panel, taps pass through, gone after ~2.5 s */
#mbuy { position: fixed; z-index: 15; transform: translateX(-50%); background: rgba(255,214,90,.96); color: #2a1460;
  border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 2px 10px 3px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.35);
  width: max-content; max-width: 92vw; line-height: 1.3; animation: mbIn .25s ease-out; pointer-events: none; top: calc(var(--sat) + 4px); left: 50%; }
#mbuy b { display: inline; font-size: 12.5px; font-weight: 800; }
#mbuy small { display: inline; font-size: 11px; font-weight: 600; color: #5a3a00; }
#mbuy { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #mbuy .mb-s { display: none; } #mbuy.short small, #mbuy.short .mb-l { display: none; } #mbuy.short .mb-s { display: inline; }
#mbuy.hidden { display: none !important; }
@keyframes mbIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes mbPulse { 0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 0 3px rgba(255,201,60,.35); } 50% { box-shadow: 0 6px 22px rgba(0,0,0,.55), 0 0 0 9px rgba(255,201,60,.55); } }
#market.mb-glow { border-color: #ffc93c; box-shadow: 0 0 0 2px #ffc93c, 0 0 14px rgba(255,201,60,.65); animation: mbGlow 1.2s ease-in-out infinite; }
@keyframes mbGlow { 0%, 100% { box-shadow: 0 0 0 2px #ffc93c, 0 0 8px rgba(255,201,60,.45); } 50% { box-shadow: 0 0 0 3px #ffe58a, 0 0 18px rgba(255,201,60,.85); } }
.modal-nobuy .nobuy { text-align: center; }
.modal-nobuy .nb-ic { font-size: 34px; line-height: 1; margin: 2px 0 4px; }
.modal-nobuy h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.modal-nobuy .nb-sub { margin: 0 0 4px; font-size: 14px; }
.modal-nobuy .nb-row { flex-wrap: wrap; }
.modal-nobuy .nb-row .btn { min-height: 44px; font-size: 15px; padding-left: 16px; padding-right: 16px; }
@media (max-height: 420px) { .modal-nobuy .nb-ic { font-size: 26px; margin: 0 0 2px; } .modal-nobuy h3 { font-size: 17px; } #mbuy b { font-size: 12px; } #mbuy small { font-size: 10.5px; } }

/* ac101 (Hodaya 9:44 AM Oct 30): buy step = [🛒 קנה מניות][סיים בלי לקנות] → one ✓ אישור once a share is picked */
#actions .btn.bbuy, #actions .btn.bnobuy, #actions .btn.bconf { white-space: nowrap; }
/* ac109 / v72 (Hodaya m:29844cd9): "🏁 אישור והכרז על סוף משחק" beside "✓ אישור" — may take two short lines */
#actions .btn.endgame.bconfend, #actions .btn.endgame.sellallend { white-space: normal; line-height: 1.12; max-width: 10.5em; text-align: center; } /* ac118/v81: + 💰 מכור הכל והכרז סוף משחק */
.mrow.bf-hint { animation: bfHint .5s ease-in-out 3; }
@keyframes bfHint { 0%, 100% { background-color: transparent; } 50% { background-color: rgba(255,207,74,.28); } }

/* ac101 (Hodaya 9:47 AM Oct 30): not her tile step — a tapped hand tile shows where it is on the board, gray frame (preview only) */
/* ac124 / v87 (Hodaya WhatsApp Nov 3 2026 5:08 PM "שהאפור יהיה ממש חלש, לא כהה מידי"): very faint — thin translucent gray line + a light gray veil
   laid OVER the cell's own colour (inset shadow, so the board gradient stays), label keeps its normal colour, only a touch lighter. */
#board .cell.peek { outline: 1.5px solid rgba(184,184,196,.55); outline-offset: -2px; z-index: 3; box-shadow: inset 0 0 0 1px rgba(170,130,255,.35), inset 0 0 0 99px rgba(205,205,218,.13); }
#board .cell.peek span { color: rgba(240,235,255,.78); }
.htile.peek { outline: 1.5px solid rgba(184,184,196,.6); outline-offset: 1px; filter: none; }

/* ac103 (Hodaya m:ca9385c8): the small plain merger summary — no backdrop, the game goes on under it; "אישור" closes it on this phone */
#msum { position: fixed; z-index: 35; display: flex; flex-direction: column; background: #fffdf6; color: #1d1433; border: 2px solid #e8b931; border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45); font-size: 14px; line-height: 1.35; overflow: hidden; text-align: start; }
#msum .ms-head { font-weight: 800; font-size: 15px; padding: 6px 10px 4px; border-bottom: 1px solid #eadfbf; background: #fff4cf; }
#msum .ms-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 5px 10px 4px; flex: 1 1 auto; min-height: 0; }
#msum .ms-what { font-weight: 700; margin: 1px 0 4px; }
#msum .ms-sec { margin: 0 0 4px; }
#msum .ms-st { font-weight: 700; margin: 4px 0 1px; }
#msum .ms-line { margin: 1px 0; }
#msum .ms-row { padding-inline-start: 2px; }
#msum .ms-p { font-weight: 800; }
#msum .ms-c { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--cc); color: var(--ci, #fff); font-weight: 700; font-size: 13px; line-height: 1.35; }
#msum .ms-pl { margin: 3px 0 4px; line-height: 1.45; }
#msum .ms-pl .ms-acts { display: block; padding-inline-start: 10px; }
#msum .ms-price { color: #4a3d63; font-size: 13px; }
#msum .ms-hr { border: 0; border-top: 1px solid #eadfbf; margin: 5px 0; }
#msum.ms-side { border-radius: 8px; }
#msum .ms-ok { flex: 0 0 auto; margin: 4px 10px 8px; min-height: 36px; font-size: 15px; }

/* ac104/v67: a short screen in her buy step — thinner hotel rows so all 7 fit (fitMarketRows adds .mrthin) */
#side.buying.mrthin .mrow:not(.mhead) { min-height: 0; }
#side.buying.mrthin .mrow:not(.mhead) .mc .badge { min-height: 0; padding-top: 0; padding-bottom: 0; }
#side.buying.mrthin .mrow:not(.mhead) .mc .badge b { font-size: 13px; }
#side.buying.mrthin .mrow .plus, #side.buying.mrthin .mrow .minus { min-height: 14px; }

/* ac105/v68 (Hodaya WhatsApp Oct 30 2026 5:10 PM "תעשה ששורת ההחלפה תהיה יותר עבה"): the 🔄 exchange row is thicker — taller than a sell row,
   full-size steppers, its note always shown — and it stays put under the sticky header (the sell rows scroll under both), so the header
   never slides over it when the list is scrolled (her screenshot: the row's top was hidden under "… נבלע ל…"). --cxh = header height, set in renderCombo. */
#sheet.sellother.cmb .cx-list { position: -webkit-sticky; position: sticky; top: var(--cxh, 30px); z-index: 2; background: #2c1363; box-shadow: 0 6px 8px -4px #2c1363; padding-bottom: 4px; margin-top: 0; }
#sheet.sellother.cmb .cx-row { min-height: 52px; padding: 7px 10px; gap: 8px; box-sizing: border-box; }
#sheet.sellother.cmb .cx-what { font-size: 14px; line-height: 1.3; }
#sheet.sellother.cmb .cx-what .u-chip { font-size: 14.5px; }
#sheet.sellother.cmb .cx-sub { display: block; font-size: 12px; margin-top: 2px; }
#sheet.sellother.cmb .cx-row .so-q { gap: 6px; }
#sheet.sellother.cmb .cx-row .so-q .btn { min-width: 40px; min-height: 36px; padding: 4px 10px; font-size: 19px; }
#sheet.sellother.cmb .cx-row .so-n { min-width: 1.3em; font-size: 18px; text-align: center; }
@media (max-height: 460px) {
  #sheet.sellother.cmb .cx-row { min-height: 48px; padding: 5px 8px; gap: 6px; }
  #sheet.sellother.cmb .cx-what { font-size: 13.5px; line-height: 1.25; }
  #sheet.sellother.cmb .cx-what .u-chip { font-size: 13.5px; }
  #sheet.sellother.cmb .cx-sub { margin-top: 1px; font-size: 11.5px; }
  #sheet.sellother.cmb .cx-row .so-q { gap: 4px; }
  #sheet.sellother.cmb .cx-row .so-q .btn { min-width: 38px; min-height: 34px; padding: 4px 8px; font-size: 18px; }
}
#app.zk #sheet.sellother.cmb > .cx-list { position: relative; top: auto; } /* the scaled game: the list itself scrolls there, nothing slides under */

/* ac107/v70 (Hodaya WhatsApp Oct 31 2026 8:43 PM, m:1bdd623d): each white-banner row starts with the tile that player placed, drawn as a small
   board tile (cream face, brown text, like the hand tiles / lone tiles on the board), no word "הניח"; sized to the banner's line, never taller */
#buynote .bn-tile { display: inline-block; vertical-align: middle; position: relative; top: -1px; font-style: normal; font-weight: 800; font-size: 10.5px;
  line-height: 1; padding: 1px 4px 1.5px; min-width: 2.3em; text-align: center; margin-inline-end: 5px; border-radius: 3px; white-space: nowrap;
  background: linear-gradient(160deg, #fffaf0, #e2d4b6); color: #2c1c06; border: 1px solid #a8916a; box-shadow: 0 1px 0 #7d6a45, inset 0 0 0 1px #fff; }
#side.buying #buynote .bn-tile { font-size: 10px; padding: 0.5px 4px 1px; }

/* ac107/v70 (Hodaya WhatsApp Oct 31 2026 8:55 PM, m:ddd9c599): "🏁 X הכריז על סוף המשחק" wherever a merger is shown, so the merger sales make sense */
.end-decl { font-weight: 800; color: #ffd34d; margin: 2px 0 5px; line-height: 1.3; font-size: .95em; }
.end-decl .ed-why { font-weight: 600; color: #f3e7c0; }
#sheet.cmb .end-decl, #sheet .dz-head + .end-decl { font-size: 13.5px; margin: 0 0 4px; }
.ann-body .end-decl { text-align: center; }
#msum .ms-end { font-weight: 800; color: #9a2a10; }
#buynote .bn-end, .modal-buys .bn-end { font-weight: 800; color: #b3261e; }

/* ac107/v70 (Hodaya 10:33 PM m:0686d797): the banner tile of a turn that founded a hotel wears that hotel's colour (merger: the survivor's) */
#buynote .bn-tile.hc { background: linear-gradient(160deg, var(--cc), var(--cc) 55%, var(--cd)); color: var(--ci); border-color: var(--cd);
  box-shadow: 0 1px 0 var(--cd), inset 0 0 0 1px rgba(255,255,255,.45); }

/* ac108/v71 (Hodaya 11:21 PM Oct 31, m:81f29835): whose merger decision it is, on every phone that is not deciding */
.amsg.mstat { display: flex; flex-direction: column; gap: 2px; font-weight: 700; line-height: 1.25; }
.amsg.mstat .ms-ord { display: flex; flex-wrap: wrap; gap: 3px 8px; font-weight: 600; font-size: .9em; }
.amsg.mstat .ms-p.done { opacity: .75; }
.amsg.mstat .ms-p.now { color: #ffd34d; }
.amsg.mstat .ms-p.wait { opacity: .9; }

/* ac115 / v78 (Hodaya Nov 1 2026 10:54 PM): a hand tile that would found a new hotel says "הקמה" / "Found" in blue — same small label as "חדש" / "נעול" */
.htile.fnd { padding-bottom: 8px; line-height: 1; }
.htile.fnd i { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 9.5px; font-style: normal; font-weight: 900; color: #1565d8; line-height: 1; }
.htile.fnd.idle { filter: saturate(.8) brightness(.92); }
/* ac120 / v83 (Hodaya m:da47bbb4): "מיזוג" in green on a hand tile that would merge hotels — same style as הקמה */
.htile.mrg { padding-bottom: 8px; line-height: 1; }
.htile.mrg i { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 9.5px; font-style: normal; font-weight: 900; color: #128a32; line-height: 1; }
.htile.mrg.idle { filter: saturate(.8) brightness(.92); }
/* ac115 / v78: merger rows in the white banner */
#buynote .bn-mlive { color: #2a1460; }
#buynote .bn-mrg { color: #2a1460; font-weight: 600; }
/* ac115 / v78: merger rows are one line each (cut with … if the panel is narrow), so the last decision and "whose turn" both stay in view */
#buynote .bn-mrg, #buynote .bn-mlive { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#buynote .bn-mrg .u-chip, #buynote .bn-mlive .u-chip { font-size: 10.5px; display: inline; padding: 0 .3em; } /* inline (not inline-flex): one text line, also for screen readers / copy */

/* ac116/v79 (Hodaya m:6395333b): at game end the merger summary is only a small closed tab inside the end notice / results panel */
#sheet .ms-tab { margin: 6px 0 4px; text-align: center; }
#sheet .ms-tabbtn { display: inline-flex; align-items: center; gap: 4px; background: #fff4cf; color: #1d1433; border: 1.5px solid #e8b931; border-radius: 999px;
  font: 700 13px/1.2 inherit; font-family: inherit; padding: 4px 12px; min-height: 28px; cursor: pointer; touch-action: manipulation; }
#sheet .ms-tab .ms-arr { display: inline-block; transition: transform .2s; }
#sheet .ms-tab.open .ms-arr { transform: rotate(180deg); }
#sheet .ms-tabbody { display: none; margin: 6px auto 0; max-width: 520px; background: #fffdf6; color: #1d1433; border: 2px solid #e8b931; border-radius: 10px;
  padding: 5px 10px 6px; font-size: 14px; line-height: 1.35; text-align: start; }
#sheet .ms-tab.open .ms-tabbody { display: block; }
#sheet .ms-tabbody .ms-line { margin: 1px 0; }
#sheet .ms-tabbody .ms-row { padding-inline-start: 2px; }
#sheet .ms-tabbody .ms-p { font-weight: 800; }
#sheet .ms-tabbody .ms-c { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--cc); color: var(--ci, #fff); font-weight: 700; font-size: 13px; line-height: 1.35; }
#sheet .ms-tabbody .ms-pl { margin: 3px 0 4px; line-height: 1.45; }
#sheet .ms-tabbody .ms-pl .ms-acts { display: block; padding-inline-start: 10px; }
#sheet .ms-tabbody .ms-price { color: #4a3d63; font-size: 13px; }
#sheet .ms-tabbody .ms-hr { border: 0; border-top: 1px solid #eadfbf; margin: 5px 0; }

/* ac117/v80 (Hodaya m:d2ddb0d5): results panel — "📋 פירוט המיזוג" (only after a last-turn merger) + "💰 פירוט חלוקת הכסף", same look, both closed.
   Closed: the two buttons sit side by side; an open one takes the full row (button + its lines); both may be open (stacked). */
#sheet .end-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0 8px; margin: 6px 0 4px; }
#sheet .end-tabs > .ms-tab, #sheet .end-tabs > .mny-tab { margin: 2px 0; flex: 0 1 auto; max-width: 100%; min-width: 0; }
#sheet .end-tabs > .open { flex-basis: 100%; }
#sheet .mny-tab { text-align: center; }
#sheet .mny-tab .ms-arr { display: inline-block; transition: transform .2s; }
#sheet .mny-tab.open .ms-arr { transform: rotate(180deg); }
#sheet .mny-tab.open .ms-tabbody { display: block; }
#sheet .mny-body .ms-c { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--cc); color: var(--ci, #fff); font-weight: 700; font-size: 13px; line-height: 1.35; }
#sheet .mny-body .ms-p { font-weight: 800; }
#sheet .mny-body .ms-hr { border: 0; border-top: 1px solid #eadfbf; margin: 5px 0; }
#sheet .mny-body .mn-pl { margin: 2px 0 3px; line-height: 1.45; }
#sheet .mny-body .mn-h { font-size: 14.5px; }
#sheet .mny-body .mn-l { padding-inline-start: 10px; overflow-wrap: anywhere; }
#sheet .mny-body .mn-it { white-space: nowrap; }
#sheet .mny-body .mn-sep, #sheet .mny-body .mn-sum, #sheet .mny-body small { color: #4a3d63; }
#sheet .mny-body .mn-none { color: #7a6d90; }
#sheet .mny-body .mn-tot { color: #1d1433; font-weight: 600; }
/* ac117/v80 (Hodaya 8:09 AM): a merger at game end — no sell rows, one line instead */
#sheet.sellother.cmb .cx-autosell { color: #fff3c4; font-size: 13px; }
#sheet.sellother.cmb .cx-autosell .cx-asn { color: #fff3c4; font-weight: 600; }

/* ac122 / capital v85 (Hodaya WhatsApp Nov 3 2026 12:23 PM, m:7483dc12 "לא צעצועי"): the white banner during a merger is a tap target (small ▾ at its
   start); the live merger panel opens under it — plain white, the banner's purple ink, thin rules, no animation beyond a slow dot fade. */
#buynote.mtap { pointer-events: auto; cursor: pointer; padding-inline-start: 20px; -webkit-tap-highlight-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.2 5 6.8 8.5 3.2' fill='none' stroke='%232a1460' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 10px 10px; background-position: right 7px top 5px; }
html[dir=ltr] #buynote.mtap { background-position: left 7px top 5px; }
#buynote.mtap.mopen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 6.8 5 3.2 8.5 6.8' fill='none' stroke='%232a1460' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
#mpanel { position: fixed; z-index: 15; background: #fff; color: #2a1460; border-radius: 4px 4px 10px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.45);
  border-top: 1px solid rgba(42,20,96,.18); font-size: 12px; line-height: 1.35; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  cursor: pointer; -webkit-tap-highlight-color: transparent; padding: 0 0 2px; }
#mpanel.hidden { display: none !important; }
#mpanel .mp-head { display: block; padding: 4px 9px 4px; font-weight: 700; border-bottom: 1px solid rgba(42,20,96,.14); background: #f6f3fc; position: sticky; top: 0; }
#mpanel .mp-t { font-weight: 800; }
#mpanel .mp-pr { color: #5a4a8a; font-weight: 600; }
#mpanel .mp-x { float: inline-end; color: #6b5c99; font-weight: 600; font-size: 11px; }
#mpanel .mp-row { display: block; padding: 3px 9px 3px; border-inline-start: 3px solid transparent; }
#mpanel .mp-row + .mp-row { border-top: 1px solid rgba(42,20,96,.09); }
#mpanel .mp-who { white-space: nowrap; margin-inline-end: 6px; }
#mpanel .mp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); margin-inline-end: 5px; vertical-align: 1px; }
#mpanel .mp-n { color: #2a1460; font-weight: 800; }
#mpanel .mp-mk { font-size: 10px; font-weight: 700; color: #6b5c99; border: 1px solid rgba(42,20,96,.25); border-radius: 3px; padding: 0 3px; margin-inline-start: 5px; vertical-align: 1px; }
#mpanel .mp-what { font-weight: 600; }
#mpanel .mp-sep { color: #9a8fc0; }
#mpanel .mp-st { color: #5a4a8a; font-weight: 600; }
#mpanel .mp-hold { font-weight: 600; }
#mpanel .mp-m { font-weight: 800; }
#mpanel .mp-pos .mp-m { color: #1b7a3a; }
#mpanel .mp-row.now { border-inline-start-color: var(--pc); background: #fbf7e8; }
#mpanel .mp-row.now .mp-st { color: #2a1460; font-weight: 800; }
#mpanel .mp-row.now .mp-dot { animation: mpDot 1.6s ease-in-out infinite; }
#mpanel .mp-row.out { color: #8d84ad; }
#mpanel .mp-row.out .mp-n, #mpanel .mp-row.out .mp-st { color: #8d84ad; font-weight: 600; }
#mpanel .mp-row.out .mp-dot { opacity: .45; }
#mpanel .u-chip { font-size: 10.5px; display: inline; padding: 0 .3em; }
@keyframes mpDot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { #mpanel .mp-row.now .mp-dot { animation: none; } }

/* ac125 (Hodaya WhatsApp Nov 3 2026 6:06 PM, m:6f989dec): after a merger, ✓ with shares of a fallen hotel neither sold nor exchanged →
   a small "לא מכרת את המניות שלך מ…" popup, אישור / שנה. Same look as the end-at-41 popup (the sheet's purple card), but small and above the merger screen. */
#kwpop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 45; background: rgba(8,2,24,.55); display: flex; align-items: center; justify-content: center; padding: 10px; }
#kwpop.hidden { display: none !important; }
#kwpop .kw-box { width: min(340px, 92vw); background: linear-gradient(170deg, #2e1468, #1b0a40); border: 1.5px solid var(--gold); border-radius: 14px; padding: 10px 14px 12px; box-shadow: 0 10px 34px rgba(0,0,0,.6); text-align: center; color: #fff; }
#kwpop .kw-t { margin: 2px 0 4px; font-size: 16px; font-weight: 700; line-height: 1.3; }
#kwpop .kw-t b { color: var(--gold); }
#kwpop .kw-s { margin: 0 0 9px; font-size: 12.5px; color: var(--muted); }
#kwpop .kw-of { color: #c9b8f5; }
#kwpop .kw-row { display: flex; gap: 8px; justify-content: center; }
#kwpop .kw-row .btn { min-width: 96px; font-size: 15px; padding: 7px 14px; }

/* ===== ac126 (Hodaya WhatsApp Nov 5 2026, m:058d432d + m:e6b4d5e4) ===== */
/* end declared: the popup every other player sees at once, over the merger panel too */
#edpop { position: fixed; inset: 0; z-index: 48; background: rgba(8,2,24,.6); display: flex; align-items: center; justify-content: center; padding: 10px; }
#edpop.hidden { display: none !important; }
#edpop .ed-box { width: min(380px, 92vw); background: linear-gradient(170deg, #7a1420, #3d0710); border: 2px solid #ffd34d; border-radius: 14px; padding: 12px 16px 14px; box-shadow: 0 10px 34px rgba(0,0,0,.65); text-align: center; color: #fff; animation: edIn .35s ease-out; }
#edpop .ed-t { margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.3; color: #ffe27a; }
#edpop .ed-s { margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; color: #fbe9e9; }
#edpop .ed-m { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: #fff; background: rgba(255,211,77,.16); border-radius: 8px; padding: 4px 8px; }
#edpop .ed-ok { min-width: 120px; font-size: 16px; padding: 7px 18px; }
@keyframes edIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* the 🏁 line inside the merger panels: a red banner, not a small line */
#sheet .end-decl, .ann-body .end-decl, #sheet.cmb .end-decl, #sheet .dz-head + .end-decl { background: #b3202a; color: #fff; border: 1.5px solid #ffd34d; border-radius: 9px; padding: 4px 9px; margin: 2px 0 6px; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: center; box-shadow: 0 0 0 3px rgba(179,32,42,.25); }
#sheet .end-decl .ed-why, .ann-body .end-decl .ed-why { display: block; font-weight: 600; font-size: 12px; color: #ffe9a8; }
#kwpop .kw-end { margin: -4px 0 9px; font-size: 12.5px; font-weight: 700; color: #ffd34d; }
/* results: shares of fallen hotels sold automatically */
#sheet .autosold { margin: 6px auto 4px; max-width: 560px; background: rgba(255,211,77,.1); border: 1px solid rgba(255,211,77,.45); border-radius: 9px; padding: 4px 9px; font-size: 12.5px; line-height: 1.45; }
#sheet .autosold .as-h { font-weight: 800; color: #ffd34d; }
#sheet .autosold .as-row { color: #f3e7c0; }
/* chat: the button (top bar, beside the turn box) and the medium window */
.tb-btns .icon.chat { position: relative; width: 32px; padding: 0; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tb-btns .icon.chat.hidden { display: none !important; }
.tb-btns .icon.chat .ch-badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 15px; height: 15px; border-radius: 8px; background: #fff; color: #c0262d; font-size: 10px; font-style: normal; font-weight: 800; line-height: 15px; padding: 0 3px; display: none; }
.tb-btns .icon.chat.unread { background: #d62b35; border-color: #ff9aa0; box-shadow: 0 0 0 2px rgba(214,43,53,.45); animation: chPulse 1.4s ease-in-out infinite; }
.tb-btns .icon.chat.unread .ch-badge { display: block; }
@keyframes chPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(214,43,53,.45); } 50% { box-shadow: 0 0 0 5px rgba(214,43,53,.15); } }
#chatpop { position: fixed; inset: 0; z-index: 44; pointer-events: none; }
#chatpop.hidden { display: none !important; }
#chatpop .ch-box { pointer-events: auto; position: absolute; top: 44px; inset-inline-start: 8px; width: min(360px, 52vw); min-width: 260px; height: min(300px, calc(100vh - 54px)); max-height: calc(100vh - 54px);
  display: flex; flex-direction: column; background: linear-gradient(170deg, #2e1468, #1b0a40); border: 1.5px solid var(--gold); border-radius: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.6); color: #fff; overflow: hidden; }
#chatpop .ch-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px 5px 10px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; flex: none; }
#chatpop .ch-x { width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: #fff; font-size: 15px; font-weight: 800; line-height: 1; }
#chatpop .ch-list { flex: 1 1 auto; overflow-y: auto; padding: 6px 8px; -webkit-overflow-scrolling: touch; }
#chatpop .ch-m { margin: 0 0 6px; max-width: 88%; background: rgba(255,255,255,.08); border-inline-start: 3px solid var(--pc); border-radius: 9px; padding: 3px 8px 4px; }
#chatpop .ch-m.me { margin-inline-start: auto; background: rgba(255,211,77,.14); }
#chatpop .ch-n { font-size: 11.5px; font-weight: 800; color: var(--pc); }
#chatpop .ch-n small { font-weight: 400; color: var(--muted); margin-inline-start: 4px; }
#chatpop .ch-n .pdot2 { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); margin-inline-end: 4px; vertical-align: 1px; }
#chatpop .ch-t { font-size: 14px; line-height: 1.35; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
#chatpop .ch-empty { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 6px; }
#chatpop .ch-form { display: flex; gap: 6px; padding: 6px 8px 7px; border-top: 1px solid rgba(255,255,255,.12); flex: none; }
#chatpop .ch-form input { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--line); background: #120630; color: #fff; }
#chatpop .ch-send { flex: none; font-size: 15px; padding: 6px 12px; }

.tb-btns .icon.chat.float { position: fixed; top: 5px; inset-inline-end: 6px; z-index: 30; width: 36px; height: 32px; font-size: 17px; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
html.ch-float #chatpop .ch-box { inset-inline-start: auto; inset-inline-end: 8px; }

/* ===== ac128 (Hodaya WhatsApp Nov 5 2026 4:24 PM m:2fe3a548 + m:42c2d4cf): the chat and its keyboard are PART of the game screen.
   While the chat is open (html.ch-dock) the side panel steps aside and #chatpop is a real column of #game (where the side panel was:
   right in Hebrew, left in English): head (✕, "your turn" button), messages, the line she types in, and the game's keyboard docked at the
   bottom of the same column at its full width (#kb-ov.kb-in). The board + shares strip are re-fitted beside it (layout(), chW).
   Upright (#game.chd-p): the board on top, the chat + keyboard as one block under it. No floating window, no dark cover. ===== */
html.ch-dock #side { display: none !important; }
html.ch-dock #sheet-wrap { display: none !important; } /* a decision panel waits behind the "🎲 your turn" button (✕ / that button brings it back) */
html.ch-dock #game { gap: 6px; }
html.ch-dock #board-area { flex: none; align-self: center; }
html.ch-dock #chatpop { position: relative; inset: auto; z-index: 1; pointer-events: auto; order: -1; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; }
html.ch-dock #chatpop.hidden { display: none !important; }
html.ch-dock #chatpop .ch-box, html.ch-dock.ch-float #chatpop .ch-box { position: relative; top: auto !important; inset: auto; width: 100%; min-width: 0; height: auto !important; max-height: none !important;
  flex: 1 1 auto; min-height: 0; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
html.ch-dock #chatpop .ch-head { padding: 3px 6px 3px 10px; min-height: 30px; gap: 6px; }
html.ch-dock #chatpop .ch-head > b { flex: none; }
html.ch-dock #chatpop .ch-turn { flex: 1 1 auto; min-width: 0; height: 26px; border: 0; border-radius: 8px; background: linear-gradient(#ffe07a, #f2a516); color: #3a1d00; font-size: 13px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; animation: chTurn 1.6s ease-in-out infinite; }
html.ch-dock #chatpop .ch-turn[hidden] { display: none; }
@keyframes chTurn { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,207,74,.0); } 50% { box-shadow: 0 0 0 3px rgba(255,207,74,.45); } }
html.ch-dock #chatpop .ch-x { flex: none; width: 34px; height: 28px; }
html.ch-dock #chatpop .ch-list { min-height: 40px; }
html.ch-dock #chatpop .ch-form { padding: 5px 6px; }
html.ch-dock #chatpop .ch-form input { padding: 5px 9px; }
.ch-kbslot { flex: none; }
.ch-kbslot:empty { display: none; }
#kb-ov.kb-in, #kb-ov.kb-chat.kb-in[dir="rtl"], #kb-ov.kb-chat.kb-in[dir="ltr"] { --kr: var(--kr-d, 36px); position: relative; inset: auto; left: auto; right: auto; bottom: auto; top: auto; width: auto; z-index: auto;
  border: 0; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0; box-shadow: none; padding: 5px 4px 6px; gap: 5px; background: #12062e; }
#kb-ov.kb-in .kb-keys { max-width: none; gap: 5px; }
#kb-ov.kb-in .kb-row { gap: 4px; }
#kb-ov.kb-in .kb-k { font-size: 18px; border-radius: 8px; }
#kb-ov.kb-in .kb-k.kb-w { font-size: 14px; }
#kb-ov.kb-in .kb-k.kb-ok { font-size: 15px; }
#kb-ov.kb-in .kb-k.kb-sp { font-size: 14px; }
@media (max-height: 340px) { #kb-ov.kb-in { gap: 3px; padding: 3px 3px 4px; } #kb-ov.kb-in .kb-keys, #kb-ov.kb-in .kb-row { gap: 3px; } #kb-ov.kb-in .kb-k { font-size: 16px; } }
/* upright: board on top, the chat + keyboard block under it */
html.ch-dock #game.chd-p { flex-direction: column; }
html.ch-dock #game.chd-p #chatpop { order: 1; width: 100%; }
html.ch-dock #game.chd-p #board-area { order: 0; }

/* ac133 / capital v92 (Hodaya Nov 9 2026 m:b5f5b9c4): 20 s into her buy step with nothing bought, a reminder until she acts.
   ac135 / capital v93 (Hodaya Nov 9 2026 7:01-7:02 PM, m:f51042af + m:9a66ec0c "לא התחברתי להבהוב ... 'לא נבחרו מניות' אחרי עשרים שניות יהבהב בעדינות"):
   ONLY the empty-cart box glows, softly (2 s ease-in-out: border + soft golden halo + a touch of brightness). The hotel +, rows and hint no longer blink.
   #market still gets .bn-on from ui.js but no rule uses it any more. */
#actions.bn-on #buysum.empty { animation: bnSoft 2s ease-in-out infinite; }
@keyframes bnSoft {
  0%, 100% { border-color: rgba(255,214,110,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 0 0 rgba(255,201,60,0), inset 0 0 10px rgba(255,200,80,.12); filter: brightness(1); }
  50% { border-color: rgba(255,222,130,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 14px 2px rgba(255,201,60,.55), inset 0 0 12px rgba(255,207,74,.24); filter: brightness(1.15); }
}
/* ac138 / capital v96 (Hodaya WhatsApp Nov 10 2026 7:33 PM, m:ac14a269 "ההיבהוב עובד בכל תור אך רק במיזוג"): when the merger is back with her
   ("🔁 המיזוג חזר אליך") and 20 s pass without a change, the "✓ אשר מיזוג" buttons (bar + panel) glow softly, like the empty box (bnSoft):
   a golden halo + a touch of brightness, 2 s; filter only, so start/stop have no jump. The empty box keeps its own bnSoft when nothing is bought. */
#actions.bn-mc .btn.mconf, #sheet.bn-mc .mc-ok { animation: bnBtn 2s ease-in-out infinite; }
@keyframes bnBtn {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255,201,60,0)); }
  50% { filter: brightness(1.14) drop-shadow(0 0 7px rgba(255,201,60,.85)); }
}

/* v94 (= acquire ac132b): the game-end merger trade-only line */
.dz-fto{font-size:13px;font-weight:700;color:#ffcf4a;margin:4px 0 2px;line-height:1.3}

/* v95 (= acquire ac137) (Hodaya WhatsApp Nov 10 2026 4:15 PM m:ed53c0ae + 4:17 PM m:f0ab4179): the merger comes back to its maker —
   "🔁 המיזוג חזר אליך" docked over the BOARD (the side column — players, hotel table, bar — stays usable); and a green frame around the
   players row for as long as a merger is going on (from the merging tile until the maker's "✓ אשר מיזוג"). */
#players.mrg-on { outline: 2.5px solid #2fe27a; outline-offset: 1px; border-radius: 10px; box-shadow: 0 0 10px 1px rgba(47,226,122,.55); }
#sheet-wrap.mcdock { background: transparent; pointer-events: none; align-items: stretch; justify-content: stretch;
  padding: var(--mcT, calc(var(--sat) + 6px)) var(--mcR, calc(var(--sar) + 8px)) var(--mcB, calc(var(--sab) + 6px)) var(--mcL, calc(var(--sal) + 8px)); }
#sheet-wrap.mcdock #sheet { pointer-events: auto; width: 100%; max-height: 100%; padding: 6px 10px 0; border-radius: 12px; border-color: #2fe27a; box-shadow: 0 6px 22px rgba(0,0,0,.55); display: flex; flex-direction: column; }
/* v98 (= acquire ac139): the check docks where the merger screens dock (#sheet-wrap.dock, see ui.js mcDock) — same frame, green edge kept, footer pinned */
#sheet-wrap.dock #sheet.mcheck, #sheet-wrap:not(.dock) #sheet.mcheck { display: flex; flex-direction: column; border-color: #2fe27a; }
#sheet-wrap.dock #sheet.mcheck { padding: 5px 8px 0; }
#sheet-wrap.dock #sheet.mcheck h3.mc-h { font-size: 15px; padding: 0 30px; }
#sheet.mcheck > * { flex: none; }
#sheet.mcheck h3.mc-h { font-size: 16px; margin: 0 0 2px; padding: 0 38px; /* room for the room's floating 💬 */ display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; line-height: 1.25; }
#sheet.mcheck .mc-sub { font-size: 12px; margin: 0 0 4px; line-height: 1.3; }
#sheet.mcheck .mc-sub .u-chip { font-size: 12px; }
#sheet.mcheck .mc-sec { margin: 3px 0; padding: 4px 7px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
#sheet.mcheck .mc-sec > .cx-t { font-size: 13.5px; }
#sheet.mcheck .mc-p { border-inline-start: 3px solid var(--pc, #7a4ee0); padding-inline-start: 6px; margin: 3px 0 1px; color: #efe7ff; }
#sheet.mcheck .mc-p.mc-none { border: 0; color: var(--muted); }
#sheet.mcheck .mc-pn { color: #fff; }
#sheet.mcheck .mc-d { display: inline; margin-inline-end: 8px; white-space: normal; }
#sheet.mcheck .mc-d .u-chip, #sheet.mcheck .mc-buy .u-chip { font-size: 12.5px; }
#sheet.mcheck .mc-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 2px; }
#sheet.mcheck .mc-row { display: flex; align-items: center; gap: 7px; padding: 3px 7px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
#sheet.mcheck .mc-row.so-defunct { border-style: dashed; }
#sheet.mcheck .mc-row .u-chip { font-size: 14px; }
#sheet.mcheck .so-have { flex: 1; min-width: 0; font-size: 12.5px; color: #d9cbff; }
#sheet.mcheck .so-dead { display: block; font-size: 11px; color: #ff9d9d; line-height: 1.2; }
#sheet.mcheck .so-dead.so-pre { color: #ffd76a; }
#sheet.mcheck .mc-why { display: block; font-size: 11px; color: #ffd76a; line-height: 1.2; }
#sheet.mcheck .so-q { display: inline-flex; align-items: center; gap: 5px; }
#sheet.mcheck .so-q .btn { min-width: 34px; padding: 3px 9px; font-size: 17px; line-height: 1; min-height: 0; margin: 0; }
#sheet.mcheck .so-q .btn[disabled] { opacity: .35; }
#sheet.mcheck .so-n { min-width: 1.3em; text-align: center; font-size: 16px; }
#sheet.mcheck .mc-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
#sheet.mcheck .mc-bchip { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
#sheet.mcheck .mc-bchip .bs-x { font-style: normal; opacity: .8; font-size: 13px; }
#sheet.mcheck .mc-nob { color: var(--muted); }
#sheet.mcheck .mc-foot { display: flex; gap: 8px; position: sticky; bottom: 0; padding: 6px 0 7px; margin-top: auto; background: #1b0a40; box-shadow: 0 -8px 12px #1b0a40; }
#sheet.mcheck .mc-foot .btn { flex: 1 1 auto; margin: 0; padding: 8px 10px; font-size: 15px; }
#sheet.mcheck .mc-foot .mc-ok { flex: 1.4 1 auto; font-size: 16.5px; }
/* v98 (= acquire ac139): purchase pinned right under the sale (inside the sticky footer, above the buttons); sale vs purchase told apart by edge colour and +/− */
#sheet.mcheck .mc-foot { flex-direction: column; gap: 4px; padding-top: 3px; }
#sheet.mcheck .mc-foot .mc-btns { display: flex; gap: 8px; }
#sheet.mcheck .mc-foot .mc-buy { margin: 0; }
#sheet.mcheck .mc-sell { border-inline-start: 4px solid #2fe27a; }
#sheet.mcheck .mc-buy { border-inline-start: 4px solid #ffc93c; background: rgba(255,201,60,.08); }
#sheet.mcheck .cx-sellh { color: #8dffb9; }
#sheet.mcheck .cx-buyh { color: #ffd76a; }
#sheet.mcheck .mc-in { color: #8dffb9; font-weight: 700; }
#sheet.mcheck .mc-out { color: #ffd76a; font-weight: 700; }
#actions .mc-hint { color: #bfffd8; }
#actions .btn.mconf { white-space: nowrap; }
@media (max-height: 440px) {
  #sheet.mcheck h3.mc-h { font-size: 14.5px; }
  #sheet.mcheck .mc-sub { font-size: 11.5px; margin: 0 0 2px; }
  #sheet.mcheck .mc-subx { display: none; }
  #sheet.mcheck .mc-sec { margin: 2px 0; padding: 3px 6px; font-size: 12px; line-height: 1.3; }
  #sheet.mcheck .mc-sec > .cx-t { font-size: 12.5px; }
  #sheet.mcheck .mc-p { margin: 1px 0; }
  #sheet.mcheck .mc-d .u-chip, #sheet.mcheck .mc-buy .u-chip { font-size: 11.5px; }
  #sheet.mcheck .mc-row { padding: 2px 6px; gap: 5px; }
  #sheet.mcheck .mc-row .u-chip { font-size: 12.5px; }
  #sheet.mcheck .so-have { font-size: 11.5px; line-height: 1.25; }
  #sheet.mcheck .so-q .btn { min-width: 30px; padding: 2px 7px; font-size: 15px; }
  #sheet.mcheck .so-n { font-size: 14.5px; }
  #sheet.mcheck .mc-foot { padding: 4px 0 5px; }
  #sheet.mcheck .mc-foot .btn { padding: 6px 8px; font-size: 13.5px; white-space: nowrap; }
  #sheet.mcheck .mc-foot .mc-ok { font-size: 15px; }
}
#sheet.mcheck .mc-foot .btn { white-space: nowrap; }

/* v101 (Hodaya WhatsApp Nov 11 2026 12:19 AM, m:a3b60e03 "תקטין כדי שיראו את כל אפשרויות המלונות להקים בלי צורך לגלול למטה"): the docked
   "pick the new hotel" panel showed 104x78 cards — on a landscape phone the 2nd/3rd row (and its "tier · price") was cut off under the panel's edge.
   Docked only: smaller cards, a lower skyline, tighter gaps, so every hotel that can be founded fits whole with no scrolling (932/844/667 landscape). */
#sheet-wrap.dock #sheet.found .sub { margin: 0 0 4px; font-size: 12px; }
#sheet-wrap.dock #sheet.found .cgrid { gap: 5px; padding-bottom: 6px; }
#sheet-wrap.dock #sheet.found .ccard { width: 84px; height: 50px; border-radius: 24px 24px 9px 9px; padding: 2px 3px 3px; box-shadow: inset 0 0 0 2px var(--cc), 0 2px 5px rgba(0,0,0,.4); }
#sheet-wrap.dock #sheet.found .ccard .sky { top: 5px; bottom: 25px; left: 5px; right: 5px; }
#sheet-wrap.dock #sheet.found .ccard b { font-size: 14px; line-height: 1.1; }
#sheet-wrap.dock #sheet.found .ccard small { font-size: 10px; line-height: 1.2; white-space: nowrap; }

/* v102 = acquire ac144 (Hodaya WhatsApp Nov 11 2026 12:16 PM, m:66062ed8, landscape screenshot, the button circled: "צריך להיות בצד שמאל"):
   in her buy step "סיים בלי לקנות" sits at the END of its row — the left side in Hebrew (beside the board), also when the hint is hidden or on its
   own line (it used to fall to the right then). English mirrors it (the right side, beside the board). Only this button moves. */
#actions.buying .btn.bnobuy.bskip { margin-inline-start: auto; } /* .bskip = the button while it reads "סיים בלי לקנות" / "Finish without buying" (ui.js) */

/* v103 (Hodaya WhatsApp Nov 11 2026 2:01 PM, m:e7d2ae9e, Accrue landscape screenshot: "משהו בלחצן כל הזמן זז / באנגלית הוא צריך להיות בצד ימין"):
   English (dir=ltr) only — the place-step row ("placing is final" + "Place E-7", "Declare end", "↩ Change") sits on the RIGHT, beside the board, and
   the gold button has one fixed width, so picking another tile (B-11 vs C-4) moves nothing. Hebrew (rtl) has no rule here: unchanged. */
html[dir=ltr] #actions.placing { justify-content: flex-end; }
html[dir=ltr] #actions.placing > .amsg { text-align: right; }
html[dir=ltr] #actions.placing .btn.gold[data-a=place] { flex: none; box-sizing: border-box; width: 7.6em; padding-left: 4px; padding-right: 4px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* v103 (Hodaya WhatsApp Nov 11 2026 2:04 PM, m:255097b4 "התזכורת אחרי עשרים שניות … Finish without buying יהבהב ממש בעדינות אותו דבר גם בעברית"):
   20 s into her buy step with nothing bought (#actions.bn-on from buyNudge in ui.js), "סיים בלי לקנות" / "Finish without buying" breathes very
   gently too — a soft golden glow (border, halo, a touch of brightness; no size change, so nothing moves), 2.4 s ease-in-out, both languages. It stops the moment she buys, ends the turn or the step changes
   (bn-on goes). Reduced motion: no movement, only a steady soft gold outline. */
#actions.bn-on .btn.bnobuy.bskip { animation: bnSkip 2.4s ease-in-out infinite; }
@keyframes bnSkip {
  0%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(255,201,60,0); color: var(--muted); filter: brightness(1); }
  50% { border-color: rgba(255,214,110,.95); box-shadow: 0 0 11px 2px rgba(255,201,60,.5); color: #ffe7a6; filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  #actions.bn-on .btn.bnobuy.bskip { animation: none; border-color: rgba(255,214,110,.9); box-shadow: 0 0 6px rgba(255,201,60,.35); color: #ffe7a6; }
}

/* ===== ac145 / capital v104 (Hodaya WhatsApp Nov 11 2026 9:45 PM, m:167cf1fd + m:643af0ce, two English landscape screenshots:
   "תשנה את כל המבנה לצד ימין בדיוק כמו בכוח הכסף העברית" … "ככה בכל הגרסאות"): the ENGLISH games (acquire English mode, Accrue /en/)
   take the Hebrew arrangement of the game screen — side panel (players, shares, tiles, buy bar) on the RIGHT, board + shares strip on the
   LEFT. Only the blocks move; the words inside each block stay English, left to right. Hebrew (dir=rtl) is untouched by every rule here.
   Upright / stacked (#game.stack) and the upright chat (#game.chd-p) are columns and look the same in both languages already. ===== */
html[dir=ltr] #game:not(.stack):not(.chd-p) { flex-direction: row-reverse; }
/* the open chat takes the side panel's place: order -1 = the first item = the right-hand column, as in Hebrew (nothing to add) */
/* "Finish without buying" stays at the end of the buy bar BESIDE THE BOARD (ac144: left in Hebrew) — now the left edge in English too */
html[dir=ltr] #actions.buying { flex-direction: row-reverse; } /* the buy bar's pieces sit where they sit in Hebrew (each one's words stay LTR) */
html[dir=ltr] #actions.buying .btn.bnobuy.bskip { margin-inline-start: 0; margin-inline-end: auto; }
/* the floating chat window opens over the side panel (Hebrew: the right side); the floating chat button sits on the board side (left) */
html[dir=ltr]:not(.ch-dock) #chatpop .ch-box { left: auto; right: 8px; }
html[dir=ltr].ch-float:not(.ch-dock) #chatpop .ch-box { right: auto; left: 8px; }
html[dir=ltr] .tb-btns .icon.chat.float { right: auto; left: 6px; }
/* the title screen too: its panel (logo + buttons) on the right, the language switch and the legal links at the left, as in Hebrew */
@media (orientation: landscape) { html[dir=ltr] .title-side { margin-inline-end: 0; margin-inline-start: auto; background: linear-gradient(270deg, rgba(9,3,32,0) 0%, rgba(9,3,32,.72) 28%, rgba(9,3,32,.86)); } }
html[dir=ltr] .lang-title, html[dir=ltr] .title-legal { right: auto; left: calc(12px + var(--sal, 0px)); }
/* ac145 / capital v104: the English place-step row as in Hebrew — "Place X-Y" at the LEFT end of the bar (beside the board), "placing is final"
   at the right end. (Replaces v103's right-hand English row, which was beside the board while the board was on the right.) */
html[dir=ltr] #actions.placing { flex-direction: row-reverse; justify-content: space-between; }
html[dir=ltr] #actions.placing > .amsg { text-align: right; }
/* the top bar as in Hebrew: the turn line at the right, the icon buttons at the left beside the board, ☰ at the far left (each icon unchanged) */
html[dir=ltr] #topbar, html[dir=ltr] #topbar .tb-btns { flex-direction: row-reverse; }

/* ===== v106 (Nov 12 2026, Hodaya WhatsApp 9:09 AM m:f165d1da "ברור שיהיה זהה לחלוטין!!!"): ENGLISH = a FULL mirror of the Hebrew screen.
   ui.js keeps <html dir="rtl"> in English too and adds html.en-mir, so every row, column, chip, tile, button and popup is laid out
   exactly where it is in Hebrew (all the old html[dir=ltr] rules above no longer apply). The rules below only make each piece of
   English text read left→right (unicode-bidi: plaintext = a paragraph's direction comes from its own first letter) and keep the
   Hebrew right alignment ("start" in Hebrew = right). Hebrew never has html.en-mir → nothing here touches it. */
html.en-mir { text-align: right; }
html.en-mir body, html.en-mir body * { unicode-bidi: plaintext; }
html.en-mir input, html.en-mir textarea, html.en-mir select { text-align: right; }
html.en-mir #sheet .sh-rc, html.en-mir .tie-bon, html.en-mir .place .pl-n, html.en-mir #msum, html.en-mir #sheet .ms-tabbody { text-align: right; }
html.en-mir .pchip .pdot { float: right; margin-top: 2.5px; } /* the player's colour dot on the name's right, as in Hebrew (the name itself still reads left→right) */
html.en-mir #chatpop .ch-n .pdot2 { float: right; margin-top: 4px; }
html.en-mir .title-legal { unicode-bidi: isolate; } /* "Support · Privacy" links in the Hebrew order (Support on the right); each word reads left→right */
html.en-mir #actions.placing .btn.gold[data-a=place] { flex: none; box-sizing: border-box; width: 7.6em; padding-left: 4px; padding-right: 4px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; } /* v103's English fixed-width "Place X-Y" (it never moves when the tile changes), kept */

/* ring (Hodaya, WhatsApp Nov 16 10:34 AM, m:3492105e): yellow frame on the 'finish without buying' button, same as Acquire */
.bskip { border-color: var(--gold) !important; box-shadow: 0 0 0 2px var(--gold), 0 0 12px rgba(255,207,74,.55) !important; }
