/* Screw (سكرو) — dark neon table */
.gpick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gpick button{height:48px;border-radius:14px;border:2px solid color-mix(in srgb,var(--wood) 40%,transparent);background:transparent;color:var(--ink);font:900 17px Cairo;cursor:pointer}
.gpick button.on{background:#1d1640;color:#b9f3ff;border-color:#38e1ff;box-shadow:0 0 14px #38e1ff55}
.sizes.wide{grid-template-columns:1fr 1fr!important;display:grid;gap:8px}
#skopts{display:flex;flex-direction:column;gap:10px}
#skopts[hidden],#skMicRow[hidden]{display:none}

#skru{--sk-bg:#0b0820;--sk-felt:#14103a;--sk-neon:#38e1ff;--sk-pink:#ff3fa4;--sk-gold:#ffd25e;background:radial-gradient(120% 90% at 50% 40%,#231a5c 0%,var(--sk-bg) 70%);color:#eef;display:flex;flex-direction:column;height:100%;position:relative;overflow:hidden}
#skru[hidden]{display:none}
#skru .top{color:#eef}
#skru .logo{color:var(--sk-neon);text-shadow:0 0 12px #38e1ff88}
#skru .logo small{color:#a9b3ff;text-shadow:none}
.skban{min-height:26px;text-align:center;font-weight:900;font-size:14px;color:var(--sk-gold);opacity:0;transition:opacity .25s;padding:0 10px}
.skban.show{opacity:1}
.sktable{position:relative;flex:1;margin:4px 8px;border-radius:28px;background:radial-gradient(closest-side,#1e1758,#120d36);box-shadow:inset 0 0 0 2px #38e1ff33,inset 0 0 40px #000a,0 0 30px #38e1ff22}
.skhint{text-align:center;font-weight:900;font-size:14px;min-height:22px;color:#cfe;padding:2px 10px}
.skacts{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:6px 10px calc(10px + env(safe-area-inset-bottom))}
.skacts .btn{flex:1 1 30%;min-width:96px;height:52px;font-size:16px}
.skacts .btn.on{outline:3px solid var(--sk-neon)}
.skacts .btn small{display:block;font-size:10px;font-weight:700;opacity:.8}
.btn.skscrew{background:linear-gradient(180deg,#ff3fa4,#c01a72);color:#fff;box-shadow:0 0 18px #ff3fa488;font-family:Lalezar,Cairo;font-size:22px;flex-basis:100%}
.btn.skscrew:disabled{filter:grayscale(.8);opacity:.5;box-shadow:none}


/* ===== table v4: rows/columns, nothing positioned absolutely, card size follows the screen ===== */
.sktable{position:relative;flex:1;min-height:0;margin:2px 0;border-radius:24px;overflow:hidden;container-type:size;display:flex;flex-direction:column;gap:1.2cqh;padding:1.2cqh 1.5cqw;
  background:radial-gradient(closest-side,#1e1758,#120d36);box-shadow:inset 0 0 0 2px #38e1ff33,inset 0 0 40px #000a,0 0 30px #38e1ff22}
.sktable::before{content:'';position:absolute;left:50%;top:50%;width:min(118cqw,118cqh);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,#5a2a8a55 0 24%,transparent 24.5%),radial-gradient(circle,transparent 0 37%,#ffd25e55 37.3% 37.7%,transparent 38%),radial-gradient(circle,transparent 0 49%,#ffd25e88 49.3% 49.8%,transparent 50%)}
.skrow{display:flex;align-items:center;justify-content:space-around;gap:2cqw;position:relative;z-index:1}
.sktop{flex:none}
.skmid{flex:1;min-height:0;justify-content:space-between}
.skme{flex:none}
.skcol{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1cqh;position:relative;z-index:1;min-width:0}

.skseat{display:flex;flex-direction:column;align-items:center;gap:.8cqh;min-width:0}
.skseat.me{flex-direction:column-reverse;width:100%}
.skcards{display:flex;gap:1.4cqw;justify-content:center;align-items:flex-end;min-width:0}
.skseat.left .skcards,.skseat.right .skcards{flex-direction:column;gap:.9cqh;align-items:center}
.skhead{display:flex;align-items:center;gap:6px;background:#0008;border-radius:20px;padding:2px 10px 2px 4px;max-width:100%}
.skhead .av{width:30px;height:30px;font-size:15px;flex:none}
.sknm{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.sknm b{font-size:13px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sknm small{font-size:10px;color:#a9b3ff;white-space:nowrap}
.sktimer{display:block;width:70px;height:4px;border-radius:4px;background:#fff2;overflow:hidden;visibility:hidden}
.skseat.turn .sktimer{visibility:visible}
.sktimer i{display:block;height:100%;background:var(--sk-neon);transition:width .25s linear}
.sktimer i.low{background:var(--sk-pink)}
.skseat.turn .skhead{box-shadow:0 0 0 2px var(--sk-neon),0 0 14px #38e1ffaa}
.skseat.mate .skhead{box-shadow:0 0 0 2px #39d98a}
.skseat.target .skhead{animation:skpulse 1s infinite}
@keyframes skpulse{50%{box-shadow:0 0 0 3px var(--sk-pink),0 0 20px var(--sk-pink)}}

/* card sizes: --w is the card width; height comes from the shape */
.skc{--w:44px;width:var(--w);height:auto;aspect-ratio:5/7;border-radius:calc(var(--w) * .13);position:relative;flex:0 1 auto;min-width:0;font-family:Lalezar,Cairo;user-select:none;--r:calc(var(--w) * .13)}
.skc.side{aspect-ratio:7/5;border-radius:calc(var(--w) * .1)}
.sktop .skc{--w:min(11cqw,9.5cqh)}
.n3 .sktop .skc,.n5 .sktop .skc{--w:min(8.5cqw,8cqh)}
.skseat.left .skc,.skseat.right .skc{--w:min(16cqw,12cqh)}
.skme .skc{--w:min(19.5cqw,15cqh)}
.skcenter .skc{--w:min(19cqw,14cqh)}
.skslot{position:relative;cursor:pointer;transition:transform .2s;display:flex;min-width:0}
.skslot.raised{transform:translateY(-1.6cqh)}
.skseat.left .skslot.raised,.skseat.right .skslot.raised{transform:none}
.skslot.sel{transform:translateY(-1.8cqh) scale(1.05)}
.skseat.left .skslot.sel,.skseat.right .skslot.sel{transform:scale(1.07)}
.skslot.sel .skc{box-shadow:0 0 0 3px var(--sk-gold),0 0 16px var(--sk-gold)}
.skslot.peek .skc{box-shadow:0 0 0 3px var(--sk-neon),0 0 18px var(--sk-neon)}
.skslot.up::after{content:'📢';position:absolute;top:-8px;left:-6px;font-size:12px}

/* center: pile + ground (+ the card I drew / the two gift cards) */
.skcenter{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1.2cqh 4cqw}
.skpile,.skground,.skhold.mine{display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;position:relative}
.skpile > span,.skground > span,.skhold > span{font-size:11px;font-weight:900;color:#a9b3ff}
.skpile .skc{box-shadow:0 0 0 2px #ffd25e,0 0 14px #ffd25e66}
.skpile.hot .skc{box-shadow:0 0 0 2px var(--sk-neon),0 0 16px #38e1ff99}
.gstack{position:relative;width:var(--w);aspect-ratio:5/7;--w:min(19cqw,14cqh)}
.gstack .gs{position:absolute;inset:0;display:flex}
.gstack .gs .skc{--w:100%;width:100%}
.gstack .gs:not(.gtop){filter:brightness(.82)}
.gstack .gs.gtop{transform:rotate(-6deg)}
.skground .gs.gtop .skc{box-shadow:0 0 0 2px #ffd25e,0 0 18px #ffd25e88}
.skground.hot .gs.gtop .skc{box-shadow:0 0 0 2px var(--sk-neon),0 0 18px #38e1ffaa}
.skgift{display:flex;gap:6px;flex-basis:100%;justify-content:center}
.skgift > div{cursor:pointer;border-radius:10px;display:flex}
.skgift > div.sel{box-shadow:0 0 0 3px var(--sk-gold)}
.skhold{display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 0 10px #ffd25e)}
.skhold.landing{visibility:hidden}
.skhold .skc{animation:skholdbob 1.6s ease-in-out infinite}
.skhold > span{color:#ffd25e}
@keyframes skholdbob{50%{transform:translateY(-4px) rotate(2deg)}}
.skhold.mine .skc{--w:min(19cqw,14cqh)}

/* landscape: [right column] [top / center / me] [left column] */
.sktable.land{flex-direction:row;gap:2cqw;padding:1.5cqh 1.5cqw}
.sktable.land .skcol.skmidcol{flex:1;justify-content:space-between;height:100%}
.sktable.land .skcol.skmidcol > .skcenter{flex:1;min-height:0;width:100%}
.sktable.land .sktop .skc{--w:min(6cqw,15cqh)}
.sktable.land.n5 .sktop .skc{--w:min(5cqw,13cqh)}
.sktable.land .skseat.left .skc,.sktable.land .skseat.right .skc{--w:min(9.5cqw,15cqh)}
.sktable.land .skme .skc{--w:min(7.2cqw,22cqh)}
.sktable.land .skcenter .skc,.sktable.land .gstack,.sktable.land .skhold.mine .skc{--w:min(7.5cqw,22cqh)}
.sktable.land .skseat.me{flex-direction:row-reverse;width:auto;gap:2cqw}
.sktable.land .sktop .skseat{flex-direction:row;gap:1.5cqw}
.sktable.land .skseat.left,.sktable.land .skseat.right{flex-direction:column}
@media (orientation:landscape){
  .app:has(#skru:not([hidden])){max-width:none;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  #skru .top{height:40px;min-height:0}
  #skru .top .ic{width:34px;height:34px;font-size:15px}
  #skru .logo{font-size:24px}
  .skban{min-height:20px;font-size:12px}
  #skru{display:grid;grid-template-columns:1fr 200px;grid-template-rows:auto auto 1fr auto;column-gap:8px}
  #skru > .top{grid-column:1 / -1}
  #skru > .skban{grid-column:1 / -1}
  #skru > .sktable{grid-column:1;grid-row:3 / 5;margin:0 0 6px}
  #skru > .skhint{grid-column:2;grid-row:4;font-size:12px;text-align:center}
  #skru > .skacts{grid-column:2;grid-row:3;flex-direction:column;flex-wrap:nowrap;padding:0;justify-content:flex-start}
  .skacts .btn{height:42px;min-width:0;flex:none;width:100%}
  .btn.skscrew{font-size:18px}
}

/* ===== card design v2 (UNO-style faces, logo backs) ===== */
.skc{container-type:size;overflow:hidden}
.skc.back{background:none;border:none;box-shadow:0 3px 6px #0008;padding:0}
.skc .bk{position:absolute;inset:0;border-radius:inherit;background:#fff;padding:7%}
.skc .bkin{width:100%;height:100%;border-radius:calc(var(--r,9px) - 2px);background:radial-gradient(circle at 50% 50%,#6b2fd6 0 18%,transparent 19%),repeating-conic-gradient(from 0deg,#3a1a8c 0 10deg,#2a1170 10deg 20deg);box-shadow:inset 0 0 0 2px #ffd25e;display:grid;place-items:center}
.skc .bkin span{font:900 28cqw/1 Lalezar,Cairo;color:#ffd25e;-webkit-text-stroke:1px #6b3a00;text-shadow:0 2px 0 #6b3a00;transform:rotate(-18deg)}
.skc.side .bkin span{transform:rotate(0);font-size:24cqh}
.skc.face{background:#fff;border:none;box-shadow:0 3px 6px #0008;padding:0;--c:#5b2fd6;--c2:#8c6bff}
.skc.face::before{content:'';position:absolute;inset:6%;border-radius:calc(var(--r,9px) - 2px);border:2px solid var(--c);pointer-events:none}
.skc.face .ovl{position:absolute;left:50%;top:50%;width:76%;height:62%;transform:translate(-50%,-50%) rotate(-28deg);border-radius:50%;background:radial-gradient(circle at 35% 30%,var(--c2),var(--c));display:grid;place-items:center;box-shadow:inset 0 -3px 0 #0003}
.skc.face .ovl b{transform:rotate(28deg);color:#fff;font:900 40cqw/1 Lalezar,Cairo;-webkit-text-stroke:1px #0004;text-shadow:0 2px 0 #0005;white-space:nowrap}
.skc.face .ix{position:absolute;top:7%;right:11%;font:900 17cqw/1 Lalezar,Cairo;color:var(--c);font-style:normal}
.skc.face .ix.br{top:auto;right:auto;bottom:7%;left:11%;transform:rotate(180deg)}
.skc.face small{position:absolute;bottom:13%;left:0;right:0;text-align:center;font:900 11cqw/1.1 Cairo;color:var(--c);padding:0 8%}
.skc.face em{display:none}
.skc.num{--c:#5b2fd6;--c2:#9a7bff}
.skc.num.p-peekSelf{--c:#0f9bb8;--c2:#4fe0ff}
.skc.num.p-peekOther{--c:#0e8a6a;--c2:#3fe0a8}
.skc.num.pw .ovl{top:44%}
.skc.green{--c:#14a85a;--c2:#4fe08c;background:#fff}
.skc.red{--c:#d01c45;--c2:#ff5c80;background:#fff}
.skc.minus{--c:#0b7fd1;--c2:#5cc4ff;background:#fff;color:inherit}
.skc.plus{--c:#d18a00;--c2:#ffcf4a;background:#fff;color:inherit}
.skc.green .ovl b,.skc.red .ovl b{font-size:26cqw}
.skc.power{--c:#c0267a;--c2:#ff66b8;background:#fff}
.skc.power .ovl{top:42%;transform:translate(-50%,-50%);border-radius:50%;width:62%;height:44%}
.skc.power .ovl b{transform:none;font-size:34cqw;-webkit-text-stroke:0;text-shadow:none}
.skc.power.p-freeze{--c:#1b7fd6;--c2:#6cc6ff}.skc.power.p-spy{--c:#333;--c2:#777}
.skc.power.p-expose,.skc.power.p-pass,.skc.power.p-gift{--c:#e05a00;--c2:#ffa04d}
/* tiny / side cards: just the essentials */
.skc.tiny .ix,.skc.side .ix,.skc.tiny small,.skc.side small{display:none}
.skc.side .ovl{transform:translate(-50%,-50%);width:48%;height:84%}
.skc.side .ovl b{transform:none;font-size:34cqh}
.skc.side.face::before{inset:7%}
.skc.side .bkin span{font-size:30cqh}
.skc.mine{--r:12px}.skc.big{--r:13px}

/* messy ground pile */
.gstack .gs{position:absolute;inset:0}
.gstack .gs .skc{width:100%;height:100%}
.gstack .gs:not(.gtop){filter:brightness(.82)}
.gstack .gs.gtop{transform:rotate(-6deg)}
.skcenter .skground .gs.gtop .skc{box-shadow:0 0 0 2px #ffd25e,0 0 18px #ffd25e88}
.skcenter .skground.hot .gs.gtop .skc{box-shadow:0 0 0 2px var(--sk-neon),0 0 18px #38e1ffaa}
.skpile{position:relative}
.skpile .pstk{position:relative;display:flex}
.skpile .pstk::before,.skpile .pstk::after{content:'';position:absolute;inset:0;transform:translate(3px,3px);border-radius:12%;background:#fff;box-shadow:0 2px 4px #0008;z-index:-1}
.skpile .pstk::after{transform:translate(6px,6px)}

/* flying card, landing and glow */
.skfly{position:fixed;z-index:60;pointer-events:none}
.skfly .skc{width:100%!important;height:100%!important;box-shadow:0 10px 24px #000a}
.skslot.landing{visibility:hidden}
.skslot.glow .skc{animation:skglow 1.1s ease-in-out 2}
@keyframes skglow{0%,100%{box-shadow:0 3px 6px #0008}50%{box-shadow:0 0 0 3px #ffd25e,0 0 22px #ffd25e}}
.skcards.wiggle{animation:skwig .7s}
@keyframes skwig{20%{transform:rotate(-6deg)}40%{transform:rotate(6deg)}60%{transform:rotate(-4deg)}80%{transform:rotate(3deg)}}
.skhead.frz{animation:skfrz 2s}
@keyframes skfrz{0%,100%{filter:none}20%,80%{filter:hue-rotate(160deg) brightness(1.3);box-shadow:0 0 0 3px #6cc6ff,0 0 18px #6cc6ff}}
.skc.face .ovl b{color:#fff;-webkit-text-stroke:0;text-shadow:0 2px 0 #0006,0 0 6px #0004;font-size:46cqw}
.skc.green .ovl b,.skc.red .ovl b{font-size:28cqw}
.skc.power .ovl b{font-size:36cqw}
.skc .bkin span{font-size:24cqw;color:#ffd25e;-webkit-text-stroke:0;text-shadow:0 2px 0 #7a4a00,0 0 8px #ffd25e66}
.skc.side .bkin span{font-size:30cqh}
.skc.num.pw small{font-size:12cqw;bottom:12%}
.skc.num.pw .ovl{top:42%;height:54%}

/* round results */
.skrev{display:flex;flex-direction:column;gap:6px;text-align:start}
.skrrow{display:grid;grid-template-columns:70px 1fr 64px 44px;gap:6px;align-items:center;padding:4px 6px;border-radius:10px;background:color-mix(in srgb,var(--ink) 6%,transparent);font-size:12px}
.skrrow.hd{background:none;font-weight:900;color:var(--muted)}
.skrrow.low{background:#1fbf6a33}
.skrrow.caller .skrname{color:#c01a72}
.skrname{font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.skrcards{display:flex;gap:2px;flex-wrap:wrap}
.skrsum b{font-size:15px}.skrsum em{color:#c01a72;font-style:normal;font-weight:900}
.skrtot{font-weight:900;font-size:15px;text-align:center}

/* deck screen + sounds list */
.skdeck{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin:10px 0}
.skdk{display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:900;font-size:13px}
.skdk span{display:flex;flex-direction:column;align-items:center}
.skdk small{font-size:10px;color:var(--muted);text-align:center;line-height:1.2}
.sklist{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.sklist button{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:8px;padding:10px;border-radius:14px;border:2px solid color-mix(in srgb,var(--ink) 15%,transparent);background:transparent;color:var(--ink);font:900 15px Cairo;cursor:pointer;text-align:start}
.sklist button span{font-size:24px}
.sklist button small{color:var(--muted);font-size:11px}
.sklist button.on{border-color:#38e1ff;box-shadow:0 0 12px #38e1ff55}
.sklist button[data-lock]{opacity:.6}

/* the "سكرووو!" moment */
.skfx{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center;align-content:center;z-index:30;background:#0000;transition:background .3s}
.skword{font:96px/1 Lalezar,Cairo;color:#fff;text-shadow:0 0 20px #ff3fa4,0 0 50px #ff3fa4,0 6px 0 #7a0e47;transform:scale(0);opacity:0}
.skwho{font:900 20px Cairo;color:#ffd25e;opacity:0;margin-top:8px;text-shadow:0 2px 6px #000}
.skfx.go{background:#000a}
.skfx.go .skword{animation:skword 1.6s cubic-bezier(.2,1.6,.4,1) forwards}
.skfx.go .skwho{animation:skwho 1.6s forwards}
.skfx.red .skword{color:#ff2a2a}
.skfx.flashit{animation:skflash .5s}
@keyframes skword{0%{transform:scale(0) rotate(-12deg);opacity:0}25%{transform:scale(1.25) rotate(4deg);opacity:1}45%{transform:scale(1) rotate(0)}85%{opacity:1}100%{transform:scale(1.4);opacity:0}}
@keyframes skwho{20%{opacity:0}35%,85%{opacity:1}100%{opacity:0}}
@keyframes skflash{0%{background:#fff}100%{background:#000a}}
#skru.shake{animation:skshake .45s}
@keyframes skshake{10%,90%{transform:translate(-2px,1px)}20%,80%{transform:translate(4px,-2px)}30%,50%,70%{transform:translate(-7px,3px)}40%,60%{transform:translate(7px,-3px)}}
#skru .btn.ghost{color:#e6ecff;border-color:#38e1ff66;background:#ffffff12}

.skrev .skc.tiny,.skrcards .skc{--w:30px}
.skdk .skc{--w:64px}
.sklist .skc{--w:40px}
.skfly .skc{aspect-ratio:auto}
#skru .btn.ghost{color:#e6ecff;border-color:#38e1ff66;background:#ffffff12}
.skc.num.pw small{font-size:12cqw;bottom:12%}
.skc.num.pw .ovl{top:42%;height:54%}
.skc.face .ovl b{color:#fff;-webkit-text-stroke:0;text-shadow:0 2px 0 #0006,0 0 6px #0004;font-size:46cqw}
.skc.green .ovl b,.skc.red .ovl b{font-size:28cqw}
.skc.power .ovl b{font-size:36cqw}
.skc .bkin span{font-size:24cqw;color:#ffd25e;-webkit-text-stroke:0;text-shadow:0 2px 0 #7a4a00,0 0 8px #ffd25e66}
.skc.side .bkin span{font-size:30cqh;transform:none}
.skcards.wiggle{animation:skwig .7s}
/* v4 tuning: full-width table, side columns never taller than the middle row */
@media (orientation:portrait){.app:has(#skru:not([hidden])){padding-left:0;padding-right:0;max-width:600px}}
#skru .top{padding:0 8px;min-height:0;height:48px}
#skru .top .ic{width:38px;height:38px;font-size:16px}
#skru .logo{font-size:26px}
#skru .logo small{font-size:11px}
.sktable{margin:0;border-radius:18px}
.skacts{padding-left:8px;padding-right:8px}
.skseat.left .skc,.skseat.right .skc{--w:min(17cqw,10.5cqh)}
.skme .skc{--w:min(20.5cqw,14cqh)}
.sktable.land .sktop .skseat{flex-direction:column;gap:.6cqh}
.sktable.land.n4 .sktop .skseat,.sktable.land.n2 .sktop .skseat{flex-direction:row}
.sktable.land.n5 .sktop .skc,.sktable.land.n3 .sktop .skc{--w:min(4.6cqw,12cqh)}
.sktable.land .sktop{gap:6cqw}
.gstack .gs .skc{width:100%!important;height:100%;aspect-ratio:auto}

#skseen{position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:#05031acc;backdrop-filter:blur(2px)}
#skseen[hidden]{display:none}
.skseenbox{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px;max-width:96vw}
.skseenbox b{font:900 22px Lalezar,Cairo;color:#ffd25e}
.skseenbox small{color:#a9b3ff;font-weight:700}
.skseenrow{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}
.skseenc{display:flex;flex-direction:column;align-items:center;gap:6px;width:min(30vw,22vh,150px)}
.skseenc .skc{--w:min(30vw,22vh,150px);flex:none;animation:skseenIn .35s ease-out}
.skseenc span{color:#fff;font-weight:900;font-size:14px}
@keyframes skseenIn{from{transform:rotateY(90deg) scale(.6)}to{transform:none}}

.skcenter .skground.sel .gs.gtop .skc{transform:translateY(-8px) scale(1.06);box-shadow:0 0 0 3px #2fbf71,0 0 22px #2fbf71cc}
.skground.sel ~ * {}
#sktable:has(.skground.sel) .skseat.me .skslot .skc{box-shadow:0 0 0 2px #2fbf71,0 0 12px #2fbf7199}
.skcenter .skground.hot>span{color:#38e1ff}
.skhold.mine{cursor:pointer}

.skrk{font-style:normal;font-size:.8em;margin-inline-start:2px}
.sktable.n4:not(.land) .skcenter .skc,.sktable.n5:not(.land) .skcenter .skc,.sktable.n4:not(.land) .gstack,.sktable.n5:not(.land) .gstack{--w:min(15cqw,10.5cqh)}
.sktable:not(.land) .skcenter:has(.skhold.mine) .skc,.sktable:not(.land) .skcenter:has(.skhold.mine) .gstack{--w:min(14cqw,10cqh)}
body.spect #skhint{visibility:hidden}
body.spect .skme{padding-bottom:44px}
#seriesLobby.sizes{grid-template-columns:repeat(3,1fr)!important}
.sktable .skrow,.sktable .skcol,.sktable .skcenter{pointer-events:none}.sktable .skseat,.sktable .skpile,.sktable .skground,.sktable .skhold,.sktable .skgift{pointer-events:auto}
.sktable:not(.land) .skseat.me .skcards:has(> :nth-child(5)) .skc{--w:min(16.4cqw,13cqh)}
.sktable:not(.land) .skseat.me .skcards:has(> :nth-child(6)) .skc{--w:min(13.8cqw,12cqh)}
.sktable:not(.land) .skseat.me .skcards:has(> :nth-child(7)) .skc{--w:min(11.8cqw,11cqh)}
.sktable:not(.land) .skseat.me .skcards:has(> :nth-child(8)) .skc{--w:min(10.4cqw,10cqh)}
body:has(#skru:not([hidden])) .toast{bottom:auto;top:calc(env(safe-area-inset-top) + 74px)}

/* v1.2: bigger cards, calmer motion */
.sktable:not(.land).n2 .sktop .skc,.sktable:not(.land).n4 .sktop .skc{--w:min(14cqw,11.5cqh)}
.sktable:not(.land) .skseat.left .skc,.sktable:not(.land) .skseat.right .skc{--w:min(19cqw,12cqh)}
.sktable:not(.land) .skseat.me .skcards:not(:has(> :nth-child(5))) .skc{--w:min(22.5cqw,16cqh)}
.skhold .skc{animation:none}
.skslot.glow .skc{animation:skglow2 1.2s ease-in-out 1}
@keyframes skglow2{0%,100%{box-shadow:0 3px 6px #0008}50%{box-shadow:0 0 0 2px #ffd25e,0 0 10px #ffd25e88}}
.skseat.target .skhead{animation:skpulse2 1.4s infinite}
@keyframes skpulse2{50%{box-shadow:0 0 0 2px var(--sk-pink)}}
.skslot.glow .skc{animation:skred .9s ease-in-out infinite;box-shadow:0 0 0 4px #ff2d4b,0 0 18px #ff2d4b;z-index:2}
@keyframes skred{50%{box-shadow:0 0 0 4px #ff2d4b,0 0 30px 6px #ff2d4bcc}}
/* v1.2.5: the card you draw comes to you — big, above your hand — and the centre keeps its size */
.sktable:not(.land) .skmid{position:relative}
.sktable:not(.land) .skcenter:has(.skhold.mine) .skc,.sktable:not(.land) .skcenter:has(.skhold.mine) .gstack{--w:min(19cqw,14cqh)}
.sktable.n4:not(.land) .skcenter:has(.skhold.mine) .skc,.sktable.n4:not(.land) .skcenter:has(.skhold.mine) .gstack,.sktable.n5:not(.land) .skcenter:has(.skhold.mine) .skc,.sktable.n5:not(.land) .skcenter:has(.skhold.mine) .gstack{--w:min(15cqw,10.5cqh)}
.sktable:not(.land) .skhold.mine{position:absolute;left:50%;bottom:1cqh;transform:translateX(-50%);z-index:6;filter:drop-shadow(0 0 14px #ffd25e)}
.sktable:not(.land) .skhold.mine .skc{--w:min(24cqw,17cqh)}
.sktable:not(.land) .skhold.mine > span{background:#000a;padding:1px 10px;border-radius:10px;font-size:12px}
#sktable.sktable:not(.land) .skhold.mine .skc{--w:min(23cqw,16cqh)}
/* keep the table the same height whatever the hint and buttons say: no jump when the turn changes */
@media (orientation:portrait){
  #skru > .skhint{height:42px;min-height:42px;display:flex;align-items:center;justify-content:center;line-height:1.25;overflow:hidden;flex:none}
  #skru > .skacts{min-height:calc(64px + env(safe-area-inset-bottom));flex:none;align-content:flex-start}
}
/* lighter effects for weaker phones: a box-shadow costs far less than a filter on every frame */
.skhold,.sktable:not(.land) .skhold.mine{filter:none}
.skhold .skc{box-shadow:0 0 0 3px #ffd25e,0 0 16px #ffd25e99}
.skban{min-height:22px}
/* v1.2.8: messages sit over the top bar, never over the cards; table centre sits in the middle */
body:has(#skru:not([hidden])) .toast{top:calc(env(safe-area-inset-top) + 6px);bottom:auto;max-width:92vw;font-size:13px;padding:8px 14px;pointer-events:none;opacity:.96}
.sktable:not(.land) .skcenter{align-content:center;align-self:stretch}
.sktable:not(.land) .skcenter > .skpile,.sktable:not(.land) .skcenter > .skground{transform:translateY(var(--cdy,0px));transition:transform .45s cubic-bezier(.45,.05,.25,1)}

/* ===== v1.3 portrait table: opponents as panels in one row on top, pile in the middle, me at the bottom ===== */
.sktable:not(.land){display:flex;flex-direction:column;gap:1.2cqh;padding:1.2cqh 1.5cqw}
.sktable:not(.land) .skopp{flex:none;display:flex;align-items:stretch;justify-content:center;gap:1.8cqw;width:100%}
.sktable:not(.land) .skopp .skseat{position:relative;flex:1 1 0;min-width:0;max-width:72cqw;display:flex;flex-direction:column;align-items:center;gap:.7cqh;padding:.9cqh 1cqw 1.1cqh;border-radius:16px;background:#ffffff0a;border:2px solid #ffffff14;transition:border-color .3s,background .3s,box-shadow .3s}
.sktable:not(.land) .skopp .skhead{max-width:100%;padding:2px 8px 2px 3px;gap:5px}
.sktable:not(.land) .skopp .skhead .av{width:26px;height:26px;font-size:13px}
.sktable:not(.land) .skopp .sknm b{font-size:12px;max-width:100%}
.sktable:not(.land) .skopp .sknm small{font-size:10px}
.sktable:not(.land) .skopp .skcards{display:grid;grid-template-columns:repeat(var(--cols,4),auto);gap:1cqw;justify-content:center;flex-direction:initial}
.sktable:not(.land).n2 .skopp{--cols:4}.sktable:not(.land).n2 .skopp .skc{--w:min(15cqw,10.5cqh)}
.sktable:not(.land).n3 .skopp{--cols:4}.sktable:not(.land).n3 .skopp .skc{--w:min(9.6cqw,8cqh)}
.sktable:not(.land).n4 .skopp{--cols:2}.sktable:not(.land).n4 .skopp .skc{--w:min(12.4cqw,8.2cqh)}
.sktable:not(.land).n5 .skopp{--cols:2}.sktable:not(.land).n5 .skopp .skc{--w:min(9.4cqw,7cqh)}
.sktable:not(.land).n4 .skopp .skcards:has(> :nth-child(7)),.sktable:not(.land).n5 .skopp .skcards:has(> :nth-child(7)){--cols:3}
.sktable:not(.land) .skopp .skhold{position:absolute;bottom:-1cqh;left:-1cqw;z-index:4}
.sktable:not(.land) .skopp .skhold .skc{--w:min(9cqw,6.5cqh)}
.sktable:not(.land) .skmid{flex:1;min-height:0;justify-content:center}
.sktable:not(.land) .skmid .skcenter{flex:none;width:100%;height:100%}
.sktable:not(.land) .skme{flex:none;border-radius:18px;padding:.6cqh 0;border:2px solid transparent;transition:border-color .3s,background .3s,box-shadow .3s}

/* whose turn it is: a bright gold frame that breathes, plus a "دوره" tag */
.skturn{position:absolute;top:-9px;left:50%;transform:translateX(-50%);z-index:5;background:#ffd25e;color:#2b1a0f;font:900 11px/1 Cairo;font-style:normal;padding:3px 10px;border-radius:99px;box-shadow:0 2px 8px #0008;white-space:nowrap}
.sktable:not(.land) .skopp .skseat.turn{border-color:#ffd25e;background:#ffd25e1f;box-shadow:0 0 0 2px #ffd25e66,0 0 22px #ffd25e77;animation:skturnb 1.6s ease-in-out infinite}
.sktable:not(.land) .skme.myturn{border-color:#3dff9a;background:#3dff9a14;box-shadow:0 0 0 2px #3dff9a55,0 0 22px #3dff9a66;animation:skturnm 1.6s ease-in-out infinite}
@keyframes skturnb{50%{box-shadow:0 0 0 3px #ffd25eaa,0 0 30px #ffd25eaa}}
@keyframes skturnm{50%{box-shadow:0 0 0 3px #3dff9aaa,0 0 30px #3dff9aaa}}
.sktable:not(.land) .skopp .skseat.target{border-color:var(--sk-pink);box-shadow:0 0 0 2px var(--sk-pink),0 0 18px var(--sk-pink)}
.skseat.turn .skhead{box-shadow:none}
/* the card I drew waits beside the pile (left side), so nothing on the table moves */
.sktable:not(.land) .skmid .skhold.mine{position:absolute;left:2.5cqw;right:auto;top:50%;bottom:auto;transform:translateY(calc(-50% + var(--cdy,0px)));z-index:6}
#sktable.sktable:not(.land) .skmid .skhold.mine .skc{--w:min(22cqw,15cqh)}
.sktable:not(.land) .skmid .skcenter,.sktable:not(.land) .skmid .skcenter:has(.skhold.mine){gap:1.2cqh 5cqw}
.sktable:not(.land).n5 .skopp .skhead .av,.sktable:not(.land).n4 .skopp .skhead .av{width:22px;height:22px;font-size:11px}
.sktable:not(.land).n5 .skopp .sknm b{font-size:10.5px}
.sktable:not(.land).n5 .skopp .skhead{padding:1px 5px 1px 2px;gap:3px}
.sktable:not(.land).n5 .skopp .skrk{display:none}
#sktable.sktable:not(.land) .skmid .skcenter .skpile .skc,#sktable.sktable:not(.land) .skmid .skcenter .gstack,#sktable.sktable:not(.land) .skmid .skcenter .gstack .skc{--w:min(19cqw,12.5cqh)}
#sktable.sktable:not(.land) .skmid .skcenter .gstack .gs .skc{--w:100%}
/* lighter pulses: animate the opacity of a glow layer (cheap) instead of repainting shadows every frame */
.sktable:not(.land) .skopp .skseat.turn,.sktable:not(.land) .skme.myturn{animation:none}
.sktable:not(.land) .skopp .skseat.turn::after,.sktable:not(.land) .skme.myturn::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;opacity:0;animation:skop 1.6s ease-in-out infinite;will-change:opacity}
.sktable:not(.land) .skopp .skseat.turn::after{box-shadow:0 0 0 3px #ffd25e,0 0 26px #ffd25e}
.sktable:not(.land) .skme.myturn::after{box-shadow:0 0 0 3px #3dff9a,0 0 26px #3dff9a}
@keyframes skop{50%{opacity:.9}}
.skslot.glow .skc{animation:none;box-shadow:0 0 0 4px #ff2d4b,0 0 14px #ff2d4b}
.skslot.glow::after{content:'';position:absolute;inset:-2px;border-radius:12px;pointer-events:none;box-shadow:0 0 22px 6px #ff2d4bcc;opacity:0;animation:skop .9s ease-in-out infinite;will-change:opacity;z-index:3}
/* all my cards stay on one line; the two I looked at get a small eye mark instead of being lifted */
.skslot.raised{transform:none}
.skseat.me .skslot.raised::before{content:'👁';position:absolute;top:-1.6cqh;left:50%;transform:translateX(-50%);font-size:13px;z-index:4;background:#000a;border-radius:99px;padding:0 5px;line-height:1.5}

/* ===== v1.3.1 portrait: around-the-table layout (top player at the top edge, side players hugging the edges, big pile in the middle) ===== */
#sktable.sktable:not(.land){gap:.8cqh;padding:1cqh 1cqw}
#sktable.sktable:not(.land) .sktop{flex:none;justify-content:center;gap:4cqw}
#sktable.sktable:not(.land) .skmid{flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:1cqw;position:relative}
#sktable.sktable:not(.land) .skmid .skcenter{flex:1 1 auto;width:auto;height:auto;min-width:0;display:grid;grid-template-columns:auto auto;grid-template-rows:auto var(--holdh);justify-content:center;align-content:center;align-items:center;column-gap:4cqw;row-gap:1cqh;--holdh:calc(min(21cqw,13cqh) * 1.4 + 22px)}
#sktable.sktable:not(.land) .skcenter > .skpile,#sktable.sktable:not(.land) .skcenter > .skground{transform:none;transition:none}
#sktable.sktable:not(.land) .skmid .skhold.mine,#sktable.sktable:not(.land) .skmid .skgift{position:static;transform:none;grid-column:1 / -1;grid-row:2;justify-self:center;align-self:start}
#sktable.sktable:not(.land) .skmid .skhold.mine .skc{--w:min(21cqw,13cqh)}
#sktable.sktable:not(.land) .skmid .skcenter .skpile .skc,#sktable.sktable:not(.land) .skmid .skcenter .gstack,#sktable.sktable:not(.land) .skmid .skcenter .gstack .skc{--w:min(20cqw,12.5cqh)}
#sktable.sktable:not(.land) .skmid .skcenter .gstack .gs .skc{--w:100%}
#sktable.sktable:not(.land).n3 .skmid .skcenter .skpile .skc,#sktable.sktable:not(.land).n3 .skmid .skcenter .gstack,#sktable.sktable:not(.land).n4 .skmid .skcenter .skpile .skc,#sktable.sktable:not(.land).n4 .skmid .skcenter .gstack,#sktable.sktable:not(.land).n5 .skmid .skcenter .skpile .skc,#sktable.sktable:not(.land).n5 .skmid .skcenter .gstack{--w:min(18cqw,11.5cqh)}
#sktable.sktable:not(.land).n3 .skmid .skcenter,#sktable.sktable:not(.land).n4 .skmid .skcenter,#sktable.sktable:not(.land).n5 .skmid .skcenter{--holdh:calc(min(18cqw,11.5cqh) * 1.4 + 22px)}
#sktable.sktable:not(.land).n3 .skmid .skhold.mine .skc,#sktable.sktable:not(.land).n4 .skmid .skhold.mine .skc,#sktable.sktable:not(.land).n5 .skmid .skhold.mine .skc{--w:min(18cqw,11.5cqh)}

/* opponents: a name tag and their cards, framed lightly so it is clear whose cards are whose */
#sktable.sktable:not(.land) .skseat:not(.me){position:relative;padding:.6cqh .8cqw .8cqh;border-radius:14px;border:2px solid transparent;transition:border-color .3s,background .3s}
#sktable.sktable:not(.land) .skseat:not(.me) .skhead{padding:1px 7px 1px 2px;gap:4px;max-width:100%}
#sktable.sktable:not(.land) .skseat:not(.me) .skhead .av{width:24px;height:24px;font-size:12px}
#sktable.sktable:not(.land) .skseat:not(.me) .sknm b{font-size:11.5px;max-width:20cqw}
#sktable.sktable:not(.land) .skseat:not(.me) .sknm small{font-size:9.5px}
#sktable.sktable:not(.land) .skseat:not(.me) .skrk{display:none}
#sktable.sktable:not(.land) .skseat.left,#sktable.sktable:not(.land) .skseat.right{flex:none;width:22cqw;max-width:22cqw}
#sktable.sktable:not(.land) .skseat.left .skc,#sktable.sktable:not(.land) .skseat.right .skc{--w:min(19cqw,8.6cqh)}
#sktable.sktable:not(.land) .skseat.left .skcards,#sktable.sktable:not(.land) .skseat.right .skcards{gap:.8cqh}
#sktable.sktable:not(.land) .sktop .skc{--w:min(13cqw,9cqh)}
#sktable.sktable:not(.land).n2 .sktop .skc{--w:min(16cqw,11cqh)}
#sktable.sktable:not(.land).n5 .sktop .skc{--w:min(8cqw,6.5cqh)}
#sktable.sktable:not(.land) .skseat:not(.me) .skhold{position:absolute;z-index:4;bottom:-.6cqh;left:50%;transform:translateX(-50%)}
#sktable.sktable:not(.land) .skseat.left .skhold{left:auto;right:-3cqw;transform:none;bottom:40%}
#sktable.sktable:not(.land) .skseat.right .skhold{left:-3cqw;transform:none;bottom:40%}

/* whose turn: gold frame that breathes + "دوره" tag; my turn: green frame round my cards */
#sktable.sktable:not(.land) .skseat:not(.me).turn{border-color:#ffd25e;background:#ffd25e1c}
#sktable.sktable:not(.land) .skseat:not(.me).turn::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;opacity:0;animation:skop 1.6s ease-in-out infinite;will-change:opacity;box-shadow:0 0 0 3px #ffd25e,0 0 26px #ffd25e}
#sktable.sktable:not(.land) .skseat:not(.me).target{border-color:var(--sk-pink);box-shadow:0 0 0 2px var(--sk-pink),0 0 16px var(--sk-pink)}

/* v1.3.1b: like the classic table — pile on top, ground under it in the middle, the card you drew beside the ground */
#sktable.sktable:not(.land) .skmid .skcenter{grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;column-gap:2cqw;row-gap:1.6cqh;justify-content:stretch;align-content:center;--holdh:0px}
#sktable.sktable:not(.land) .skmid .skcenter > .skpile{grid-column:2;grid-row:1}
#sktable.sktable:not(.land) .skmid .skcenter > .skground{grid-column:2;grid-row:2}
#sktable.sktable:not(.land) .skmid .skhold.mine,#sktable.sktable:not(.land) .skmid .skgift{grid-column:3;grid-row:2;justify-self:center;align-self:center}
#sktable.sktable:not(.land) .skmid .skgift{grid-column:1 / -1;grid-row:3}
#sktable.sktable:not(.land) .skmid .skcenter .skpile .skc{--w:min(15cqw,8.5cqh)}
#sktable.sktable:not(.land) .skmid .skcenter .gstack,#sktable.sktable:not(.land) .skmid .skcenter .skground .skc.empty{--w:min(21cqw,12cqh)}
#sktable.sktable:not(.land).n2 .skmid .skcenter .skpile .skc{--w:min(17cqw,10cqh)}
#sktable.sktable:not(.land).n2 .skmid .skcenter .gstack{--w:min(25cqw,14cqh)}
#sktable.sktable:not(.land) .skmid .skhold.mine .skc,#sktable.sktable:not(.land).n3 .skmid .skhold.mine .skc,#sktable.sktable:not(.land).n4 .skmid .skhold.mine .skc,#sktable.sktable:not(.land).n5 .skmid .skhold.mine .skc{--w:min(17cqw,10.5cqh)}
#sktable.sktable:not(.land).n2 .skmid .skhold.mine .skc{--w:min(22cqw,13cqh)}
/* bigger opponents' cards, side players hugging the edges */
#sktable.sktable:not(.land) .skseat.left,#sktable.sktable:not(.land) .skseat.right{width:24cqw;max-width:24cqw}
#sktable.sktable:not(.land) .skseat.left .skc,#sktable.sktable:not(.land) .skseat.right .skc{--w:min(21cqw,9.2cqh)}
#sktable.sktable:not(.land) .sktop .skc{--w:min(14.5cqw,9.5cqh)}
#sktable.sktable:not(.land).n2 .sktop .skc{--w:min(17cqw,11cqh)}
/* cards use size containment, which hides their height from the layout: give slots a real height so rows and frames wrap the cards */
.skslot > .skc{height:calc(var(--w) * 1.4)}
.skslot > .skc.side{height:calc(var(--w) * 5 / 7)}
.skhold > .skc{height:calc(var(--w) * 1.4)}
.skhold > .skc.side{height:calc(var(--w) * 5 / 7)}
#sktable.sktable:not(.land) .skseat.left .skc,#sktable.sktable:not(.land) .skseat.right .skc{--w:min(22cqw,11cqh)}
#sktable .skseat > .skcards,#sktable .skseat > .skhead{flex:none}
#sktable .skseat{min-height:max-content}

/* ===== v1.3.2 portrait — sizes set explicitly so every phone (Safari too) lays the table out the same ===== */
#sktable.sktable:not(.land){--wt:min(14.5cqw,9.5cqh);--ws:min(21cqw,10.5cqh);--wc:min(19cqw,11cqh)}
#sktable.sktable:not(.land).n2{--wt:min(16cqw,10.5cqh);--wc:min(21cqw,12cqh)}
#sktable.sktable:not(.land) .sktop .skseat .skc{--w:var(--wt)}
#sktable.sktable:not(.land) .skseat.left .skc,#sktable.sktable:not(.land) .skseat.right .skc{--w:var(--ws)}
#sktable.sktable:not(.land) .skseat:not(.me){flex:none;min-height:auto}
#sktable.sktable:not(.land) .sktop .skseat .skcards{height:calc(var(--wt) * 1.4)}
#sktable.sktable:not(.land) .sktop .skseat{height:calc(var(--wt) * 1.4 + 40px)}
#sktable.sktable:not(.land) .skseat.left,#sktable.sktable:not(.land) .skseat.right{--k:4;height:calc(var(--k) * var(--ws) * 5 / 7 + (var(--k) - 1) * .8cqh + 40px)}
#sktable.sktable:not(.land) .skseat:is(.left,.right):has(.skcards > :nth-child(5)){--k:5}
#sktable.sktable:not(.land) .skseat:is(.left,.right):has(.skcards > :nth-child(6)){--k:6}
#sktable.sktable:not(.land) .skseat:is(.left,.right):has(.skcards > :nth-child(7)){--k:7}
#sktable.sktable:not(.land) .skseat:is(.left,.right):not(:has(.skcards > :nth-child(4))){--k:3}
#sktable.sktable:not(.land) .skseat:is(.left,.right):not(:has(.skcards > :nth-child(3))){--k:2}
#sktable.sktable:not(.land) .skseat:is(.left,.right):not(:has(.skcards > :nth-child(2))){--k:1}
#sktable.sktable:not(.land) .skseat:is(.left,.right):has(.skcards > :nth-child(6)) .skc{--w:min(19cqw,8.5cqh)}
#sktable.sktable:not(.land) .skseat:is(.left,.right):has(.skcards > :nth-child(6)){--ws:min(19cqw,8.5cqh)}

/* middle: pile and ground side by side, and a fixed place under them for the card you draw — right above your hand */
#sktable.sktable:not(.land) .skmid .skcenter{display:grid;grid-template-columns:auto auto;grid-template-rows:calc(var(--wc) * 1.4 + 18px) calc(var(--wc) * 1.4 + 22px);column-gap:6cqw;row-gap:1cqh;justify-content:center;align-content:center;align-items:center}
#sktable.sktable:not(.land) .skmid .skcenter > .skpile{grid-column:auto;grid-row:1}
#sktable.sktable:not(.land) .skmid .skcenter > .skground{grid-column:auto;grid-row:1}
#sktable.sktable:not(.land) .skmid .skcenter .skpile .skc,#sktable.sktable:not(.land) .skmid .skcenter .gstack,#sktable.sktable:not(.land) .skmid .skcenter .skground .skc.empty{--w:var(--wc)}
#sktable.sktable:not(.land) .skmid .skhold.mine{grid-column:1 / -1;grid-row:2;justify-self:center;align-self:start;position:static;transform:none}
#sktable.sktable:not(.land) .skmid .skhold.mine .skc{--w:var(--wc)}
#sktable.sktable:not(.land) .skmid .skgift{grid-column:1 / -1;grid-row:2;position:static;transform:none}

/* less dead space under the table */
@media (orientation:portrait){
  #skru > .skhint{height:34px;min-height:34px;font-size:13px}
  #skru > .skacts{min-height:calc(54px + env(safe-area-inset-bottom));padding-top:2px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}
  #skru > .skacts .btn{height:48px}
}

/* green felt table with a wooden rim (like a real card table) */
#skru{background:linear-gradient(#3a2414,#24160c)}
#sktable.sktable{background:radial-gradient(ellipse at 50% 45%,#1f7a4d 0%,#15613c 45%,#0d4529 100%);box-shadow:inset 0 0 0 3px #0a3320,inset 0 0 50px #0008,0 0 0 6px #6b3f22,0 0 0 8px #3a2112,0 8px 24px #000a;border-radius:22px;margin:8px 8px 4px}
#sktable.sktable::before{background:radial-gradient(circle,transparent 0 37%,#ffffff1c 37.3% 37.8%,transparent 38.1%),radial-gradient(circle,transparent 0 49%,#ffd25e55 49.3% 49.9%,transparent 50.2%);opacity:.9}
#skru .top,#skru .skban{color:#fbe7b8}
#skru > .skhint{color:#fbe7b8}
#sktable .skhead{background:#0007}

/* v1.3.4: pile and ground sit in the very middle of the table (an empty row above balances the drawn-card row below) */
#sktable.sktable:not(.land) .skmid .skcenter{grid-template-rows:calc(var(--wc) * 1.4 + 22px) calc(var(--wc) * 1.4 + 18px) calc(var(--wc) * 1.4 + 22px);align-content:center;height:100%}
#sktable.sktable:not(.land) .skmid .skcenter > .skpile,#sktable.sktable:not(.land) .skmid .skcenter > .skground{grid-row:2}
#sktable.sktable:not(.land) .skmid .skhold.mine,#sktable.sktable:not(.land) .skmid .skgift{grid-row:3}
#sktable.sktable:not(.land) .skmid{align-items:stretch}
#sktable.sktable:not(.land) .skseat.left,#sktable.sktable:not(.land) .skseat.right{align-self:center}
/* the top player's drawn card shows beside their hand, face down, so you see it come and go */
#sktable.sktable:not(.land) .sktop .skseat .skhold{left:auto;right:-13cqw;bottom:auto;top:50%;transform:translateY(-35%)}
#sktable.sktable:not(.land) .sktop .skseat .skhold .skc{--w:var(--wt);height:calc(var(--wt) * 1.4)}
#sktable.sktable:not(.land) .skseat.left .skhold .skc,#sktable.sktable:not(.land) .skseat.right .skhold .skc{--w:var(--ws)}
/* the card a player just threw on the ground glows for a moment */
.skground.fresh .gtop .skc{box-shadow:0 0 0 4px #ff2d4b,0 0 18px #ff2d4b}

/* special cards: full colour + their own artwork */
.skc.sp{border:none;overflow:hidden;color:#fff;box-shadow:inset 0 0 0 5cqw #fff,0 3px 6px #0008}
.skc.sp::before{display:none}
.skc.sp::after{content:'';position:absolute;inset:-40%;background:linear-gradient(115deg,transparent 42%,#ffffff55 49%,transparent 56%);transform:translateX(-25%);pointer-events:none}
.skc.sp .ix{color:#fff;text-shadow:0 1px 0 #0005;z-index:1}
.skc.sp .spart{position:absolute;inset:14% 10% 26%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.skc.sp .spart svg{width:100%;height:100%;display:block}
.skc.sp .spw{position:absolute;left:0;right:0;bottom:12%;text-align:center;font:24cqw/1 Lalezar,Cairo;text-shadow:0 2px 0 #0005}
.skc.sp-red{background:radial-gradient(circle at 30% 25%,#ff6b7d,#c4122f 60%,#7a0018)}
.skc.sp-green{background:radial-gradient(circle at 30% 25%,#6bffb0,#13a35b 60%,#055a2f)}
.skc.sp-green .spart{inset:12% 8% 14%}
.skc.sp-green .spbig{font:34cqw/1.1 Lalezar,Cairo;text-shadow:0 2px 0 #0005}
.skc.sp-green .spart svg{width:36%;height:auto;flex:none}
.skc.sp-minus{background:radial-gradient(circle at 50% 40%,#c9f3ff,#2aa7e8 45%,#1b3f9e 85%);box-shadow:inset 0 0 0 5cqw #bff1ff,0 0 0 2px #38e1ff,0 0 12px #38e1ff,0 3px 6px #0008}
.skc.sp-minus .spart{inset:10% 6% 24%}
.skc.sp-minus .spw{font:900 12cqw/1 Cairo}
.skc.sp-plus{background:radial-gradient(circle at 50% 45%,#3a0a0a,#160303 70%);box-shadow:inset 0 0 0 5cqw #ff9d00,0 0 0 2px #ff4d00,0 0 12px #ff4d00aa,0 3px 6px #0008}
.skc.sp-plus .ix,.skc.sp-plus .spw{color:#ffd25e;text-shadow:0 0 6px #ff4d00}
.skc.sp-plus .spart{inset:10% 8% 26%}
/* tiny cards (score sheet) and sideways cards: just colour + short word */
.skc.sp.tiny .spart,.skc.sp.side .spart{inset:8%}
.skc.sp.tiny .spw,.skc.sp.side .spw,.skc.sp.tiny .ix,.skc.sp.side .ix{display:none}
.skc.sp{box-shadow:inset 0 0 0 calc(var(--w,60px) * .05) #fff,0 3px 6px #0008}
.skc.sp-minus{box-shadow:inset 0 0 0 calc(var(--w,60px) * .05) #bff1ff,0 0 0 2px #38e1ff,0 0 12px #38e1ff,0 3px 6px #0008}
.skc.sp-plus{box-shadow:inset 0 0 0 calc(var(--w,60px) * .05) #ff9d00,0 0 0 2px #ff4d00,0 0 12px #ff4d00aa,0 3px 6px #0008}
.skdk .skc.sp,.skrcards .skc.sp,.skrev .skc.sp{box-shadow:inset 0 0 0 3px #fff,0 3px 6px #0008}
.skc.sp-red .spart{inset:10% 12% 30%}.skc.sp-red .spw{bottom:13%;font-size:22cqw}.skc.sp-plus .spw{font-size:22cqw}

/* v1.3.8 bigger opponents' cards, tighter chrome around the table */
#sktable.sktable:not(.land){--wt:min(17cqw,11cqh);--ws:min(23cqw,11.2cqh)}
#sktable.sktable:not(.land).n2{--wt:min(18cqw,12cqh)}
#sktable.sktable:not(.land).n5{--wt:min(10.4cqw,8.4cqh)}
#sktable.sktable:not(.land).n5 .sktop{gap:3cqw}
#sktable.sktable:not(.land) .skseat.left,#sktable.sktable:not(.land) .skseat.right{width:25cqw;max-width:25cqw}
#sktable.sktable:not(.land){margin:4px 4px 2px}
@media (orientation:portrait){
  #skru .top{padding-top:2px;padding-bottom:0}
  #skru .skban{min-height:18px;font-size:13px;margin:0}
}

/* v1.3.9 play-direction arrows round the middle of the table (play goes: me -> right -> top -> left) */
#sktable.sktable::after{content:'';position:absolute;left:50%;top:50%;width:min(64cqw,44cqh);aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;z-index:0;opacity:.32;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cpath%20d%3D%22M72.0%2088.1A44%2044%200%200%200%2094.0%2048.5%22%20fill%3D%22none%22%20stroke%3D%22%23ffd25e%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M93.8%2043.5L97.3%2048.3L90.7%2048.6Z%22%20fill%3D%22%23ffd25e%22/%3E%3Cpath%20d%3D%22M88.1%2028.0A44%2044%200%200%200%2048.5%206.0%22%20fill%3D%22none%22%20stroke%3D%22%23ffd25e%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M43.5%206.2L48.3%202.7L48.6%209.3Z%22%20fill%3D%22%23ffd25e%22/%3E%3Cpath%20d%3D%22M28.0%2011.9A44%2044%200%200%200%206.0%2051.5%22%20fill%3D%22none%22%20stroke%3D%22%23ffd25e%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M6.2%2056.5L2.7%2051.7L9.3%2051.4Z%22%20fill%3D%22%23ffd25e%22/%3E%3Cpath%20d%3D%22M11.9%2072.0A44%2044%200%200%200%2051.5%2094.0%22%20fill%3D%22none%22%20stroke%3D%22%23ffd25e%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20d%3D%22M56.5%2093.8L51.7%2097.3L51.4%2090.7Z%22%20fill%3D%22%23ffd25e%22/%3E%3C/svg%3E") center/contain no-repeat}
#sktable.sktable.land::after{width:min(40cqw,62cqh)}
#sktable.sktable>*{position:relative;z-index:1}

/* v1.4.0 no light bands above/below the Screw table: the page behind the phone's bars takes the table's colours */
body:has(#skru:not([hidden])){background:linear-gradient(var(--bg) 0 50%,#24160c 50%)}
html.sbhid body:has(#skru:not([hidden])){background:linear-gradient(#3a2414 0 50%,#24160c 50%)}
/* less empty room under the table: the phone's bottom inset was counted twice (page + action bar) */
.app:has(#skru:not([hidden])){padding-bottom:0}
#skru > .skacts{min-height:calc(46px + env(safe-area-inset-bottom));padding-bottom:calc(2px + env(safe-area-inset-bottom))}

/* ===== v1.4.3 sideways table: in landscape (real, or turned with the button) the table fills the whole phone screen ===== */
@media (orientation:landscape){

 .app:has(#skru:not([hidden])){padding:0!important;max-width:none!important}
 #skru{display:block!important;background:radial-gradient(ellipse at 50% 50%,#1f7a4d 0%,#15613c 50%,#0d4529 100%)!important}
 #skru > .sktable{position:absolute!important;inset:0;margin:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;padding:28px 12px 6px!important}
 #skru > .top{position:absolute;top:6px;right:10px;z-index:6;height:auto!important;min-height:0;display:flex;flex-direction:column;gap:6px;background:none;pointer-events:none}
 #skru > .top > *{pointer-events:auto}
 #skru .top .logo{display:none}
 #skru .top .ic{width:32px!important;height:32px!important;font-size:14px!important}
 #skru > .skban{position:absolute;bottom:8px;left:10px;width:24%;text-align:center;font-size:12px;line-height:1.3;z-index:7;pointer-events:none;min-height:0;text-shadow:0 1px 3px #000}
 #skru > .skhint{position:absolute;top:5px;left:50%;transform:translateX(-50%);max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:6;font-size:11px!important;text-align:center;color:#fbe7b8;text-shadow:0 1px 3px #000;pointer-events:none}
 #skru > .skacts{position:absolute;left:10px;top:8px;width:118px;z-index:6;min-height:0!important;padding:0!important}
 #skru .skacts .btn{height:40px!important;width:100%!important;font-size:15px!important;border-radius:14px}
 .sktable.land{gap:1.5cqw!important}
 .sktable.land .skcol:first-child{margin-right:34px}
 .sktable.land .skcol:last-child{margin-left:6px}
 .sktable.land .skme .skc{--w:min(9cqw,25cqh)!important}
 .sktable.land .skseat.left .skc,.sktable.land .skseat.right .skc{--w:min(7.4cqw,15cqh)!important}
 .sktable.land .sktop .skc{--w:min(7.2cqw,18cqh)!important}
 .sktable.land .skcenter .skc,.sktable.land .gstack,.sktable.land .skhold.mine .skc{--w:min(9cqw,25cqh)!important}

 html:has(#skru:not([hidden])),body:has(#skru:not([hidden])){background:#0d4529!important}
}

html.skrot .app:has(#skru:not([hidden])){padding:0!important;max-width:none!important}
html.skrot #skru{display:block!important;background:radial-gradient(ellipse at 50% 50%,#1f7a4d 0%,#15613c 50%,#0d4529 100%)!important}
html.skrot #skru > .sktable{position:absolute!important;inset:0;margin:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;padding:28px 12px 6px!important}
html.skrot #skru > .top{position:absolute;top:6px;right:10px;z-index:6;height:auto!important;min-height:0;display:flex;flex-direction:column;gap:6px;background:none;pointer-events:none}
html.skrot #skru > .top > *{pointer-events:auto}
html.skrot #skru .top .logo{display:none}
html.skrot #skru .top .ic{width:32px!important;height:32px!important;font-size:14px!important}
html.skrot #skru > .skban{position:absolute;bottom:8px;left:10px;width:24%;text-align:center;font-size:12px;line-height:1.3;z-index:7;pointer-events:none;min-height:0;text-shadow:0 1px 3px #000}
html.skrot #skru > .skhint{position:absolute;top:5px;left:50%;transform:translateX(-50%);max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:6;font-size:11px!important;text-align:center;color:#fbe7b8;text-shadow:0 1px 3px #000;pointer-events:none}
html.skrot #skru > .skacts{position:absolute;left:10px;top:8px;width:118px;z-index:6;min-height:0!important;padding:0!important}
html.skrot #skru .skacts .btn{height:40px!important;width:100%!important;font-size:15px!important;border-radius:14px}
html.skrot .sktable.land{gap:1.5cqw!important}
html.skrot .sktable.land .skcol:first-child{margin-right:34px}
html.skrot .sktable.land .skcol:last-child{margin-left:6px}
html.skrot .sktable.land .skme .skc{--w:min(9cqw,25cqh)!important}
html.skrot .sktable.land .skseat.left .skc,.sktable.land .skseat.right .skc{--w:min(7.4cqw,15cqh)!important}
html.skrot .sktable.land .sktop .skc{--w:min(7.2cqw,18cqh)!important}
html.skrot .sktable.land .skcenter .skc,.sktable.land .gstack,.sktable.land .skhold.mine .skc{--w:min(9cqw,25cqh)!important}

/* the button turns the game a quarter turn (like holding the phone sideways), whatever way the phone itself is locked */
html.skrot #skru{position:fixed!important;top:0;left:0;width:100vh;height:100vw;width:100dvh;height:100dvw;transform-origin:top left;transform:rotate(90deg) translateY(-100%);z-index:50}
html.skrot,html.skrot body{background:#0d4529!important;overflow:hidden}
#skRot.on{background:#ffd25e!important;color:#3a1f0e!important}
@media (orientation:landscape){html:not(.skrot) #skRot{display:none}}

@media (orientation:landscape){
/* v1.4.4 sideways: keep clear of the notch / camera (the phone's top is the table's left side) and the home bar,
   bigger side hands (two columns), and the same turn frames as the upright table */
 #skru > .sktable{padding-left:max(14px,env(safe-area-inset-top))!important;padding-right:max(12px,env(safe-area-inset-bottom))!important}
 .sktable.land .skseat.left .skcards, .sktable.land .skseat.right .skcards{display:flex!important;flex-direction:column;gap:1.2cqh;align-items:center}
 .sktable.land .skseat.left .skc, .sktable.land .skseat.right .skc{--w:min(13cqw,24cqh)!important}
 .sktable.land .skseat.left .skcards:has(.skslot:nth-child(5)) .skc, .sktable.land .skseat.right .skcards:has(.skslot:nth-child(5)) .skc{--w:min(13cqw,19cqh)!important}
 .sktable.land .skseat.left .skcards:has(.skslot:nth-child(6)) .skc, .sktable.land .skseat.right .skcards:has(.skslot:nth-child(6)) .skc{--w:min(13cqw,16cqh)!important}
 .sktable.land .skseat.left .skcards:has(.skslot:nth-child(7)) .skc, .sktable.land .skseat.right .skcards:has(.skslot:nth-child(7)) .skc{--w:min(13cqw,13.5cqh)!important}
 .sktable.land .skseat{position:relative;border:2px solid transparent;border-radius:16px;padding:4px 6px}
 .sktable.land .skseat:not(.me).turn{border-color:#ffd25e;background:#ffd25e1c}
 .sktable.land .skseat:not(.me).turn::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;opacity:0;animation:skop 1.6s ease-in-out infinite;box-shadow:0 0 0 3px #ffd25e,0 0 26px #ffd25e}
 .sktable.land .skme.myturn .skseat.me{border-color:#3dff9a;background:#3dff9a14}
 .sktable.land .skme.myturn .skseat.me::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;opacity:0;animation:skop 1.6s ease-in-out infinite;box-shadow:0 0 0 3px #3dff9a,0 0 26px #3dff9a}
 .sktable.land .skseat:not(.me).target{border-color:var(--sk-pink);box-shadow:0 0 0 2px var(--sk-pink),0 0 16px var(--sk-pink)}
}

/* v1.4.4 sideways: keep clear of the notch / camera (the phone's top is the table's left side) and the home bar,
   bigger side hands (two columns), and the same turn frames as the upright table */
html.skrot #skru > .sktable{padding-left:max(14px,env(safe-area-inset-top))!important;padding-right:max(12px,env(safe-area-inset-bottom))!important}
html.skrot .sktable.land .skseat.left .skcards,html.skrot .sktable.land .skseat.right .skcards{display:flex!important;flex-direction:column;gap:1.2cqh;align-items:center}
html.skrot .sktable.land .skseat.left .skc,html.skrot .sktable.land .skseat.right .skc{--w:min(13cqw,24cqh)!important}
html.skrot .sktable.land .skseat.left .skcards:has(.skslot:nth-child(5)) .skc,html.skrot .sktable.land .skseat.right .skcards:has(.skslot:nth-child(5)) .skc{--w:min(13cqw,19cqh)!important}
html.skrot .sktable.land .skseat.left .skcards:has(.skslot:nth-child(6)) .skc,html.skrot .sktable.land .skseat.right .skcards:has(.skslot:nth-child(6)) .skc{--w:min(13cqw,16cqh)!important}
html.skrot .sktable.land .skseat.left .skcards:has(.skslot:nth-child(7)) .skc,html.skrot .sktable.land .skseat.right .skcards:has(.skslot:nth-child(7)) .skc{--w:min(13cqw,13.5cqh)!important}
html.skrot .sktable.land .skseat{position:relative;border:2px solid transparent;border-radius:16px;padding:4px 6px}
html.skrot .sktable.land .skseat:not(.me).turn{border-color:#ffd25e;background:#ffd25e1c}
html.skrot .sktable.land .skseat:not(.me).turn::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;opacity:0;animation:skop 1.6s ease-in-out infinite;box-shadow:0 0 0 3px #ffd25e,0 0 26px #ffd25e}
html.skrot .sktable.land .skme.myturn .skseat.me{border-color:#3dff9a;background:#3dff9a14}
html.skrot .sktable.land .skme.myturn .skseat.me::after{content:'';position:absolute;inset:-3px;border-radius:inherit;pointer-events:none;opacity:0;animation:skop 1.6s ease-in-out infinite;box-shadow:0 0 0 3px #3dff9a,0 0 26px #3dff9a}
html.skrot .sktable.land .skseat:not(.me).target{border-color:var(--sk-pink);box-shadow:0 0 0 2px var(--sk-pink),0 0 16px var(--sk-pink)}


@media (orientation:landscape){
/* v1.4.4c sideways: my name sits right next to my cards (the timer bar goes under the name, not between them) */
 .sktable.land .skseat.me{gap:1.2cqw!important;justify-content:center}
 .sktable.land .skseat.me > .sktimer{position:absolute;bottom:2px;right:6px;width:60px}
 .sktable.land .skme{justify-content:center}
}

/* v1.4.4c sideways: my name sits right next to my cards (the timer bar goes under the name, not between them) */
html.skrot .sktable.land .skseat.me{gap:1.2cqw!important;justify-content:center}
html.skrot .sktable.land .skseat.me > .sktimer{position:absolute;bottom:2px;right:6px;width:60px}
html.skrot .sktable.land .skme{justify-content:center}

/* v1.4.5: the card flying onto the ground isn't shown there before it lands */
.gs.gtop.landing{visibility:hidden}
/* sideways: windows (leave, round result, rules) turn with the table and sit above it */
html.skrot .ov{top:0!important;left:0!important;right:auto!important;bottom:auto!important;width:100vh;height:100vw;width:100dvh;height:100dvw;transform-origin:top left;transform:rotate(90deg) translateY(-100%);z-index:70!important}
html.skrot .toast{z-index:80;transform:translateX(-50%) rotate(90deg)}

/* v1.4.6: whose turn: the cards themselves glow and fade (gold for the others, green for me) instead of a frame round the seat
   (the glow is on the card itself, so it never clashes with the eye mark on cards you've seen) */
@keyframes skcgo{0%,100%{box-shadow:0 3px 6px #0008}50%{box-shadow:0 0 0 2.5px #ffd25e,0 0 18px 3px #ffd25ecc}}
@keyframes skcgm{0%,100%{box-shadow:0 3px 6px #0008}50%{box-shadow:0 0 0 2.5px #3dff9a,0 0 18px 3px #3dff9acc}}
#sktable .skseat.turn:not(.me) .skslot > .skc{animation:skcgo 1.6s ease-in-out infinite}
#sktable .skme.myturn .skslot > .skc,#sktable .skseat.me.turn .skslot > .skc{animation:skcgm 1.6s ease-in-out infinite}
#sktable.sktable .skseat:not(.me).turn,#sktable.sktable .skme.myturn,#sktable.sktable .skme.myturn .skseat.me{border-color:transparent!important;background:none!important;box-shadow:none!important}
#sktable.sktable .skseat:not(.me).turn::after,#sktable.sktable .skme.myturn::after,#sktable.sktable .skme.myturn .skseat.me::after{display:none!important}

/* v1.4.7b upright: the pile on top and the ground under it (side by side stays for the sideways table); the card you drew sits beside them */
#sktable.sktable:not(.land) .skmid .skcenter{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;grid-template-rows:calc(var(--wc) * 1.4 + 20px) calc(var(--wc) * 1.4 + 22px)!important;grid-auto-rows:calc(var(--wc) * 1.4 + 22px);column-gap:3cqw;row-gap:.8cqh;align-content:center;justify-content:stretch}
#sktable.sktable:not(.land) .skmid .skcenter > .skpile{grid-column:2!important;grid-row:1!important}
#sktable.sktable:not(.land) .skmid .skcenter > .skground{grid-column:2!important;grid-row:2!important}
#sktable.sktable:not(.land) .skmid .skhold.mine{grid-column:1 / -1!important;grid-row:3!important;align-self:center;justify-self:center}
#sktable.sktable:not(.land) .skmid .skgift{grid-column:1 / -1!important;grid-row:3!important}

/* v1.4.9b sideways: the card you draw lands right beside the pile (between the pile and the ground), not across the ground */
.sktable.land .skcenter > .skpile{order:1}
.sktable.land .skcenter > .skhold.mine{order:2}
.sktable.land .skcenter > .skground{order:3}
.sktable.land .skcenter > .skgift{order:4}

/* v1.4.10 upright: the card you draw lands under the ground, right above your own cards; the middle shrinks a bit to make room */
#sktable.sktable:not(.land):has(.skhold.mine){--wc:min(17cqw,8.6cqh)}

@media (orientation:landscape){
/* v1.4.10 sideways: the top player's cards sit right across from mine (names hang beside the cards, so they don't push them aside) */
 .sktable.land .sktop .skseat:only-child, .sktable.land .skme .skseat.me{position:relative;justify-content:center}
 .sktable.land .sktop .skseat:only-child > .skhead{position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:1.2cqw;white-space:nowrap}
 .sktable.land .skme .skseat.me > .skhead{position:absolute;right:100%;top:50%;transform:translateY(-50%);margin-right:1.2cqw;white-space:nowrap}
 .sktable.land .sktop .skseat:only-child > .skturn{left:100%;right:auto}
}

/* v1.4.10 sideways: the top player's cards sit right across from mine (names hang beside the cards, so they don't push them aside) */
html.skrot .sktable.land .sktop .skseat:only-child,html.skrot .sktable.land .skme .skseat.me{position:relative;justify-content:center}
html.skrot .sktable.land .sktop .skseat:only-child > .skhead{position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:1.2cqw;white-space:nowrap}
html.skrot .sktable.land .skme .skseat.me > .skhead{position:absolute;right:100%;top:50%;transform:translateY(-50%);margin-right:1.2cqw;white-space:nowrap}
html.skrot .sktable.land .sktop .skseat:only-child > .skturn{left:100%;right:auto}

/* sideways: an empty place for the card you draw is always kept, so the pile and the ground never shift when you draw */
.skhold.mine.ph{visibility:hidden;pointer-events:none}

@media (orientation:landscape){
/* v1.4.10b sideways 5 players: two hands share the top, so they get smaller cards and the side hands narrower ones */
 .sktable.land.n5 .sktop .skc{--w:min(4.4cqw,13cqh)!important}
 .sktable.land.n5 .sktop{gap:4cqw!important}
 .sktable.land.n5 .skseat.left .skc, .sktable.land.n5 .skseat.right .skc{--w:min(9cqw,15cqh)!important}
}

/* v1.4.10b sideways 5 players: two hands share the top, so they get smaller cards and the side hands narrower ones */
html.skrot .sktable.land.n5 .sktop .skc{--w:min(4.4cqw,13cqh)!important}
html.skrot .sktable.land.n5 .sktop{gap:4cqw!important}
html.skrot .sktable.land.n5 .skseat.left .skc,html.skrot .sktable.land.n5 .skseat.right .skc{--w:min(9cqw,15cqh)!important}

@media (orientation:landscape){
/* v1.4.13 sideways QA: names never collide — the top player's name sits on the left of his cards, the left player's name under his column,
   long names are cut with … ; what just happened takes the hint's line at the top; the top row keeps clear of that line */
 .sktable.land .skseat.right{flex-direction:column-reverse!important}
 .sktable.land .skhead .sknm b{display:inline-block;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
 #skru > .sktable{padding-top:32px!important}
 #skru > .skban{top:6px!important;bottom:auto!important;left:50%!important;transform:translateX(-50%);width:auto!important;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px!important;line-height:20px}
 #skru > .skhint{top:6px!important;line-height:20px;font-size:12px!important;max-width:60%!important}
 #skru > .skban.show ~ .skhint{opacity:0}
}

/* v1.4.13 sideways QA: names never collide — the top player's name sits on the left of his cards, the left player's name under his column,
   long names are cut with … ; what just happened takes the hint's line at the top; the top row keeps clear of that line */
html.skrot .sktable.land .skseat.right{flex-direction:column-reverse!important}
html.skrot .sktable.land .skhead .sknm b{display:inline-block;max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
html.skrot #skru > .sktable{padding-top:32px!important}
html.skrot #skru > .skban{top:6px!important;bottom:auto!important;left:50%!important;transform:translateX(-50%);width:auto!important;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px!important;line-height:20px}
html.skrot #skru > .skhint{top:6px!important;line-height:20px;font-size:12px!important;max-width:60%!important}
html.skrot #skru > .skban.show ~ .skhint{opacity:0}

/* v1.4.13 upright QA: with a drawn card the middle gets a third row, so its cards shrink with the screen height (small phones) */
#sktable.sktable:not(.land):has(.skhold.mine){--wc:min(17cqw,7.2cqh)}

@media (max-height:740px){#sktable.sktable:not(.land):has(.skhold.mine){--wc:min(15cqw,6.3cqh)}}
@media (orientation:landscape){.sktable.land .sktop .skseat:only-child > .skhead,.sktable.land .skme .skseat.me > .skhead{margin-left:.5cqw!important;margin-right:.5cqw!important}}
html.skrot .sktable.land .sktop .skseat:only-child > .skhead,html.skrot .sktable.land .skme .skseat.me > .skhead{margin-left:.5cqw!important;margin-right:.5cqw!important}
/* v1.4.13 small phones sideways (table under ~345px tall): everything a size smaller so the middle never touches the hands */
@container (max-height: 345px){
  .sktable.land .skme .skc{--w:min(8cqw,21cqh)!important}
  .sktable.land .skcenter .skc,.sktable.land .gstack,.sktable.land .skhold.mine .skc{--w:min(7.6cqw,20cqh)!important}
  .sktable.land .sktop .skc{--w:min(5.6cqw,15cqh)!important}
}
@media (max-height:700px){#sktable.sktable:not(.land):has(.skhold.mine){--wc:min(14cqw,5.6cqh)}}
@media (orientation:landscape){.sktable.land.n3 .sktop .skc{--w:min(5.4cqw,15cqh)!important}.sktable.land.n3 .sktop{gap:6cqw!important}}
html.skrot .sktable.land.n3 .sktop .skc{--w:min(5.4cqw,15cqh)!important}html.skrot .sktable.land.n3 .sktop{gap:6cqw!important}

/* v1.4.15 sideways: the hint is ONE short line above the top hand (never two lines over the cards) */
@media (orientation:landscape){ html body #skru > .skhint, html body #skru > .skban{top:4px!important;height:20px!important;min-height:0!important;padding:0 6px!important;line-height:20px!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:44%!important;display:block!important} html body #skru > .sktable{padding-top:30px!important} }
html.skrot body #skru > .skhint, html.skrot body #skru > .skban{top:4px!important;height:20px!important;min-height:0!important;padding:0 6px!important;line-height:20px!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:44%!important;display:block!important}
html.skrot body #skru > .sktable{padding-top:30px!important}
