.sl-board{position:relative;display:grid;grid-template-columns:repeat(10,1fr);gap:3px;width:100%;max-width:340px;padding:8px;border-radius:16px;background:var(--panel);box-shadow:inset 0 0 0 1px var(--border-str)}
.sl-cell{aspect-ratio:1;border-radius:5px;background:var(--panel-2);position:relative;display:flex;align-items:center;justify-content:center}
.sl-cell.alt{background:rgba(139,92,246,.08)}.sl-cell.lad{background:rgba(52,211,153,.24)}.sl-cell.snk{background:rgba(236,72,153,.24)}.sl-cell.end{background:rgba(255,213,79,.4)}
.sl-cell i{position:absolute;top:1px;left:2px;font-style:normal;font-size:6px;color:var(--text-dim)}.sl-cell em{font-style:normal;font-size:11px}
.sl-token{position:absolute;left:0;top:0;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:11px;z-index:3;transition:transform .2s ease}
.sl-controls{display:flex;align-items:center;gap:16px;margin-top:18px}
.sl-dice{width:58px;height:58px;border-radius:16px;background:linear-gradient(#fff,#e4ddf5);color:#160f24;font-size:30px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 5px 0 #a99fc4}
.sl-log{width:100%;max-width:340px;margin-top:16px;max-height:130px;overflow-y:auto;display:flex;flex-direction:column;gap:5px}
.sl-log div{font-size:11px;color:var(--text-dim);background:var(--panel-2);border:1px solid var(--border);border-radius:9px;padding:6px 10px}
.dom-machine{width:100%;max-width:420px;padding:14px;border-radius:22px;background:radial-gradient(130% 70% at 50% 0%,rgba(236,72,153,.25),transparent 62%),linear-gradient(170deg,#4a1a3a,#1f0a19);border:2px solid #ec4899;box-shadow:0 0 40px -10px #ec4899,inset 0 0 24px rgba(0,0,0,.55),0 14px 30px rgba(0,0,0,.5);display:flex;flex-direction:column;align-items:center;gap:10px}
.dom-title{display:flex;justify-content:space-between;width:100%;align-items:center}
.dom-title .l{font-size:12px;font-weight:800;color:#fce7f3}.dom-title .r{font-size:9.5px;color:rgba(255,255,255,.6);font-weight:700}
.dom-board{width:100%;min-height:86px;background:rgba(0,0,0,.45);border-radius:12px;padding:10px;display:flex;align-items:center;justify-content:center;gap:3px;flex-wrap:wrap;box-shadow:inset 0 0 20px rgba(0,0,0,.9)}
.dom-btile{width:38px;height:26px;border-radius:5px;background:linear-gradient(180deg,#f5f5f5,#e0e0e0);color:#111;display:flex;align-items:center;justify-content:space-around;font-weight:800;font-size:12px;padding:0 3px;border:1px solid rgba(0,0,0,.4);box-shadow:0 2px 3px rgba(0,0,0,.45);position:relative}
.dom-btile::after{content:"";position:absolute;left:50%;top:4px;bottom:4px;width:1px;background:rgba(0,0,0,.35)}
.dom-btile.ends-left{box-shadow:0 0 0 2px #22d3ee,0 2px 3px rgba(0,0,0,.45)}.dom-btile.ends-right{box-shadow:0 0 0 2px #fbbf24,0 2px 3px rgba(0,0,0,.45)}
.dom-empty{font-size:11px;color:rgba(255,255,255,.35);font-weight:600}
.dom-hand{width:100%;display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:8px;background:rgba(0,0,0,.25);border-radius:12px;min-height:48px}
.dom-tile{width:46px;height:30px;border-radius:6px;background:linear-gradient(180deg,#fafafa,#e2e2e2);color:#111;display:flex;align-items:center;justify-content:space-around;font-weight:800;font-size:13px;padding:0 4px;border:1px solid rgba(0,0,0,.45);box-shadow:0 3px 0 #6b7280,0 5px 8px rgba(0,0,0,.4);cursor:pointer;position:relative;transition:transform .12s ease,box-shadow .18s ease}
.dom-tile::after{content:"";position:absolute;left:50%;top:4px;bottom:4px;width:1px;background:rgba(0,0,0,.4)}
.dom-tile:hover{transform:translateY(-2px)}
.dom-tile.ok{box-shadow:0 0 0 2px #22c55e,0 3px 0 #6b7280,0 5px 8px rgba(0,0,0,.4)}
.dom-tile.bad{opacity:.45}
.dom-tile.sel{transform:translateY(-8px);box-shadow:0 0 0 3px var(--gold),0 3px 0 #6b7280,0 6px 10px rgba(0,0,0,.55)}
.dom-info{font-size:11.5px;color:rgba(255,255,255,.75);font-weight:600;text-align:center}
.dom-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.dom-actions button{height:30px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.4);color:#fff;font:700 11.5px 'Outfit',sans-serif;cursor:pointer}
.dom-actions button.gold{background:linear-gradient(180deg,#FFE07A,#fbbf24);color:#2b1d00;border-color:#FFD54F}
.war-table{width:100%;max-width:380px;padding:14px;border-radius:18px;background:radial-gradient(120% 80% at 50% 0%,rgba(52,211,153,.20),transparent 65%),linear-gradient(180deg,#0a2e1d,#041a10);border:2px solid #10b981;box-shadow:0 0 30px -10px #10b981,inset 0 0 20px rgba(0,0,0,.6),0 12px 26px rgba(0,0,0,.5);display:flex;flex-direction:column;gap:12px}
.war-row{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:rgba(0,0,0,.35);border-radius:12px;border:1px solid rgba(255,255,255,.08)}
.war-side{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}
.war-label{font-size:10px;color:rgba(255,255,255,.6);font-weight:700;letter-spacing:.05em}
.war-score{font-size:20px;font-weight:900;color:#fef3c7}
.war-card-slot{width:74px;height:104px;border-radius:10px;background:linear-gradient(160deg,#1e293b,#0f172a);border:2px dashed rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;position:relative;perspective:700px}
.war-card-slot.filled{border-style:solid;border-color:rgba(255,255,255,.35)}
.war-card{position:absolute;inset:0;border-radius:10px;background:linear-gradient(180deg,#fff,#e5e5e5);color:#111;display:flex;flex-direction:column;justify-content:space-between;padding:6px 8px;font-weight:800;box-shadow:0 4px 10px rgba(0,0,0,.55),inset 0 -2px 4px rgba(0,0,0,.15)}
.war-card.red{color:#dc2626}.war-card .wr{font-size:15px;line-height:1}.war-card .ws{font-size:26px;line-height:1;align-self:flex-end}
.war-card.back{background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.15),transparent 62%),linear-gradient(160deg,#4c1d95,#1e1b4b);border:1px solid rgba(255,255,255,.25);color:transparent}
.war-card.back::before{content:"✦";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55);font-size:30px}
.war-vs{font-size:16px;font-weight:900;color:rgba(255,255,255,.65);background:rgba(0,0,0,.5);width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.war-center{display:flex;justify-content:space-between;align-items:center;gap:10px}
.war-result{min-height:24px;font-size:14px;font-weight:800;text-align:center;color:rgba(255,255,255,.85);padding:4px 10px;border-radius:999px;background:rgba(0,0,0,.35);letter-spacing:.03em}
.war-result.win{color:#34d399}.war-result.lose{color:#f87171}.war-result.tie{color:#fbbf24}
.war-actions{display:flex;gap:8px;justify-content:center}
.ttt-board{display:grid;grid-template-columns:repeat(3,80px);grid-template-rows:repeat(3,80px);gap:8px;margin:14px 0}
.ttt-cell{background:var(--panel-2);border:1px solid var(--border-str);border-radius:12px;font-size:36px;font-weight:800;cursor:pointer;color:var(--text)}
.ttt-cell.X{color:#8b5cf6}.ttt-cell.O{color:#ec4899}
.ttt-cell:disabled{cursor:not-allowed}.ttt-cell:not(:disabled):active{transform:scale(.95)}
