@import"https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap";:root{font-family:Vazirmatn,Tahoma,sans-serif;color:#23352c;background:#f3efdf;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 12% 8%,#e6d9b8 0,transparent 26%),#f3efdf}.app-shell{max-width:1240px;margin:auto;padding:0 28px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9cfb7}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:54px;height:54px;object-fit:contain;border-radius:14px;box-shadow:0 5px 15px #14251f24}.brand strong{display:block;letter-spacing:2px;font-size:18px;color:#182c23}.brand small{display:block;color:#8b7954;font-size:11px}.top-actions{display:flex;align-items:center;gap:14px}.online-pill{font-size:12px;color:#56735e;background:#e1eadc;padding:8px 13px;border-radius:30px}.online-pill i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5d9b6e;margin-left:6px}.icon-button,.close-modal{border:0;background:#fffaf0;color:#31483b;border-radius:12px;width:40px;height:40px;display:grid;place-items:center;cursor:pointer}.hero{display:flex;align-items:center;justify-content:space-between;min-height:300px;padding:32px 5%;background:#14251f;border-radius:0 0 30px 30px;color:#f8f0dc;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;width:420px;height:420px;border:1px solid #d7b56d33;border-radius:50%;left:20%;top:-220px;box-shadow:0 0 0 35px #d7b56d0c,0 0 0 75px #d7b56d0a}.hero-copy{position:relative;z-index:1}.eyebrow{display:inline-flex;align-items:center;gap:6px;color:#b48d4c;font-size:11px;font-weight:800;letter-spacing:.4px}.hero .eyebrow{color:#d7b56d}.hero h1{font-size:clamp(30px,4vw,48px);line-height:1.5;margin:12px 0;font-weight:900}.hero h1 em{font-style:normal;color:#dfbd78}.hero p{color:#c6c9b9;font-size:14px}.hero-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.hero-tags span{border:1px solid #ffffff25;border-radius:30px;padding:7px 12px;color:#d9ddce;font-size:11px}.hero-art{width:250px;height:220px;position:relative;z-index:1;display:grid;place-items:center}.sunburst{position:absolute;font-size:120px;color:#d7b56d33}.art-dice{width:112px;height:112px;border-radius:25px;background:#f8f0dc;display:grid;place-items:center;transform:rotate(-12deg);box-shadow:15px 18px #0b1712;color:#b44f42;font-size:70px}.art-token{position:absolute;width:25px;height:25px;border-radius:50%;border:4px solid #f8f0dc;box-shadow:0 5px 12px #0005}.art-token.red{background:#d95d50;top:25px;right:35px}.art-token.gold{background:#e6b94f;bottom:20px;right:55px}.art-token.green{background:#4e9c78;top:48px;left:18px}.art-token.blue{background:#568bc4;bottom:35px;left:32px}.game-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.8fr);gap:22px;margin:28px 0}.board-card,.setup-card,.control-card{background:#fffaf0;border:1px solid #e2d8c1;border-radius:22px;padding:22px;box-shadow:0 10px 30px #463b1b0a}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading h2,.setup-card h2,.control-card h2{font-size:19px;margin:4px 0;color:#21392d}.turn-label{font-size:11px;border:1px solid #e3dac7;border-radius:30px;padding:7px 11px;color:#3d4c40}.turn-label:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--turn-color);margin-left:6px}.board-wrap{max-width:580px;margin:auto;background:#e9dec2;border-radius:18px;padding:8px}.board{width:100%;display:block}.token{transition:filter .15s}.token.active{filter:drop-shadow(0 0 7px #2c6d43);animation:pulse 1s infinite alternate}.board-legend{display:flex;justify-content:center;gap:18px;margin-top:15px;flex-wrap:wrap}.board-legend span{font-size:11px;color:#6c705f}.board-legend i,.seat i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-left:5px}.side-panel{display:flex;flex-direction:column;gap:15px}.setup-card p,.control-card p{font-size:12px;color:#7c806f;line-height:1.9}.count-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}.count-picker button{border:1px solid #e3d9c3;background:#f8f3e6;border-radius:12px;padding:10px 4px;font-size:20px;font-weight:800;color:#304538;cursor:pointer}.count-picker button.selected{background:#203a2d;color:#f7edcf;border-color:#203a2d}.count-picker small{display:block;font-size:10px;font-weight:500}.seat-list{display:grid;gap:10px;margin:14px 0 20px}.seat{display:flex;align-items:center;font-size:12px}.seat small{margin-right:auto;color:#9a927f;font-size:10px}.primary-button{width:100%;border:0;border-radius:13px;background:#b58b48;color:#fffaf0;padding:13px 16px;font-family:inherit;font-size:13px;font-weight:800;display:flex;justify-content:center;align-items:center;gap:9px;cursor:pointer;transition:.2s}.primary-button:hover{background:#9d7538;transform:translateY(-1px)}.primary-button:disabled{opacity:.5;cursor:not-allowed;transform:none}.control-card{text-align:center}.control-card h2{margin-top:10px}.dice-face{width:88px;height:88px;margin:18px auto;background:#f5ecd6;border:1px solid #e4d4af;border-radius:20px;display:grid;place-items:center;color:#a84e43;font-size:62px;box-shadow:inset 0 -5px #e7d9b9}.dice-face.shake{animation:shake .4s infinite}.hint{display:block;color:#568b68;margin:12px 0}.subtle-button{border:0;background:transparent;color:#6e765f;font-family:inherit;font-size:12px;margin-top:12px;cursor:pointer}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mini-stats div{background:#e9e5d5;border-radius:14px;padding:12px 6px;text-align:center;color:#7f8a70}.mini-stats svg{display:block;margin:0 auto 5px;color:#ae8a4c}.mini-stats strong{display:block;color:#304538;font-size:17px}.mini-stats small{font-size:9px}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.features>div{background:#e9e4d3;border:1px solid #ded4bb;border-radius:16px;padding:17px;display:grid;gap:5px}.feature-icon{font-size:23px}.features strong{font-size:13px;color:#344a3c}.features small{font-size:10px;color:#858474;line-height:1.7}footer{border-top:1px solid #d9cfb7;padding:22px 0 28px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;color:#817c69;font-size:10px}footer strong{color:#344a3c;font-size:12px}footer b{font-weight:700;color:#9d814e}.modal-backdrop{position:fixed;inset:0;background:#101b16b8;display:grid;place-items:center;padding:18px;z-index:5}.invite-modal{background:#fffaf0;border-radius:24px;padding:30px;max-width:390px;width:100%;text-align:center;position:relative;box-shadow:0 25px 80px #0004}.close-modal{position:absolute;top:12px;left:12px;font-size:24px}.invite-symbol{width:54px;height:54px;border-radius:17px;background:#e9e2cf;color:#9b7942;display:grid;place-items:center;margin:0 auto 12px}.invite-modal h2{font-size:20px;color:#263d30}.invite-modal p,.invite-modal small{font-size:11px;color:#82816e;line-height:1.9}.invite-code{font-size:29px;letter-spacing:6px;font-weight:900;color:#263d30;background:#f0ead9;border:1px dashed #c6ac78;border-radius:13px;padding:14px;margin:20px 0}.invite-modal small{display:block;margin-top:13px}@keyframes pulse{to{filter:drop-shadow(0 0 13px #2c6d43)}}@keyframes shake{0%,to{transform:rotate(0)}25%{transform:rotate(8deg)}75%{transform:rotate(-8deg)}}@media(max-width:800px){.app-shell{padding:0 14px}.hero{min-height:260px;padding:25px 22px}.hero-art{width:155px;transform:scale(.8)}.game-layout{grid-template-columns:1fr}.board-card{padding:14px}.features{grid-template-columns:1fr}.features>div{grid-template-columns:35px 1fr;align-items:center}.features small{grid-column:2}footer{justify-content:center;text-align:center;flex-direction:column}.section-heading h2{font-size:17px}}@media(max-width:470px){.hero-art{position:absolute;left:-20px;opacity:.45}.hero-copy{max-width:80%}.hero h1{font-size:30px}.hero p{font-size:12px}.topbar{height:68px}.online-pill{font-size:10px}.board-wrap{padding:4px}.board-card{padding:11px}.section-heading{gap:8px}.turn-label{font-size:9px}.board-legend{gap:12px}}.app-shell[data-theme]{--theme-accent:#159b9b;--theme-deep:#103d42;--theme-paper:#f7f1df}.app-shell[data-theme=miniature]{--theme-accent:#bd5b42;--theme-deep:#452b45;--theme-paper:#fff0d9}.app-shell[data-theme=isfahan]{--theme-accent:#b88a42;--theme-deep:#263f55;--theme-paper:#f4e6c9}.app-shell[data-theme=dome]{--theme-accent:#16a6a4;--theme-deep:#123e55;--theme-paper:#e9f3e9}.app-shell[data-theme=persepolis]{--theme-accent:#c18a45;--theme-deep:#382d28;--theme-paper:#f2e4ce}.app-shell[data-theme=paisley]{--theme-accent:#8b4d68;--theme-deep:#3c263e;--theme-paper:#f8e9e5}.app-shell[data-theme=garden]{--theme-accent:#4e956b;--theme-deep:#183e31;--theme-paper:#eef3df}.app-shell[data-theme=khatam]{--theme-accent:#c28b39;--theme-deep:#392b24;--theme-paper:#f7ecd7}.app-shell[data-theme=pottery]{--theme-accent:#bb6945;--theme-deep:#4a3028;--theme-paper:#f5e8d7}.app-shell[data-theme=shahnameh]{--theme-accent:#a8463d;--theme-deep:#262d46;--theme-paper:#f4e7d0}.app-shell[data-theme] .hero{background:radial-gradient(circle at 15% 20%,color-mix(in srgb,var(--theme-accent) 30%,transparent),transparent 42%),var(--theme-deep)}.app-shell[data-theme] .board-wrap{background:var(--theme-paper);border:3px solid color-mix(in srgb,var(--theme-accent) 45%,#d8cba9);box-shadow:inset 0 0 0 5px #ffffff70,0 12px 28px #1d2a2630}.app-shell[data-theme] .board-card{border-color:color-mix(in srgb,var(--theme-accent) 28%,#e2d8c1)}.field-label{display:grid;gap:7px;font-size:11px;font-weight:800;color:#6e765f;margin:12px 0}.player-name-input{width:100%;border:1px solid #dfd3b9;background:#fffdf7;border-radius:11px;padding:11px 12px;font:inherit;color:#263d30;outline-color:var(--theme-accent)}.theme-picker{margin:16px 0}.theme-picker>strong{display:block;font-size:12px;color:#334b3c;margin-bottom:9px}.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:210px;overflow:auto;padding:2px}.theme-options button,.dice-options button{border:1px solid #e2d7c0;background:#f8f3e7;color:#59624f;border-radius:10px;padding:8px 7px;font:inherit;font-size:10px;cursor:pointer}.theme-options button{display:flex;align-items:center;gap:7px;text-align:right}.theme-options button span{font-size:17px;color:var(--theme-accent)}.theme-options button.chosen,.dice-options button.chosen{border-color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 14%,#fff);color:var(--theme-deep);box-shadow:inset 0 0 0 1px var(--theme-accent)}.dice-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.app-shell[data-theme] .hero{background:var(--theme-deep)}@media(max-width:800px){.app-shell:has(.control-card){padding-left:8px;padding-right:8px}.app-shell:has(.control-card) .topbar,.app-shell:has(.control-card) .hero,.app-shell:has(.control-card) .features,.app-shell:has(.control-card) footer{display:none}.app-shell:has(.control-card) .game-layout{display:flex;flex-direction:column;margin:8px 0;gap:8px}.app-shell:has(.control-card) .board-card{padding:9px;border-radius:16px}.app-shell:has(.control-card) .section-heading{margin-bottom:7px}.app-shell:has(.control-card) .board-wrap{max-width:min(94vw,580px)}.app-shell:has(.control-card) .side-panel{gap:8px}.app-shell:has(.control-card) .control-card{padding:10px 14px}.app-shell:has(.control-card) .mini-stats{display:none}}.player-name-list{margin:12px 0;padding:12px;border:1px solid #e6dcc6;border-radius:14px;background:#fbf7ec}.player-name-list>strong{display:block;font-size:12px;color:#344a3c;margin-bottom:8px}.player-name-list .field-label{margin:9px 0}.player-name-list .field-label:last-child{margin-bottom:0}.dice-center{position:absolute;z-index:3;left:50%;top:50%;width:76px;height:76px;transform:translate(-50%,-50%) rotateX(-18deg) rotateY(22deg);display:grid;place-items:center;border-radius:19px;background:linear-gradient(145deg,#fffdf4,#d8c49a);border:1px solid #fff;box-shadow:inset -5px -6px 12px #9b82504c,inset 4px 5px 10px #fff,0 14px 25px #18251d70,0 0 0 5px #ffffff40;color:#a6473d;font-size:58px;pointer-events:none;perspective:600px}.dice-center span{display:block;text-shadow:0 2px 0 #fff,0 5px 8px #7a4a3340;transform:translateZ(12px)}.dice-center.rolling{animation:dice-tumble .68s cubic-bezier(.2,.8,.25,1) infinite}.board-wrap{position:relative}@keyframes dice-tumble{0%{transform:translate(-50%,-50%) rotateX(0) rotateY(0) rotate(0) scale(.85)}45%{transform:translate(-50%,-58%) rotateX(250deg) rotateY(210deg) rotate(160deg) scale(1.12)}to{transform:translate(-50%,-50%) rotateX(540deg) rotateY(420deg) rotate(360deg) scale(1)}}.social-card{background:#fffaf0;border:1px solid #e2d8c1;border-radius:18px;padding:13px;display:grid;gap:10px}.social-card>strong,.social-head strong{font-size:12px;color:#304538}.social-head{display:flex;align-items:center;justify-content:space-between}.chat-feed{max-height:190px;overflow:auto;display:flex;flex-direction:column;gap:8px}.chat-message{background:#f3eedf;border-radius:11px;padding:8px 10px;font-size:11px}.chat-message b{color:#304538;margin-left:8px}.chat-message small{color:#99917d;font-size:9px}.chat-message p{margin:5px 0 0;overflow-wrap:anywhere;line-height:1.7}.chat-message audio{width:100%;height:34px;margin-top:6px}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}.chat-compose .player-name-input{min-width:0;padding:9px;font-size:11px}.chat-send{border:0;border-radius:9px;padding:9px 11px;background:#203a2d;color:#fffaf0;font:inherit;font-size:10px;cursor:pointer}.chat-send.recording{background:#a9433b;animation:pulse 1s infinite alternate}.music-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.music-controls audio{width:100%;height:36px}.rules-modal{text-align:right;max-height:85vh;overflow:auto}.rules-modal h2{color:#263d30}.rules-modal li{font-size:12px;line-height:2;margin:6px 0;color:#5d6657}.shared-music-audio{display:none}@media(max-width:800px){.app-shell:has(.control-card) .dice-center{width:66px;height:66px;font-size:50px}.app-shell:has(.control-card) .social-card{padding:10px}.app-shell:has(.control-card) .game-layout{overflow:visible}}.app-shell[data-dice=gold] .dice-center{background:linear-gradient(145deg,#fff2b6,#c28a2c);color:#80521d;box-shadow:inset -5px -6px 12px #81551b70,0 14px 25px #18251d70}.app-shell[data-dice=turquoise] .dice-center{background:linear-gradient(145deg,#e0ffff,#4aa8a5);color:#075b60}.app-shell[data-dice=ruby] .dice-center{background:linear-gradient(145deg,#ffe1dd,#a92e46);color:#751b34}.app-shell[data-dice=wood] .dice-center{background:linear-gradient(145deg,#e9c69b,#91613d);color:#59351e}.app-shell[data-dice=marble] .dice-center{background:linear-gradient(145deg,#fff,#b8c3c5);color:#52626a}.app-shell[data-dice=neon] .dice-center{background:linear-gradient(145deg,#242b48,#11162d);color:#78f4ff;box-shadow:0 0 20px #35eaff,inset 0 0 14px #35eaff70}.app-shell[data-dice=royal] .dice-center{background:linear-gradient(145deg,#f9e7bd,#ad8a4e);color:#563c21;border:2px solid #d6b66e}.app-shell[data-dice=persian] .dice-center{background:repeating-linear-gradient(45deg,#e9d6ad,#e9d6ad 7px,#c89b5e 7px 10px);color:#254a48}.app-shell[data-dice=midnight] .dice-center{background:linear-gradient(145deg,#4b526d,#11182d);color:#f4d98e;border:1px solid #8e9ab9}.app-shell[data-theme=turquoise] .board-wrap{background-image:repeating-linear-gradient(45deg,#d7ece4 0 8px,#c1e2dd 8px 10px)}.app-shell[data-theme=miniature] .board-wrap{background-image:radial-gradient(#b65b4630 1.5px,transparent 2px),linear-gradient(135deg,#f5dfc4,#edd0b5);background-size:12px 12px,auto}.app-shell[data-theme=isfahan] .board-wrap{background-image:repeating-conic-gradient(#b68c4b20 0 25%,transparent 0 50%);background-size:18px 18px}.app-shell[data-theme=dome] .board-wrap{background-image:radial-gradient(ellipse at top,#5dbab450,transparent 65%),linear-gradient(135deg,#d5efea,#b9ddd5)}.app-shell[data-theme=persepolis] .board-wrap{background-image:repeating-linear-gradient(90deg,#9d75442a 0 3px,transparent 3px 12px),linear-gradient(#e9d4b0,#d7bd91)}.app-shell[data-theme=paisley] .board-wrap{background-image:radial-gradient(ellipse at 50% 0%,#a34f7028 0 20%,transparent 21%),linear-gradient(135deg,#f4dfe6,#e8cbd7);background-size:22px 22px,auto}.app-shell[data-theme=garden] .board-wrap{background-image:radial-gradient(circle at 4px 4px,#4d936b45 2px,transparent 3px),linear-gradient(135deg,#e1ecd4,#cbdcba);background-size:16px 16px,auto}.app-shell[data-theme=khatam] .board-wrap{background-image:repeating-conic-gradient(#a56b3322 0 25%,transparent 0 50%);background-size:14px 14px}.app-shell[data-theme=pottery] .board-wrap{background-image:radial-gradient(ellipse,#b65e3a24 35%,transparent 38%),linear-gradient(135deg,#f1ddc8,#dfbda2);background-size:24px 24px,auto}.app-shell[data-theme=shahnameh] .board-wrap{background-image:repeating-linear-gradient(135deg,#9f3c3925 0 2px,transparent 2px 13px),linear-gradient(135deg,#e7d8c4,#d6c6b5)}.start-flash{position:fixed;inset:0;z-index:20;display:grid;place-items:center;background:radial-gradient(circle,#d7b56d 0,#14251f 68%);color:#fff4d8;pointer-events:none;animation:start-flash 1.25s ease-out forwards}.start-flash strong{font-size:clamp(34px,9vw,64px);letter-spacing:4px;text-shadow:0 8px 24px #0008;animation:logo-pop .9s cubic-bezier(.2,.9,.2,1) both}@keyframes start-flash{0%,65%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes logo-pop{0%{transform:scale(.45) rotate(-12deg);opacity:0}55%{transform:scale(1.08) rotate(2deg);opacity:1}to{transform:scale(1)}}.dice-center{display:grid;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important;perspective:850px}.dice-cube-stage{width:100%;height:100%;display:grid;place-items:center;perspective:850px}.dice-cube{--cube-size:68px;position:relative;width:var(--cube-size);height:var(--cube-size);transform-style:preserve-3d;transform:rotateX(-12deg) rotateY(18deg);transition:transform .45s cubic-bezier(.2,.8,.2,1)}.dice-center .dice-cube{--cube-size:66px}.dice-face{position:absolute;inset:0;display:grid;place-items:center;border:2px solid #fff9e9;border-radius:12px;background:linear-gradient(145deg,#fffef8,#d8c49a);color:#a6473d;font-family:Arial,sans-serif;font-size:47px;line-height:1;text-shadow:0 2px 0 #fff,0 4px 5px #68452c45;box-shadow:inset -4px -5px 9px #9b82504c,inset 3px 4px 8px #fff}.cube-front{transform:translateZ(calc(var(--cube-size)/2))}.cube-back{transform:rotateY(180deg) translateZ(calc(var(--cube-size)/2))}.cube-right{transform:rotateY(90deg) translateZ(calc(var(--cube-size)/2))}.cube-left{transform:rotateY(-90deg) translateZ(calc(var(--cube-size)/2))}.cube-top{transform:rotateX(90deg) translateZ(calc(var(--cube-size)/2));background:linear-gradient(145deg,#fffef8,#e6d4ad)}.cube-bottom{transform:rotateX(-90deg) translateZ(calc(var(--cube-size)/2))}.dice-cube-stage.is-rolling .dice-cube{animation:cube-roll 1.05s cubic-bezier(.18,.72,.18,1) both}@keyframes cube-roll{0%{transform:rotateX(-12deg) rotateY(18deg) translateY(0) scale(.88)}25%{transform:rotateX(190deg) rotateY(220deg) translateY(-13px) scale(1.12)}55%{transform:rotateX(430deg) rotateY(510deg) translateY(-5px) scale(1.04)}80%{transform:rotateX(690deg) rotateY(760deg) translateY(0) scale(1.01)}to{transform:rotateX(708deg) rotateY(738deg) translateY(0) scale(1)}}.dice-face .dice-cube{--cube-size:68px}.dice-face .cube-face{font-size:46px}.app-shell[data-dice=gold] .cube-face{background:linear-gradient(145deg,#fff2b6,#c28a2c);color:#80521d}.app-shell[data-dice=turquoise] .cube-face{background:linear-gradient(145deg,#e0ffff,#4aa8a5);color:#075b60}.app-shell[data-dice=ruby] .cube-face{background:linear-gradient(145deg,#ffe1dd,#a92e46);color:#751b34}.app-shell[data-dice=wood] .cube-face{background:linear-gradient(145deg,#e9c69b,#91613d);color:#59351e}.app-shell[data-dice=marble] .cube-face{background:linear-gradient(145deg,#fff,#b8c3c5);color:#52626a}.app-shell[data-dice=neon] .cube-face{background:linear-gradient(145deg,#242b48,#11162d);color:#78f4ff;box-shadow:0 0 15px #35eaff,inset 0 0 12px #35eaff70}.app-shell[data-dice=royal] .cube-face{background:linear-gradient(145deg,#f9e7bd,#ad8a4e);color:#563c21}.app-shell[data-dice=persian] .cube-face{background:repeating-linear-gradient(45deg,#e9d6ad,#e9d6ad 7px,#c89b5e 7px 10px);color:#254a48}.app-shell[data-dice=midnight] .cube-face{background:linear-gradient(145deg,#4b526d,#11182d);color:#f4d98e;border-color:#8e9ab9}.league-scoreboard{margin:0 0 22px}.league-score-row{display:flex;justify-content:space-between;gap:12px;padding:8px 3px;border-bottom:1px solid #e8dfcb;font-size:11px;color:#5b6658}.league-score-row b{color:#9b7942}@media(max-width:800px){.app-shell:has(.control-card) .dice-center{width:78px;height:78px}.app-shell:has(.control-card) .dice-center .dice-cube{--cube-size:60px}.app-shell:has(.control-card) .dice-face .dice-cube{--cube-size:62px}}@media(prefers-reduced-motion:reduce){.dice-cube-stage.is-rolling .dice-cube{animation:none;transform:rotateX(-12deg) rotateY(18deg)}}.player-scoreboard{margin:0 0 14px;gap:9px}.player-scoreboard>strong{font-size:13px;color:#304538}.player-score-grid{display:grid;gap:0;overflow:hidden;border:1px solid #e7dcc6;border-radius:12px;background:#fffdf7}.player-score-header,.player-score-row{display:grid;grid-template-columns:minmax(0,1.8fr) repeat(3,minmax(42px,.7fr));align-items:center;gap:7px;padding:9px 10px;text-align:center}.player-score-header{background:#f1eadb;color:#77715f;font-size:10px;font-weight:800}.player-score-row{border-top:1px solid #eee6d8;font-size:12px;color:#4b594b;font-variant-numeric:tabular-nums}.score-player-name{display:flex;align-items:center;gap:7px;text-align:right;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.score-player-name i{width:10px;height:10px;flex:0 0 10px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px #d8cfbd}.player-score-row b{font-size:14px;color:#334c3c}.player-scoreboard>small{font-size:9px;line-height:1.8;color:#85806f}.music-consent-list,.music-consent-prompt{display:grid;gap:7px;padding:10px;border-radius:12px;background:#f4efdf;color:#53614f;font-size:10px}.music-consent-list b{font-size:11px;color:#304538}.music-consent-list span{display:flex;justify-content:space-between;border-top:1px solid #e3dac6;padding-top:6px}.music-consent-prompt>span{line-height:1.8}.music-controls button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:800px){.player-scoreboard{padding:10px}.player-score-header,.player-score-row{padding:8px 7px;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(34px,.6fr));gap:4px}.player-score-row{font-size:11px}.player-score-row b{font-size:13px}}.join-wait-card,.join-request-list{display:grid;gap:8px;padding:12px;border:1px solid #ddcfad;border-radius:13px;background:#f8f1df;color:#405343;font-size:11px}.join-wait-card span{line-height:1.9;color:#77705f}.join-request-list>strong{font-size:12px}.join-request{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 0;border-top:1px solid #e7dcc7}.join-request>span{flex:1 1 100%;font-weight:800}.join-request .chat-send{padding:7px 10px}.join-request .deny{background:#74675d}.sound-toggle{display:flex;align-items:center;gap:8px;color:#65705e;font-size:11px}.sound-toggle input{accent-color:#47785c}.live-team-stats .team-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.team-stat-grid>div{display:grid;grid-template-columns:1fr auto;gap:5px;padding:11px;border-radius:12px;background:#f3efdf}.team-stat-grid b{grid-column:1/-1;color:#334c3c;font-size:12px}.team-stat-grid strong{font-size:19px;color:#9b7942;font-variant-numeric:tabular-nums}.team-stat-grid small{align-self:center;color:#817968;font-size:9px}.live-team-stats>small{display:block;margin-top:10px;color:#66705e;font-size:10px}.player-honors,.move-history{display:grid;gap:7px}.player-honors>div,.move-history>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px 9px;border-bottom:1px solid #eee5d5;color:#5d6657;font-size:10px}.player-honors b,.move-history b{color:#334c3c;min-width:85px}.player-honors span{background:#f3efdf;border-radius:8px;padding:5px 7px}.move-history span{flex:1}.move-history small{color:#9a907a;font-size:9px}@media(max-width:520px){.join-request{gap:5px}.join-request .chat-send{font-size:9px;padding:7px}.team-stat-grid>div{padding:8px}}.app-shell:has(.control-card){max-width:none;min-height:100svh;padding:0 22px;background:radial-gradient(ellipse at 50% 48%,#254a50 0,#102e37 58%,#071923);color:#f7e6bd;overflow-x:hidden}.app-shell:has(.control-card) .topbar{height:64px;border-bottom:1px solid #bd8747;background:linear-gradient(180deg,#4b291c,#25140f);padding:0 18px;box-shadow:0 5px 18px #0008}.app-shell:has(.control-card) .brand strong,.app-shell:has(.control-card) .brand small{color:#f5d58c}.app-shell:has(.control-card) .online-pill{background:#183c3b;color:#e8d5a5;border:1px solid #b68b4e}.app-shell:has(.control-card) .icon-button{background:linear-gradient(145deg,#e6bd68,#8d5626);color:#301b10;border:1px solid #ffe2a0}.app-shell:has(.control-card) .hero,.app-shell:has(.control-card) .features,.app-shell:has(.control-card)>footer{display:none}.app-shell:has(.control-card) .game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:center;gap:18px;margin:14px auto;max-width:1500px;min-height:calc(100svh - 92px)}.app-shell:has(.control-card) .board-card{background:linear-gradient(145deg,#633820,#2c1a13 55%,#754624);border:3px solid #d6a452;border-radius:25px;padding:14px;box-shadow:inset 0 0 0 3px #f4d48b55,0 18px 48px #0008}.app-shell:has(.control-card) .section-heading{margin:0 0 8px}.app-shell:has(.control-card) .section-heading .eyebrow,.app-shell:has(.control-card) .section-heading h2{color:#f7dfaa}.app-shell:has(.control-card) .turn-label{background:#29180f;color:#ffdf9c;border-color:#d2a052}.app-shell:has(.control-card) .board-wrap{width:min(100%,min(76svh,760px));max-width:none;aspect-ratio:1;margin:auto;padding:10px;border-radius:24px;background:linear-gradient(145deg,#f1d39a,#754326 18%,#3c2419 50%,#d6a55a 84%,#5b321d);border:5px ridge #d8aa60;box-shadow:inset 0 0 0 4px #4a2818,0 15px 35px #0009}.app-shell:has(.control-card) .board{border-radius:13px;filter:drop-shadow(0 4px 7px #28150d55)}.app-shell:has(.control-card) .board-legend{margin-top:8px;color:#f2d9a3}.app-shell:has(.control-card) .board-legend span{color:#f5dfb5}.app-shell:has(.control-card) .side-panel{align-self:center;width:100%}.app-shell:has(.control-card) .control-card{background:linear-gradient(155deg,#613a25,#2a180f 62%,#754a2c);border:2px solid #d6a452;border-radius:22px;padding:17px;color:#f8e4b7;box-shadow:inset 0 0 0 3px #f5d48a38,0 16px 35px #0007}.app-shell:has(.control-card) .control-card h2{color:#ffe0a0}.app-shell:has(.control-card) .control-card p{color:#e7d2ad}.app-shell:has(.control-card) .control-card .player-name-list{background:#2b190f;border-color:#a8783c}.app-shell:has(.control-card) .control-card .player-name-list>strong,.app-shell:has(.control-card) .control-card .field-label{color:#f3d89f}.app-shell:has(.control-card) .control-card .player-name-input{background:#f7e8c8;border-color:#c99b57;color:#392316}.app-shell:has(.control-card) .count-picker button,.app-shell:has(.control-card) .theme-options button,.app-shell:has(.control-card) .dice-options button{background:linear-gradient(145deg,#75472b,#351e13);border:1px solid #c9974e;color:#ffe2a6}.app-shell:has(.control-card) .count-picker button.selected,.app-shell:has(.control-card) .theme-options button.chosen,.app-shell:has(.control-card) .dice-options button.chosen{background:linear-gradient(145deg,#f4d17c,#9c6128);color:#321b0d;border-color:#fff0b2}.app-shell:has(.control-card) .primary-button{background:linear-gradient(145deg,#ffe49a,#d49a3e 55%,#8e4e1c);border:2px solid #fff0bd;color:#32190c;box-shadow:0 5px #653416,0 9px 18px #0005;font-size:15px}.app-shell:has(.control-card) .dice-face{background:transparent;border:0;box-shadow:none}.app-shell:has(.control-card) .dice-center{filter:drop-shadow(0 0 15px #f5bd4d)}.app-shell:has(.control-card) .dice-cube{filter:drop-shadow(0 8px 8px #1d120d88)}.app-shell:has(.control-card) .mini-stats{display:none}.app-shell:has(.control-card) .sound-toggle{width:100%;margin-top:9px;border:1px solid #bd914f;border-radius:12px;background:#321d13;color:#f6d99e;padding:9px;font:inherit;font-size:11px;cursor:pointer}.app-shell:has(.control-card) .player-scoreboard,.app-shell:has(.control-card) .live-team-stats,.app-shell:has(.control-card) .social-card:not(.player-scoreboard),.app-shell:has(.control-card) .features,.app-shell:has(.control-card)>footer{display:none}.app-shell:has(.setup-card) .setup-card{background:linear-gradient(155deg,#74452b,#321d14 62%,#754a2c);border:2px solid #d7aa61;color:#f9e5b8;box-shadow:inset 0 0 0 3px #f6d58b40,0 18px 40px #0007}.app-shell:has(.setup-card) .setup-card h2{color:#ffe3a6}.app-shell:has(.setup-card) .setup-card p{color:#e9d2a8}.app-shell:has(.setup-card) .count-picker button{min-height:64px;border-radius:16px;font-size:25px;background:linear-gradient(145deg,#75472b,#351e13);border:1px solid #d6a452;color:#ffe3a6}.app-shell:has(.setup-card) .count-picker button.selected{background:linear-gradient(145deg,#f4d17c,#9c6128);color:#321b0d;border-color:#fff0b2}.app-shell:has(.setup-card) .seat{color:#f4dfb3}@media(max-width:800px){.app-shell:has(.control-card){position:fixed;inset:0;width:100%;height:100svh;min-height:0;padding:0;overflow:hidden}.app-shell:has(.control-card) .topbar{height:48px;padding:0 10px}.app-shell:has(.control-card) .brand-logo{width:34px;height:34px}.app-shell:has(.control-card) .brand strong{font-size:13px}.app-shell:has(.control-card) .brand small{font-size:8px}.app-shell:has(.control-card) .online-pill{font-size:9px;padding:5px 8px}.app-shell:has(.control-card) .game-layout{position:absolute;inset:48px 0 0;display:flex;flex-direction:column;justify-content:center;gap:0;margin:0;min-height:0;width:100%;padding:4px 0 118px}.app-shell:has(.control-card) .board-card{width:100%;height:100%;min-height:0;border:0;border-radius:0;padding:3px 7px;background:transparent;box-shadow:none;display:flex;flex-direction:column;justify-content:center}.app-shell:has(.control-card) .section-heading{display:flex;margin:0 8px 5px}.app-shell:has(.control-card) .section-heading h2{font-size:12px}.app-shell:has(.control-card) .section-heading .eyebrow{display:none}.app-shell:has(.control-card) .turn-label{font-size:9px;padding:5px 8px}.app-shell:has(.control-card) .board-wrap{width:min(94vw,calc(100svh - 195px));max-height:calc(100svh - 195px);padding:6px;border-width:4px;border-radius:19px}.app-shell:has(.control-card) .board-legend{gap:10px;margin:5px 0 0}.app-shell:has(.control-card) .board-legend span{font-size:9px}.app-shell:has(.control-card) .side-panel{position:fixed;z-index:8;left:0;right:0;bottom:0;width:100%;padding:7px 10px max(9px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#4b291c,#21130f);border-top:3px solid #d6a452;box-shadow:0 -8px 25px #0008}.app-shell:has(.control-card) .control-card{padding:7px 10px;border-radius:13px;background:transparent;border:0;box-shadow:none;display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px}.app-shell:has(.control-card) .control-card>.eyebrow,.app-shell:has(.control-card) .control-card .in-game-name,.app-shell:has(.control-card) .control-card .dice-face{display:none}.app-shell:has(.control-card) .control-card h2{font-size:13px;margin:0;color:#ffe1a0}.app-shell:has(.control-card) .control-card p{font-size:10px;margin:0;line-height:1.5;grid-column:1}.app-shell:has(.control-card) .control-card .primary-button{grid-column:2;grid-row:1/3;width:auto;min-width:135px;padding:12px;font-size:12px}.app-shell:has(.control-card) .control-card .sound-toggle{grid-column:1/-1;margin:2px 0 0;padding:5px;font-size:9px}.app-shell:has(.control-card) .control-card .join-request-list{grid-column:1/-1;max-height:90px;overflow:auto}.app-shell:has(.control-card) .control-card .mini-stats{display:none}.app-shell:has(.setup-card){min-height:100svh;padding:0 10px}.app-shell:has(.setup-card) .game-layout{display:flex;flex-direction:column;margin:10px auto;min-height:calc(100svh - 70px);max-width:560px}.app-shell:has(.setup-card) .board-card{display:none}.app-shell:has(.setup-card) .side-panel{width:100%}.app-shell:has(.setup-card) .setup-card{padding:16px;border-radius:20px}.app-shell:has(.setup-card) .setup-card h2{font-size:20px}.app-shell:has(.setup-card) .theme-options{max-height:100px}}@media(prefers-reduced-motion:reduce){.app-shell:has(.control-card) .dice-cube-stage.is-rolling .dice-cube{animation:none}}.app-shell .hero{background-image:linear-gradient(115deg,#10251fdd,#14251fee),url(../art/wood-grain.svg);background-size:cover,260px 120px;background-blend-mode:normal,soft-light}.app-shell .hero-art{background:radial-gradient(ellipse at center,#d7b56d18 0,transparent 68%);border-radius:50%}.app-shell .art-dice{background:url(../art/dice-gold.svg) center/contain no-repeat;box-shadow:none;color:transparent;filter:drop-shadow(13px 17px 0 #0b1712) drop-shadow(0 16px 22px #0007)}.app-shell .art-dice span{opacity:0}.app-shell .board-wrap{background-image:url(../art/persian-wood-frame.svg),url(../art/board-paper.svg);background-size:100% 100%,cover;background-position:center;background-repeat:no-repeat;background-origin:border-box,padding-box;background-clip:border-box,padding-box;border:10px solid transparent;border-radius:20px;padding:13px;box-shadow:0 15px 28px #24170f35,inset 0 0 0 1px #f8df9a}.app-shell .board{filter:drop-shadow(0 2px 2px #4c351d22)}.app-shell .cube-face{background-image:linear-gradient(145deg,#ffffff35,#00000012),url(../art/board-paper.svg);background-size:cover,46px 46px;background-blend-mode:soft-light,overlay;border:2px solid #fff0c2!important;box-shadow:inset 0 2px 5px #fff8,inset 0 -5px 8px #29170e30,0 5px 10px #24150d55!important}.app-shell[data-dice=wood] .cube-face{background-image:linear-gradient(145deg,#ffffff20,#00000025),url(../art/wood-grain.svg)}.app-shell[data-dice=gold] .cube-face,.app-shell[data-dice=royal] .cube-face,.app-shell[data-dice=persian] .cube-face{background-image:linear-gradient(145deg,#ffffff30,#00000010),url(../art/dice-gold.svg)}.app-shell .dice-cube{filter:drop-shadow(0 10px 8px #1d120d88)}.app-shell .board-card{background-image:linear-gradient(135deg,#fffaf0f2,#f3e8d0ef),url(../art/board-paper.svg);background-size:auto,180px 180px}.app-shell:has(.control-card) .board-wrap{border-width:10px;padding:9px;background-size:100% 100%,cover}.app-shell:has(.control-card) .side-panel{background-image:linear-gradient(180deg,#4b291cef,#21130ff2),url(../art/wood-grain.svg);background-size:cover,260px 120px;background-blend-mode:normal,soft-light}@media(max-width:800px){.app-shell:has(.control-card) .board-wrap{border-width:8px;padding:7px}}.app-shell .hero{background-color:#14251f!important;background-image:linear-gradient(115deg,#10251fdd,#14251fee),url(../art/wood-grain.svg?v=2)!important;background-size:cover,260px 120px!important;background-repeat:no-repeat,repeat!important}.app-shell .art-dice{background-image:url(../art/dice-gold.svg?v=2)!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;background-color:transparent!important;border:0!important;box-shadow:none!important;color:transparent!important;filter:drop-shadow(13px 17px 0 #0b1712) drop-shadow(0 16px 22px #0007)!important}.app-shell .board-card{background-image:linear-gradient(135deg,#fffaf0ed,#f3e8d0e8),url(../art/board-paper.svg?v=2)!important;background-size:auto,180px 180px!important}.app-shell .board-wrap{background-color:#d9bd88!important;background-image:url(../art/persian-wood-frame.svg?v=2),url(../art/board-paper.svg?v=2)!important;background-size:100% 100%,cover!important;background-position:center!important;background-repeat:no-repeat,repeat!important;background-origin:border-box,padding-box!important;background-clip:border-box,padding-box!important;border:12px solid transparent!important;border-radius:22px!important;padding:12px!important;box-shadow:0 16px 34px #160d08a6,inset 0 0 0 2px #f8df9a!important}.app-shell:has(.control-card) .board-wrap{background-color:#d9bd88!important;background-image:url(../art/persian-wood-frame.svg?v=2),url(../art/board-paper.svg?v=2)!important;background-size:100% 100%,cover!important;background-position:center!important;background-repeat:no-repeat,repeat!important;background-origin:border-box,padding-box!important;background-clip:border-box,padding-box!important;border:12px solid transparent!important;padding:10px!important;box-shadow:0 18px 38px #120904b8,inset 0 0 0 2px #ffe4a0!important}.app-shell .side-panel{background-image:linear-gradient(180deg,#4b291cef,#21130ff2),url(../art/wood-grain.svg?v=2)!important;background-size:cover,260px 120px!important;background-blend-mode:normal,soft-light!important}.app-shell .cube-face{background-image:linear-gradient(145deg,#ffffff35,#00000012),url(../art/board-paper.svg?v=2)!important;background-size:cover,46px 46px!important;background-blend-mode:soft-light,overlay!important;border:2px solid #fff0c2!important;box-shadow:inset 0 2px 5px #fff8,inset 0 -5px 8px #29170e30,0 5px 10px #24150d55!important}.app-shell[data-dice=wood] .cube-face{background-image:linear-gradient(145deg,#ffffff20,#00000025),url(../art/wood-grain.svg?v=2)!important}.app-shell[data-dice=gold] .cube-face,.app-shell[data-dice=royal] .cube-face,.app-shell[data-dice=persian] .cube-face{background-image:linear-gradient(145deg,#ffffff30,#00000010),url(../art/dice-gold.svg?v=2)!important}@media(max-width:800px){.app-shell:has(.control-card) .board-wrap{border-width:10px!important;padding:7px!important}}.app-shell .dice-cube-stage{width:100%;height:100%;display:grid;place-items:center;perspective:720px!important;perspective-origin:50% 42%;overflow:visible}.app-shell .dice-cube{--cube-size:78px;position:relative!important;width:var(--cube-size)!important;height:var(--cube-size)!important;display:block!important;transform-style:preserve-3d!important;backface-visibility:visible;transform:rotateX(-18deg) rotateY(-28deg);transition:transform .35s ease;filter:drop-shadow(0 13px 9px #170d08a8)}.app-shell .cube-face{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:grid!important;place-items:center!important;overflow:hidden;border:3px solid #fff0c2!important;border-radius:13px!important;background-color:#f4dfb2!important;background-image:linear-gradient(145deg,#fff9e8,#d7b56d)!important;color:#7e321f!important;font-family:Arial,sans-serif!important;font-size:49px!important;line-height:1!important;font-weight:900!important;text-shadow:0 2px 0 #fff8e9,0 5px 7px #59351d55!important;box-shadow:inset 4px 5px 9px #ffffffa8,inset -7px -8px 13px #70451e55,0 2px 5px #24150c55!important;backface-visibility:hidden}.app-shell .cube-front{transform:translateZ(calc(var(--cube-size)/2))!important}.app-shell .cube-back{transform:rotateY(180deg) translateZ(calc(var(--cube-size)/2))!important}.app-shell .cube-right{transform:rotateY(90deg) translateZ(calc(var(--cube-size)/2))!important}.app-shell .cube-left{transform:rotateY(-90deg) translateZ(calc(var(--cube-size)/2))!important}.app-shell .cube-top{transform:rotateX(90deg) translateZ(calc(var(--cube-size)/2))!important}.app-shell .cube-bottom{transform:rotateX(-90deg) translateZ(calc(var(--cube-size)/2))!important}.app-shell .dice-cube-stage.is-rolling .dice-cube{animation:bm-real-cube-roll 1.05s cubic-bezier(.18,.72,.2,1) both!important}@keyframes bm-real-cube-roll{0%{transform:rotateX(-18deg) rotateY(-28deg) translateZ(0) scale(.82)}22%{transform:rotateX(145deg) rotateY(190deg) rotate(65deg) translate3d(-5px,-18px,12px) scale(1.16)}48%{transform:rotateX(390deg) rotateY(420deg) rotate(170deg) translate3d(7px,-10px,18px) scale(1.1)}73%{transform:rotateX(610deg) rotateY(690deg) rotate(250deg) translate3d(-3px,-4px,8px) scale(1.04)}to{transform:rotateX(702deg) rotateY(692deg) rotate(360deg) translateZ(0) scale(1)}}.app-shell .dice-center .dice-cube{--cube-size:76px}.app-shell .dice-face .dice-cube{--cube-size:66px}.app-shell:has(.control-card) .dice-center{width:104px!important;height:104px!important;background:transparent!important}.app-shell:has(.control-card) .dice-center .dice-cube{--cube-size:88px}.app-shell:has(.control-card) .dice-face .dice-cube{--cube-size:66px}@media(max-width:800px){.app-shell:has(.control-card) .dice-center{width:96px!important;height:96px!important}.app-shell:has(.control-card) .dice-center .dice-cube{--cube-size:80px}}@media(prefers-reduced-motion:reduce){.app-shell .dice-cube-stage.is-rolling .dice-cube{animation:none!important;transform:rotateX(-18deg) rotateY(-28deg)}}.bm-menu-screen{--bm-gold:#e3bd70;min-height:100svh;width:100%;padding:clamp(12px,3vw,34px);display:grid;place-items:center;overflow:hidden;position:relative;color:#f8e7bd;font-family:Vazirmatn,Tahoma,sans-serif;background:radial-gradient(ellipse at 50% 35%,#1c5552 0,#123b40 42%,#071923)}.bm-menu-screen:before,.bm-menu-screen:after{content:"";position:absolute;inset:0;pointer-events:none}.bm-menu-screen:before{opacity:.17;background-image:url(../art/wood-grain.svg);background-size:360px 180px;mix-blend-mode:screen}.bm-menu-screen:after{background:radial-gradient(ellipse at center,transparent 38%,#020b12a8 100%)}.bm-menu-frame{z-index:1;position:relative;width:min(100%,690px);min-height:min(920px,calc(100svh - 24px));padding:clamp(24px,5vw,52px) clamp(18px,6vw,64px) 22px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:18px;border:9px ridge #c9974e;border-radius:30px;background:linear-gradient(145deg,#6a4028ef,#2b1914f5 42%,#684027f2),url(../art/wood-grain.svg);background-size:auto,280px 140px;background-blend-mode:normal,soft-light;box-shadow:inset 0 0 0 3px #ffe7a66b,inset 0 0 34px #120a06,0 24px 70px #000a}.bm-menu-frame:before{content:"";position:absolute;inset:10px;border:1px solid #f3d28a9c;border-radius:18px;pointer-events:none}.bm-menu-corner{position:absolute;color:#f5d58a;font-size:25px;text-shadow:0 2px 6px #000}.bm-corner-tl{top:13px;left:18px}.bm-corner-tr{top:13px;right:18px}.bm-corner-bl{bottom:13px;left:18px}.bm-corner-br{bottom:13px;right:18px}.bm-menu-brand{text-align:center;z-index:1}.bm-menu-emblem{width:104px;height:104px;margin:0 auto 13px;padding:7px;border-radius:28px;background:linear-gradient(145deg,#ffe6a0,#9b642d 55%,#f8d889);box-shadow:0 8px #25140e,0 13px 24px #0009,inset 0 0 0 2px #fff0bd}.bm-menu-emblem img{width:100%;height:100%;border-radius:21px;display:block}.bm-menu-kicker{color:#e9c77f;font-size:12px;letter-spacing:2px}.bm-menu-brand h1{margin:8px 0 2px;font-size:clamp(30px,6vw,48px);font-weight:900;color:#fff0c9;text-shadow:0 3px 0 #6e421f,0 7px 15px #0009}.bm-menu-brand h1 b{color:#f1c76f}.bm-menu-brand p{margin:4px 0;color:#d7b16b;font:700 11px Georgia,serif;letter-spacing:4px}.bm-menu-board-art{position:relative;width:min(46vw,230px);height:min(46vw,230px);min-width:158px;min-height:158px;display:grid;place-items:center;transform:rotate(-5deg);border:8px ridge #d9ad5e;border-radius:25px;background:linear-gradient(145deg,#f8e8c6,#b98a4e);box-shadow:0 13px #24140d,0 24px 32px #0008,inset 0 0 0 4px #fff0c0}.bm-menu-board-art:before{content:"";position:absolute;inset:13px;border:2px solid #93602e;border-radius:12px;background:linear-gradient(90deg,transparent 49%,#9b784733 50%,transparent 51%),linear-gradient(transparent 49%,#9b784733 50%,transparent 51%),repeating-linear-gradient(45deg,#e7d5b1 0 14px,#d6bd91 14px 28px)}.bm-menu-die{z-index:1;width:86px;height:86px;display:grid;place-items:center;border-radius:19px;border:4px solid #fff0c2;background:linear-gradient(145deg,#fff9e9,#d6ad60);color:#8e3927;font-size:58px;box-shadow:0 9px 14px #35200e77,inset 4px 5px 8px #fff}.bm-orb{position:absolute;z-index:2;width:26px;height:26px;border:3px solid #fff2d2;border-radius:50%;box-shadow:0 5px 8px #28170e88,inset 0 3px 4px #fff8}.orb-red{top:22px;left:22px;background:#d85a4b}.orb-gold{top:22px;right:22px;background:#e8b94f}.orb-green{bottom:22px;left:22px;background:#4c9b75}.orb-blue{bottom:22px;right:22px;background:#568bc4}.bm-menu-actions{z-index:1;width:min(100%,390px);display:grid;gap:12px}.bm-menu-button{position:relative;min-height:68px;padding:9px 18px;display:grid;grid-template-columns:48px 1fr;grid-template-rows:auto auto;align-items:center;text-align:right;column-gap:12px;border:2px solid #d6a65a;border-radius:15px;color:#ffedc1;background:linear-gradient(145deg,#80502e,#3b2115 65%,#6a4026);box-shadow:inset 0 0 0 2px #f6d78b38,0 6px #1e100b,0 10px 16px #0006;cursor:pointer;transition:transform .16s,filter .16s}.bm-menu-button:hover{transform:translateY(-2px);filter:brightness(1.12)}.bm-menu-button>span{grid-row:1/3;grid-column:1;width:43px;height:43px;display:grid;place-items:center;border-radius:12px;color:#4a2b16;font-size:25px;background:linear-gradient(145deg,#ffe8a6,#bc8338);box-shadow:inset 0 0 0 1px #fff2c1,0 3px 5px #1b1009}.bm-menu-button b{font-size:16px;color:#ffdfa0}.bm-menu-button small{font-size:10px;color:#ddc49a}.bm-menu-primary{background:linear-gradient(145deg,#f8d98c,#a86b2e 60%,#75431e);border-color:#fff0bb;color:#35200f}.bm-menu-primary b{color:#38200e}.bm-menu-primary small{color:#53331a}.bm-menu-contact{min-height:56px}.bm-menu-footer{z-index:1;width:100%;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:12px;border-top:1px solid #e4bf7666;color:#d7bd91;font-size:10px}.bm-contact-backdrop{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:18px;background:#000b}.bm-contact-panel{position:relative;width:min(100%,390px);padding:32px 24px;text-align:center;border:3px ridge #d8ac61;border-radius:22px;background:linear-gradient(145deg,#684027,#291710);box-shadow:0 20px 50px #0009}.bm-contact-panel>button:first-child{position:absolute;top:8px;left:12px;background:none;border:0;color:#ffe4a3;font-size:28px;cursor:pointer}.bm-contact-panel>span{font-size:34px;color:#f1cb79}.bm-contact-panel h2{color:#ffe3a3}.bm-contact-panel p,.bm-contact-panel small{color:#e2cda8}.bm-contact-share{margin-top:18px;padding:12px 20px;border-radius:12px;border:1px solid #fff0b2;background:linear-gradient(145deg,#f5d487,#b77b32);color:#38200e;font-weight:800}.app-shell.screen-setup{min-height:100svh;padding:0!important;background:radial-gradient(ellipse at 50% 20%,#24504e,#0b222b 72%)!important}.app-shell.screen-setup .topbar{max-width:900px;margin:0 auto;padding:10px 18px}.app-shell.screen-setup .hero,.app-shell.screen-setup .board-card,.app-shell.screen-setup .features,.app-shell.screen-setup>footer{display:none!important}.app-shell.screen-setup .game-layout{display:flex!important;justify-content:center;align-items:flex-start;width:100%;max-width:none;min-height:calc(100svh - 64px);margin:0 auto;padding:12px 16px 30px}.app-shell.screen-setup .side-panel{width:min(100%,760px)!important;max-width:760px}.app-shell.screen-setup .setup-card{position:relative;padding:clamp(20px,4vw,38px)!important;border:9px ridge #d4a557!important;border-radius:25px!important;background:linear-gradient(145deg,#70452a,#2d1a13 55%,#694027)!important;box-shadow:inset 0 0 0 3px #f6d58b55,inset 0 0 35px #120905,0 20px 50px #0009!important;color:#f9e7c1!important}.app-shell.screen-setup .setup-card:before{content:"";position:absolute;inset:8px;border:1px solid #f1d28c88;border-radius:15px;pointer-events:none}.app-shell.screen-setup .setup-card h2{font-size:clamp(22px,4vw,32px)!important;text-align:center;color:#ffe5a8!important;margin:8px 0}.app-shell.screen-setup .setup-card>.eyebrow{display:block;text-align:center;color:#e6bf72!important}.app-shell.screen-setup .setup-card>p{text-align:center;color:#e8d2aa!important}.app-shell.screen-setup .player-name-list,.app-shell.screen-setup .theme-picker{position:relative;background:#24160f99!important;border:1px solid #b98a4c!important;border-radius:14px!important;padding:14px!important}.app-shell.screen-setup .count-picker button{min-height:74px!important;border:2px solid #d5a85e!important;border-radius:14px!important;background:linear-gradient(145deg,#70442a,#301b12)!important;color:#ffdfa0!important;box-shadow:0 4px #1b100b!important}.app-shell.screen-setup .count-picker button.selected{background:linear-gradient(145deg,#ffe49a,#c18a3e)!important;color:#38200e!important;border-color:#fff0bc!important;transform:translateY(-2px)}.app-shell.screen-setup .seat-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.app-shell.screen-setup .seat{padding:10px 12px;border:1px solid #bd914f;border-radius:11px;background:#24160f99;color:#f8e5bd}.app-shell.screen-setup .primary-button{width:100%;min-height:58px!important;margin-top:10px;border:2px solid #fff0bd!important;border-radius:14px!important;background:linear-gradient(145deg,#ffe8a3,#d49b43 55%,#8c4e1d)!important;color:#321b0c!important;box-shadow:0 6px #5d3217,0 12px 20px #0007!important;font-size:17px!important}.app-shell.screen-setup .theme-options,.app-shell.screen-setup .dice-options{max-height:none!important}@media(max-width:600px){.bm-menu-screen{padding:8px}.bm-menu-frame{min-height:calc(100svh - 16px);padding:24px 16px 17px;border-width:7px;border-radius:23px;gap:12px}.bm-menu-emblem{width:78px;height:78px;border-radius:21px}.bm-menu-board-art{width:155px;height:155px;min-width:155px;min-height:155px;border-width:6px}.bm-menu-die{width:65px;height:65px;font-size:44px}.bm-menu-button{min-height:60px;padding:7px 12px}.bm-menu-button b{font-size:14px}.bm-menu-button small{font-size:9px}.app-shell.screen-setup .game-layout{padding:6px 8px 20px}.app-shell.screen-setup .setup-card{padding:18px 13px!important;border-width:6px!important}.app-shell.screen-setup .seat-list{grid-template-columns:1fr 1fr}}.bm-back-menu{margin-right:auto;padding:9px 14px;border:1px solid #d8ac61;border-radius:10px;background:linear-gradient(145deg,#71462b,#321d13);color:#ffe3a5;font:inherit;font-size:11px;cursor:pointer}.app-shell.screen-setup{max-width:none!important;width:100%!important;box-sizing:border-box!important}.app-shell.screen-setup .topbar{width:100%;box-sizing:border-box}@media(max-width:600px){.bm-back-menu{padding:7px 9px;font-size:9px}}.app-shell.screen-setup{overflow-x:hidden!important;overflow-y:auto!important}.app-shell.screen-setup .side-panel>.social-card,.app-shell.screen-setup .side-panel>.mini-stats{display:none!important}.app-shell.screen-setup .side-panel{display:block!important}.app-shell.screen-setup .player-name-input{background:#f7e8c8!important;border:1px solid #c99b57!important;color:#392316!important}.app-shell.screen-setup .field-label{color:#f4dfb3!important}.app-shell.screen-setup .theme-picker>strong,.app-shell.screen-setup .player-name-list>strong{color:#f3d89f!important}.dice-cube{transform:rotateX(-12deg) rotateY(18deg)}.cube-face{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);place-items:center;padding:11px;border:2px solid #fff9e9;border-radius:12px;background:linear-gradient(145deg,#fffef8,#d8c49a);color:#a6473d;box-shadow:inset -5px -6px 10px #8e704b55,inset 4px 4px 9px #fff,0 1px 2px #60452a55;backface-visibility:visible}.cube-face .pip{width:7px;height:7px;border-radius:50%;background:transparent;box-shadow:none}.cube-face .pip.active{background:currentColor;box-shadow:inset 1px 1px 1px #fff9,0 1px 2px #38241766}.cube-top{background:linear-gradient(145deg,#fffef8,#e6d4ad)}.dice-cube-stage.is-rolling .dice-cube{animation:cube-roll-settle 1.05s cubic-bezier(.18,.72,.18,1) both}@keyframes cube-roll-settle{0%{transform:rotateX(-12deg) rotateY(18deg) translateY(0) scale(.88)}22%{transform:rotateX(170deg) rotateY(205deg) translateY(-15px) scale(1.13)}48%{transform:rotateX(385deg) rotateY(430deg) translateY(-8px) scale(1.08)}76%{transform:rotateX(610deg) rotateY(700deg) translateY(-2px) scale(1.02)}to{transform:rotateX(-12deg) rotateY(18deg) translateY(0) scale(1)}}@media(max-width:800px){.dice-cube{--cube-size:60px}.cube-face{padding:9px}.cube-face .pip{width:6px;height:6px}}
