/* عواصم الحظ — board screen */
#bd{display:flex;flex-direction:column;background:radial-gradient(circle at 50% 30%,#13513c,#0b2e22 70%);min-height:100vh;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}
#bd .top .logo{font-family:Lalezar,Cairo,sans-serif}
#bdGoal{text-align:center;font-size:12.5px;color:#cfe8da;padding:2px 6px 4px}
#bdGoal b{color:#f2c14e}
#bdPl{display:flex;gap:4px;padding:0 4px 6px}
.bdp{flex:1;min-width:0;background:#103f30;border:2px solid transparent;border-radius:12px;padding:4px 5px;font-size:11px;line-height:1.3;position:relative;display:flex;gap:5px;align-items:center;cursor:pointer;color:#fff}
.bdp.act{border-color:#f2c14e;background:#1c6b4f}
.bdp.out{opacity:.35}
.bdp .av{width:30px;height:30px;font-size:14px;flex:none}
.bdp .tx{min-width:0;flex:1}
.bdp .nm{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bdp .ca{font-size:13px;font-weight:900}
.bdp .wl{color:#a9cdbb;font-size:10px}
.bdp .tk{position:absolute;left:3px;top:3px;width:9px;height:9px;border-radius:50%;border:1.5px solid #fff}
.bdp .bub{position:absolute;top:100%;right:0;left:0;margin-top:3px;background:#fff;color:#111;border-radius:10px;padding:4px 6px;font-size:12px;z-index:9;box-shadow:0 2px 6px #0007;display:none}
.bdp .bub.show{display:block;animation:bdpop .2s}
@keyframes bdpop{from{transform:scale(.6);opacity:0}}
#bdBoard{direction:ltr;display:grid;grid-template-columns:repeat(9,1fr);grid-template-rows:repeat(11,1fr);width:calc(100% - 8px);margin:0 4px;aspect-ratio:9/12.4;max-height:calc(100dvh - 230px);gap:2px;background:#072219;padding:2px;border-radius:10px;align-self:center}
.bdc{background:#f6f1e3;color:#1d1d1d;border-radius:4px;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;direction:rtl;text-align:center}
.bdc .band{width:100%;height:6px;flex:none}
.bdc .fl{font-size:15px;line-height:1.1;margin-top:1px}
.bdc .n{font-size:8.5px;font-weight:700;line-height:1.05;padding:0 1px;white-space:nowrap}
.bdc .p{font-size:8px;color:#555;line-height:1.1}
.bdc.corner{background:#e9dfc5}
.bdc.corner .fl{font-size:18px;margin-top:4px}
.bdc.special .fl{font-size:17px;margin-top:5px}
.bdc.crown{box-shadow:inset 0 0 0 2px #f2c14e;background:#fff6d6}
.bdc.mort{opacity:.45}
.bdc .own{position:absolute;inset:0;border-radius:4px;pointer-events:none}
.bdc .bld{position:absolute;top:7px;left:1px;font-size:7px;line-height:1}
.bdc .toks{position:absolute;top:8px;right:1px;width:25px;display:flex;gap:1px;flex-wrap:wrap;direction:rtl}
.bdtok{width:11px;height:11px;border-radius:50%;border:1.5px solid #fff;box-shadow:0 1px 2px #0008}
.bdc.hl{outline:3px solid #f2c14e;outline-offset:-1px;z-index:2}
.bdc.hl .bdtok{animation:bdhop .3s ease-out}
@keyframes bdhop{0%{transform:translateY(-7px) scale(1.25)}100%{transform:none}}
#bdCenter{grid-row:2/11;grid-column:2/9;direction:rtl;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:6px;background:radial-gradient(circle at 50% 40%,#17694d,#0f3d2e 75%);border-radius:6px;overflow:hidden;color:#fff}
#bdTitle{font-weight:800;font-size:15px;color:#f2c14e;text-align:center;min-height:19px}
#bdDice{display:flex;gap:10px;direction:ltr}
.bddie{width:44px;height:44px;background:#fff;border-radius:10px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:6px;box-shadow:0 3px 0 #b9b9b9}
.bddie i{width:8px;height:8px;border-radius:50%;background:#1d1d1d;place-self:center;visibility:hidden}
.bddie i.v{visibility:visible}
.bddie.red i{background:#d22}
#bdDice.rolling .bddie{animation:bdshake .14s infinite alternate}
@keyframes bdshake{from{transform:rotate(-12deg) translateY(-3px)}to{transform:rotate(12deg) translateY(2px)}}
#bdCard{width:100%;background:#f6f1e3;color:#1d1d1d;border-radius:10px;overflow:hidden;font-size:12px;min-height:96px}
#bdCard .cb{height:10px}
#bdCard .ch{display:flex;align-items:center;gap:6px;padding:5px 8px 0}
#bdCard .ch .f{font-size:26px}
#bdCard .ch .t{font-weight:800;font-size:16px}
#bdCard .ch .pr{margin-right:auto;font-weight:700}
#bdCard .rows{padding:3px 8px 6px;color:#333;line-height:1.5}
#bdCard .rows span{display:inline-block;margin-left:8px;white-space:nowrap}
#bdCard .owner{font-weight:700}
#bdCard.msg{display:flex;flex-direction:column;justify-content:center;padding:10px;text-align:center;font-size:14px;font-weight:600}
#bdCard.msg .k{font-size:12px;color:#777;margin-bottom:4px}
#bdLog{width:100%;font-size:11.5px;color:#e6f4ec;line-height:1.45;min-height:50px}
#bdLog div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bdLog div:first-child{font-weight:700;color:#fff}
#bdLog div:nth-child(2){opacity:.8}#bdLog div:nth-child(3){opacity:.6}#bdLog div:nth-child(4){opacity:.45}
#bdPot{font-size:11px;color:#a9cdbb;min-height:14px}
#bdBarW{padding:8px 4px 6px}
#bdBar{display:flex;gap:6px;min-height:56px;align-items:stretch}
#bdBar button{flex:1;border:0;border-radius:14px;font-size:17px;font-weight:800;padding:12px 6px;background:#f2c14e;color:#3a2a00;font-family:inherit}
#bdBar button.sec{flex:.5;background:#1c6b4f;color:#fff;font-size:16px;font-weight:700}
#bdBar button.bad{flex:.7;background:#7a2b2b;color:#fff;font-size:15px}
#bdBar button:disabled{opacity:.4}
#bdBar .wait{flex:1;text-align:center;align-self:center;color:#a9cdbb;font-size:14px}
#bdTimer{height:5px;border-radius:3px;background:#1c6b4f;margin-top:6px;overflow:hidden}
#bdTimer i{display:block;height:100%;background:#f2c14e;width:0}
#bdov .box{max-height:84vh;overflow:auto;text-align:right}
#bdov h2{text-align:center}
.bdrow{display:flex;align-items:center;gap:6px;padding:7px 4px;border-bottom:1px solid #0002;font-size:13px}
.bdrow .sw{width:8px;align-self:stretch;border-radius:3px}
.bdrow .pn{flex:1;min-width:0}
.bdrow .pn small{display:block;opacity:.7;font-size:11px}
.bdrow button{border:0;border-radius:9px;padding:7px 8px;font-size:12px;font-weight:700;background:#f2c14e;color:#3a2a00;font-family:inherit}
.bdrow button.s{background:#1c6b4f;color:#fff}
.bdrow button.k{background:#c62828;color:#fff}
.bdrow button:disabled{opacity:.3}
.bdrow input[type=checkbox]{width:22px;height:22px;accent-color:#f2c14e}
.bdsub{font-weight:800;margin:10px 0 2px;font-size:14px}
.bdcash{display:flex;align-items:center;gap:8px;padding:8px 4px;font-size:13px}
.bdcash input{flex:1;padding:9px;border-radius:10px;border:2px solid #0003;font-size:16px;text-align:center;font-family:inherit}
.bdchips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:6px 0}
.bdchips button{border:2px solid #0002;background:#fff;color:#222;border-radius:20px;padding:9px 12px;font-size:14px;font-family:inherit}
.bdempty{opacity:.7;text-align:center;padding:12px}
.gcard.brd{background:linear-gradient(160deg,#1c6b4f,#0f3d2e);color:#fff}
.gcard.brd .gfan{font-size:40px;display:flex;justify-content:center;gap:6px}
#bd .top .logo{display:none}
#bd .top{justify-content:flex-start;gap:6px}
#bd .top .coinpill{margin-inline-end:auto}
.bdp{flex-direction:column;align-items:center;text-align:center;gap:2px;padding:4px 3px}
.bdp .av{width:26px;height:26px;font-size:12px}
.bdp .tx{width:100%}
.bdp .nm{font-size:10.5px}
.bdp .tk{left:4px;top:4px}
/* clearer player colours */
.bdtok{width:15px;height:15px;border:2px solid #fff;box-shadow:0 0 0 1.5px #0009,0 2px 3px #000a}
.bdc .toks{top:7px;right:1px;width:34px;gap:2px}
.bdc.owned .own::after{content:"";position:absolute;bottom:0;left:0;width:10px;height:10px;background:var(--oc);border-top-right-radius:10px}
.bdp .tk{width:12px;height:12px;border:2px solid #fff;box-shadow:0 0 0 1px #0008}
.bdp.act{box-shadow:0 0 0 2px var(--brass)}
.bdp{border-top:4px solid var(--pc,transparent)}

/* ===== عواصم الحظ theme (own identity, not Ashak's) ===== */
:root{--bg:light-dark(#e9f2ec,#061d15);--ink:light-dark(#0c2a1f,#eef7f1);--wood:light-dark(#135a40,#0f4a35);--brass:#f2c14e;--red:#c7901a;--green:#1f9d63;--felt:#0e5b3f;--felt2:#083826;--muted:light-dark(#4d6c5f,#9dbfae);--panel:light-dark(#f7fcf8,#0c2b20)}
body{background:
  radial-gradient(120% 60% at 50% -10%,color-mix(in srgb,#f2c14e 22%,transparent),transparent 60%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23c7901a' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M28 6l6 8 10 0-2 10 8 6-8 6 2 10-10 0-6 8-6-8-10 0 2-10-8-6 8-6-2-10 10 0z'/%3E%3Ccircle cx='28' cy='30' r='6'/%3E%3C/g%3E%3C/svg%3E"),
  var(--bg)}
.hlogo{font:68px/1.05 Lalezar,Cairo;background:linear-gradient(180deg,#ffe08a,#e0a526 55%,#a86f0c);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 3px 0 light-dark(#0e4a3480,#000a));margin:6px 0 2px}
.hlogo span{color:transparent;font-size:inherit;margin:0}
.red{background:linear-gradient(180deg,#ffd463,#e3a51d);color:#2a1c00;box-shadow:0 4px 0 #8f650d}
.btn.red{text-shadow:none}
.wood{background:linear-gradient(180deg,#1a7a55,#0f5a3f);box-shadow:0 4px 0 #083826}
.panel{border-color:color-mix(in srgb,#c7901a 40%,transparent);box-shadow:0 6px 18px #0b2e2214}
.gcards{grid-template-columns:1fr!important}
.gcard.brd{padding:22px 10px 18px;background:radial-gradient(circle at 50% 20%,#1f7a58,#0b3a2a 75%);border:3px solid #f2c14e}
.gcard.brd b{font-size:56px}
.gcard.brd .gfan{font-size:54px}
.gcard.brd small{font-size:15px}
.bnav{border-color:color-mix(in srgb,#c7901a 35%,transparent)}
.code{color:var(--red)}
.bddie.red{background:#fff;box-shadow:0 3px 0 #b9b9b9}
.bnav button.mid i{background:radial-gradient(circle at 50% 30%,#ffd463,#d99a12)}
input{background:light-dark(#fff,#071a13)}
html[lang=en] .bdc .n{font-size:7px;letter-spacing:-.2px;white-space:normal;word-break:break-word;line-height:1}
html[lang=en] .bdrow{flex-wrap:wrap}
html[lang=en] .bdrow .pn{flex:1 1 calc(100% - 20px)}
html[lang=en] .bdrow button{flex:1 1 auto;font-size:11.5px;padding:7px 6px}
html[lang=en] .bdrow:has(input[type=checkbox]) .pn{flex:1 1 auto}
html[lang=en] #bdov .box{text-align:left}
/* v0.3.8: much clearer player colours */
.bdc.owned{background:color-mix(in srgb,var(--oc) 42%,#f6f1e3)}
.bdc.owned .n{color:#000}
.bdc.owned .p{color:#222;font-weight:700}
.bdc.owned .own::after{width:100%;height:5px;border-radius:0;left:0;bottom:0}
.bdc.crown.owned{background:color-mix(in srgb,var(--oc) 42%,#fff6d6)}
.bdtok{width:17px;height:17px;border:2.5px solid #fff;box-shadow:0 0 0 1.5px #000,0 2px 4px #000c}
.bdc .toks{width:38px}
.bdp{background:linear-gradient(180deg,color-mix(in srgb,var(--pc) 70%,#103f30),color-mix(in srgb,var(--pc) 28%,#103f30));border:3px solid var(--pc);border-top-width:3px}
.bdp.act{border-color:#fff;box-shadow:0 0 0 3px var(--pc),0 0 14px var(--pc)}
.bdp .av{box-shadow:0 0 0 3px var(--pc),0 0 0 5px #fff}
.bdp .wl{color:#fff;opacity:.85}
.bdp .tk{width:16px;height:16px;border:2.5px solid #fff}
/* v0.3.8: solid group colours + owner price tags (like classic board apps) */
.bdc.prop{background:var(--gc);color:#fff}
.bdc.prop .band{display:none}
.bdc.prop .pt{width:100%;flex:none;background:color-mix(in srgb,var(--gc) 55%,#fff);color:#fff;font-size:8.5px;font-weight:900;line-height:12px;text-shadow:0 1px 1px #0006}
.bdc.prop .fl{margin-top:2px}
.bdc.prop .n{color:#fff;font-size:8.5px;font-weight:900;text-shadow:0 1px 2px #0009}
.bdc.prop.crown{box-shadow:inset 0 0 0 2px #fff3c0}
.bdc.owned,.bdc.crown.owned{background:var(--gc,#f6f1e3)}
.bdc.special.owned{background:#f6f1e3}
.bdc.owned .own::after{display:none}
.bdc .tag{display:none}
.bdc.owned .tag{display:block;position:absolute;top:1px;left:50%;transform:translateX(-50%);min-width:70%;padding:0 3px;height:13px;line-height:11px;border-radius:4px;background:var(--oc);border:1.5px solid #fff;box-shadow:0 1px 3px #000a;color:#fff;font-size:8.5px;font-weight:900;white-space:nowrap;z-index:1;text-shadow:0 1px 1px #0008}
.bdc.prop.owned .pt{visibility:hidden}
.bdc.special.owned .fl{margin-top:13px}
.bdc.mort .tag{background:#777}
.bdc.mort{opacity:.55}
.bdc .toks{top:auto;bottom:1px;right:1px}
.bdc .bld{top:auto;bottom:1px;left:1px;font-size:8px}
.bdc .toks{top:13px;bottom:auto;right:0}
.bdc .bld{top:14px;bottom:auto;left:1px;font-size:8px}
.bdc.owned .tag{top:0;height:12px;line-height:10px;border-width:1.5px;border-top:0;border-radius:0 0 5px 5px;min-width:80%}
.bdc.prop .n,.bdc.prop .pt{text-shadow:0 0 2px #000,0 1px 2px #000}
/* v0.3.9: owner tag must never blend with the group colour */
.bdc.owned .tag{top:1px;height:15px;line-height:12px;min-width:84%;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 1.5px #000,0 2px 4px #000c;font-size:10px}
.bdc.prop.owned .fl{margin-top:5px}
.bdc.special.owned .fl{margin-top:16px}
.bdc .toks{top:auto;bottom:12px;right:0}
.bdc .toks{top:16px;bottom:auto;right:0}
