:root{--mahogany:#8f3d22;--mahogany-dark:#4a1a0d;--walnut:#7a4630;--maple:#eecb94;--maple-light:#f7e6c8;--cream:#f8f1e4;--brass:#c09a48;--brass-light:#ead08a;--ink:#32170c;--muted:#806556;--line:#e7d6b6;--serif:"Marcellus", "IBM Plex Sans Arabic", "IBM Plex Sans Hebrew", "IBM Plex Sans", serif;--sans:"IBM Plex Sans", "IBM Plex Sans Arabic", "IBM Plex Sans Hebrew", system-ui, sans-serif;--side:236px}*{box-sizing:border-box}html,body{margin:0;overflow-x:hidden}body{font:400 15px/1.55 var(--sans);color:var(--ink);background:var(--cream)}a{color:var(--mahogany);text-underline-offset:3px}h1,h2,h3{font-family:var(--serif);margin:0 0 10px;font-weight:400;line-height:1.2}h1{font-size:clamp(28px,3.4vw,40px)}h2{margin:0;font-size:24px}h3{font-size:18px}:is([lang=ru],[lang=el],[lang=ar],[lang=he],[lang=fa]) :is(h1,h2,h3){font-family:var(--sans);font-weight:600}p{margin:0 0 10px}.num{font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}.center{text-align:center}.fine{color:var(--muted);margin:10px 0 0;font-size:13px}.error{color:#a5180c;margin-top:10px}.ok,.good{color:#2c6a37}.bad{color:#a5180c}.mono{word-break:break-all;font:400 12px/1.5 ui-monospace,Consolas,monospace}button,.button{font:500 14px/1.25 var(--sans);color:var(--ink);cursor:pointer;text-align:center;border:1px solid var(--line);background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:9px 16px;text-decoration:none;display:inline-flex}button:hover:not(:disabled),.button:hover{border-color:var(--walnut)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--brass);outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--mahogany);border-color:var(--mahogany);color:#fff6e6;font-weight:600}button.primary:hover:not(:disabled),.button.primary:hover{background:var(--mahogany-dark)}.gold{background:linear-gradient(var(--brass-light), var(--brass));border-color:var(--brass-light);color:var(--ink);font-weight:600}.light{color:#fff6e6;background:#ffffff14;border-color:#ffffff70}button.link{min-height:0;color:var(--mahogany);font-size:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.big{min-height:54px;font-size:17px}.full{width:100%;margin-top:10px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;display:flex}.spread{justify-content:space-between}.icon{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:20px;height:20px}.card{border:1px solid var(--line);background:#fff;border-radius:14px;min-width:0;padding:18px;box-shadow:0 4px 16px #4a1a0d0f}.shell{min-height:100vh;display:flex}.sidebar{width:var(--side);background:url(/grain.svg), var(--mahogany-dark);height:100vh;color:var(--maple-light);border-inline-end:4px solid var(--brass);flex-direction:column;flex:none;gap:22px;padding:18px 12px;display:flex;position:sticky;top:0}.sidebar nav{flex-direction:column;gap:3px;display:flex}.sidebar nav a{color:var(--maple-light);border-radius:9px;align-items:center;gap:12px;padding:11px 12px;text-decoration:none;display:flex}.sidebar nav a:hover{background:#ffffff14}.sidebar nav a.on{background:var(--maple);color:var(--ink);font-weight:600}.sidebar p{color:#f7e6c8a0;margin:auto 0 0;padding-inline:12px;font-size:11px}.brand{color:var(--maple-light);letter-spacing:.04em;align-items:center;gap:10px;padding-inline:6px;font:400 26px/1 Marcellus,serif;text-decoration:none;display:flex}.brand small{letter-spacing:0;color:var(--brass-light);text-align:start;font:700 13px/1.4 Amiri,serif;display:block}.star{fill:none;width:34px;height:34px;stroke:var(--brass-light);stroke-width:1.8px;flex:none}.star .core{fill:var(--brass-light);stroke:none}.content{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{z-index:5;border-bottom:1px solid var(--line);background:#fffdf8f5;justify-content:flex-end;align-items:center;gap:10px;padding:10px 24px;display:flex;position:sticky;top:0}.topbar .brand{color:var(--maple-light);margin-inline-end:auto;display:none}.lang{color:var(--walnut);align-items:center;gap:6px;margin:0;display:flex}.lang select{font:500 13px var(--sans);color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;min-height:40px;padding:8px}.balance{background:var(--maple);border-color:var(--brass);font-weight:600}.balance b{background:var(--mahogany);color:#fff;border-radius:50%;place-items:center;width:22px;height:22px;line-height:1;display:grid}.strip{text-align:center;background:var(--maple);padding:5px 16px;font-size:13px}main{flex:1}footer{border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:6px 20px;margin-top:32px;padding:22px 24px;font-size:12px;display:flex}footer p{margin:0}.tabbar{display:none}.page{grid-template-columns:minmax(0,1fr);align-content:start;gap:22px;width:min(1100px,100% - 32px);margin-inline:auto;padding-top:24px;display:grid}.page.narrow{width:min(540px,100% - 32px)}.page>h1{margin:0}.title{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 16px;margin-bottom:12px;display:flex}.title h3{margin:0}.title a{font-size:13px}.hero{color:#fff6e6;background:url(/art/duel.webp) right 30% / cover, var(--mahogany-dark);border:1px solid var(--brass);border-radius:18px;align-items:center;min-height:280px;padding:32px;display:flex;position:relative;overflow:hidden}.hero:before{content:"";background:linear-gradient(90deg,#2c0d05f5 0%,#2c0d05c8 42%,#2c0d0520 75%);position:absolute;inset:0}[dir=rtl] .hero{background-position:0 30%}[dir=rtl] .hero:before{transform:scaleX(-1)}.hero>div{max-width:440px;position:relative}.hero p{color:#f7e6c8}.resume{text-align:center;background:var(--mahogany);color:#fff6e6;border-radius:12px;padding:14px;font-weight:600;text-decoration:none;display:block}.live{color:var(--muted);gap:16px;margin:0;font-size:13px;display:flex}.live b{color:var(--ink)}.rooms{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;display:grid}.room{text-align:center}.room .fine{margin:0 0 4px}.checker-coin{background:radial-gradient(circle at 40% 34%,#f8dcaa,#d09a55);border:1px solid #a9763a;border-radius:50%;place-items:center;width:82px;height:82px;margin-bottom:14px;font-size:24px;font-weight:700;display:inline-grid;box-shadow:inset 0 0 0 6px #fff3,inset 0 0 0 7px #a9763a66,0 4px #a9763a}.checker-coin.dark{color:#fbe6c2;background:radial-gradient(circle at 40% 34%,#93391f,#4a160c);border-color:#2c0b04;box-shadow:inset 0 0 0 6px #ffffff12,inset 0 0 0 7px #a2523a,0 4px #2c0b04}.win{font:600 16px var(--sans);margin:0 0 2px}.two{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:14px;display:grid}.rows{margin:0;padding:0;list-style:none}.rows li{border-top:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px 18px;padding:12px 0;display:flex}.cell{flex:84px;min-width:0}.cell small{color:var(--muted);font-size:11px;display:block}.cell em{color:var(--muted);font-size:12px;font-style:normal;display:block}.empty{color:var(--muted);text-align:center;margin:0;padding:22px 8px}.rank{background:var(--maple-light);border-radius:50%;place-items:center;width:28px;height:28px;font-size:13px;font-weight:700;display:grid}.rank.r1{background:var(--brass);color:#fff}.badge{background:var(--maple-light);border-radius:99px;padding:1px 10px;font-size:13px;display:inline-block}.badge.won{color:#2c6a37;background:#dcefd9}.filters{flex-wrap:wrap;gap:8px;display:flex}.filters .on{background:var(--mahogany);color:#fff;border-color:var(--mahogany)}.steps{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:0;padding:0;list-style:none;display:grid}.steps>li>span{background:var(--mahogany);color:#fff;border-radius:50%;place-items:center;width:34px;height:34px;margin-bottom:10px;display:inline-grid}.steps p,.trust p{color:var(--muted);margin:0}.trust{background:var(--maple-light);border-radius:14px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:14px;padding:20px;display:grid}.trust h3{margin-bottom:4px}.big-balance{font:600 42px/1.1 var(--sans);text-align:start;margin:0 0 8px}label{color:var(--muted);margin-top:10px;font-size:13px;display:block}input{font:400 16px var(--sans);color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:9px;width:100%;padding:11px 12px}details{border-top:1px solid var(--line);text-align:start;margin-top:14px;padding-top:12px}summary{cursor:pointer;font-weight:500}.help li{margin-bottom:10px}.help h3{margin-top:18px}.history img{object-fit:cover;border-radius:10px;width:100%;height:auto;max-height:380px;margin-bottom:16px;display:block}.verify ul{padding:0;font-size:14px;list-style:none}.boot{text-align:center;color:var(--muted);padding:80px 16px}.game{grid-template-columns:minmax(0,1fr) 260px;align-items:start;gap:18px;max-width:1180px;margin-inline:auto;padding:14px 20px 0;display:grid}.game-main{width:100%;max-width:max(340px,125vh - 375px);margin-inline:auto}.game-side{gap:12px;display:grid}.player{border:1px solid #0000;border-radius:10px;align-items:center;gap:10px;padding:7px 12px;display:flex}.player.turn{border-color:var(--brass);background:#fff}.pips{color:var(--muted);margin-inline-start:auto}.dot{border-radius:50%;flex:none;width:20px;height:20px;box-shadow:inset 0 0 0 3px #ffffff40}.dot.w{background:#e3b674;border:1px solid #a9763a}.dot.b{background:#6a2414;border:1px solid #3a1008}.clock{text-align:end;font:600 22px/1 var(--sans);font-variant-numeric:tabular-nums;margin-inline-start:auto}.clock small{font:400 11px var(--sans);color:var(--muted);display:block}.clock.low{color:#a5180c}.dock{border:1px solid var(--line);background:#fff;border-radius:12px;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin:8px 0;padding:9px 12px;display:grid}.status{text-align:center;margin:0;font-weight:500}.actions{gap:8px;display:flex}.result{margin:10px 0}.potcard p{justify-content:space-between;gap:10px;display:flex}.potcard b{font-size:18px}.moves ol{max-height:320px;margin:0;padding:0;font-size:13px;list-style:none;overflow:auto}.moves li{border-top:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.moves .dot{width:12px;height:12px}.board{-webkit-user-select:none;user-select:none;touch-action:manipulation;filter:drop-shadow(0 14px 18px #3a170840);direction:ltr;width:100%;height:auto;display:block}.frame{fill:#9a4526;stroke:#4c1c0d;stroke-width:6px}.felt{fill:#a6512f;stroke:#5d2512;stroke-width:10px}.grain{pointer-events:none;opacity:.55}.bar{fill:#7c331b;stroke:#4c1c0d;stroke-width:4px}.hinge rect{fill:var(--brass);stroke:#7d6128;stroke-width:4px}.hinge circle{fill:#f4e2ae;stroke:#7d6128;stroke-width:3px}.tri.a{fill:#eecb94}.tri.b{fill:#6f3a26}.hot-spot{cursor:pointer}.checker circle{stroke-width:4px}.checker.w circle{fill:url(#maple);stroke:#9a6a31}.checker.b circle{fill:url(#mahogany);stroke:#2c0b04}.checker circle.inner{fill:none;stroke-width:3px}.checker.w circle.inner{stroke:#b8864a}.checker.b circle.inner{stroke:#a2523a}.checker.can circle:first-child{stroke:#fff4c9;stroke-width:11px}.checker.glow circle:first-child{stroke:#fff;stroke-width:20px}.checker text{font:600 60px var(--sans);text-anchor:middle;fill:var(--ink)}.checker.b text{fill:#fbe6c2}.target{fill:#fff4c9;stroke:#4c1c0d;stroke-width:7px;animation:1.3s ease-in-out infinite breathe}@keyframes breathe{50%{opacity:.4}}.tray>rect:first-child{fill:#55200f;stroke:#3c1407;stroke-width:5px}.tray.ready>rect:first-child{fill:#b8913f;stroke:#fff4c9;stroke-width:8px}.borne.w{fill:#e3b674;stroke:#9a6a31;stroke-width:3px}.borne.b{fill:#6a2414;stroke:#2c0b04;stroke-width:3px}.dice{direction:ltr;gap:8px;display:flex}.die{filter:drop-shadow(0 2px 2px #0004);width:44px;animation:.35s ease-out roll}.die rect{fill:#fdfbf6;stroke:#c9bba6;stroke-width:3px}.die circle{fill:#3a1a0e}.die.used{opacity:.25}@keyframes roll{0%{opacity:0;transform:rotate(-90deg)scale(.7)}}.spinner{border:4px solid var(--maple);border-top-color:var(--mahogany);border-radius:50%;width:34px;height:34px;margin:6px auto 18px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.install{border-color:var(--brass);flex-wrap:wrap;align-items:center;gap:14px;display:flex}.install img{border-radius:12px}.install div{flex:220px}.install h3,.install p{margin:0}.install p{color:var(--muted);font-size:14px}@media (width<=1100px){.game{grid-template-columns:minmax(0,1fr);padding:8px 12px 0}.game-side{width:100%;max-width:620px;margin-inline:auto}}@media (width<=860px){.sidebar{display:none}.topbar{background:url(/grain.svg), var(--mahogany-dark);border-bottom:3px solid var(--brass);gap:8px;padding:8px 10px}.topbar .brand{padding:0;font-size:22px;display:flex}.topbar .brand small{display:none}.topbar .lang{color:var(--maple-light)}.topbar .lang .icon{display:none}.lang select{max-width:96px;padding:6px 4px}.tabbar{inset-inline:0;z-index:6;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);background:#fffdf8;display:flex;position:fixed;bottom:0}.tabbar a{min-width:0;color:var(--muted);flex-direction:column;flex:1;align-items:center;gap:2px;padding:8px 2px;font-size:11px;text-decoration:none;display:flex}.tabbar a span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.tabbar a.on{color:var(--mahogany);font-weight:600}.content{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.topbar{padding-top:calc(8px + env(safe-area-inset-top));padding-inline:max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right))}.lang select{font-size:16px}.page{gap:18px;width:calc(100% - 20px);padding-top:14px}.page.narrow{width:min(540px,100% - 20px)}.hero{background-position:72% 0;align-items:flex-end;min-height:320px;padding:22px 18px}.hero:before,[dir=rtl] .hero:before{background:linear-gradient(#2c0d0510 10%,#2c0d05d0 52%,#2c0d05f5);transform:none}.rooms{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.room{padding:14px 10px}.checker-coin{width:66px;height:66px;font-size:19px}}@media (width<=560px){.game{padding:4px 4px 0}.dock{grid-template-columns:1fr;justify-items:center;gap:8px}.actions{width:100%}.actions button{flex:1}}.exit{display:none}@media (orientation:landscape) and (height<=560px){.shell:has(.game) :is(.sidebar,.topbar,.tabbar,.strip,footer){display:none}.shell:has(.game) .content{padding-bottom:0}.game{max-width:none;padding:4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));grid-template-columns:minmax(0,1fr)}.game-main{grid-template-rows:auto auto auto 1fr;grid-template-columns:auto minmax(170px,250px);place-content:start center;column-gap:10px;max-width:none;height:calc(100dvh - 8px);display:grid}.game-main>.board{grid-area:1/1/-1;width:auto;max-width:calc(100vw - 200px);height:calc(100dvh - 8px)}.game-main>:not(.board){grid-column:2;min-width:0}.exit{top:6px;z-index:7;min-height:32px;padding:2px 10px;display:inline-flex;position:fixed;inset-inline-end:8px}.player{padding:4px 8px}.player:first-child{margin-inline-end:44px}.dock{grid-template-columns:1fr;justify-items:center;gap:6px;margin:4px 0;padding:6px}.status{font-size:13px}.die{width:30px}.actions{width:100%}.actions button{flex:1;min-height:36px;padding:4px 8px}.result{max-height:60dvh;margin:4px 0;padding:8px;overflow:auto}}body{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}@media (display-mode:standalone){.sidebar{padding-top:calc(18px + env(safe-area-inset-top))}}@media (prefers-reduced-motion:reduce){*{animation:none!important}}
