.jack-table{--jack-accent:#e7c17c;isolation:isolate}.jack-table .background{filter:brightness(.72) saturate(.85)}.jack-table .atmosphere{background:radial-gradient(ellipse at center,transparent 25%,#0608079c 100%)}.jack-table .roundbox{padding:8px 18px}.jack-table .hud{pointer-events:none}.jack-table .hud .roundbox{pointer-events:auto}.jack-board-wrap{position:absolute;transform:translate(-50%,-50%);z-index:4;filter:drop-shadow(0 18px 20px #0008);direction:ltr}.jack-board-root,.jack-board-svg{width:100%;height:100%;display:block;overflow:visible}.jack-marble{cursor:default;transform-box:view-box;transform-origin:0 0;outline:none}.jack-marble.selectable{cursor:pointer}.jack-marble.selectable .jack-marble-halo{fill-opacity:.27;stroke:#ffe5ad;stroke-width:1.8;animation:jack-breathe 1.5s ease-in-out infinite}.jack-marble.chosen .jack-marble-halo,.jack-marble:focus-visible .jack-marble-halo{fill-opacity:.5;stroke:#fff1c9;stroke-width:3}.jack-target{cursor:pointer;outline:none;animation:jack-target-in .2s ease-out}.jack-target:hover circle:first-child,.jack-target:focus-visible circle:first-child{fill-opacity:.65;stroke:white;stroke-width:3}.jack-captured{filter:brightness(.94)}.jack-table .player.jack-player{z-index:8;border:1px solid color-mix(in srgb,var(--jack-color) 42%,transparent);background:#171b19e8;min-width:90px;padding:6px 10px;box-shadow:0 5px 15px #0005;overflow:visible}.jack-table .player.active{border-color:var(--jack-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--jack-color) 35%,transparent),0 0 20px color-mix(in srgb,var(--jack-color) 24%,transparent)}.jack-home-progress{display:flex;justify-content:center;gap:5px;margin-top:4px}.jack-home-progress i{width:7px;height:7px;border:1px solid var(--jack-color);border-radius:50%;background:transparent}.jack-home-progress i.done{background:var(--jack-color);box-shadow:0 0 6px var(--jack-color)}.jack-topline{position:absolute;left:50%;top:52px;transform:translateX(-50%);display:flex;gap:10px;align-items:center;white-space:nowrap;z-index:9;color:#ebd5b0;font-size:12px;background:#161b18e8;border:1px solid #ffffff1b;border-radius:40px;padding:5px 10px;direction:rtl}.jack-clock{display:grid;place-items:center;min-width:32px;font-size:16px;color:#efcd90;font-variant-numeric:tabular-nums;background:#30291d;border-radius:20px;padding:3px 8px;position:relative;overflow:hidden}.jack-clock:after{content:'';height:2px;background:currentColor;position:absolute;bottom:0;left:0;right:0;transform:scaleX(var(--jack-time,1));transform-origin:left}.jack-clock.urgent{color:#ff8980}.jack-controls{position:absolute;z-index:24;transform:translate(-50%,-100%);width:max-content;max-width:min(92%,360px);text-align:center;pointer-events:auto;display:grid;gap:5px}.jack-instruction{background:#111713e8;border:1px solid #e6c17a45;box-shadow:0 6px 16px #0004;padding:7px 13px;border-radius:13px;color:#f3dba9;display:grid;gap:3px}.jack-instruction b{font-size:14px}.jack-instruction small{color:#c1c4b8;font-size:10px}.jack-action-options{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.jack-action-options button{border:1px solid #e6c17a45;border-radius:9px;background:#26312a;color:#ecdfc5;padding:6px 12px;font-weight:700;font-size:12px}.jack-action-options button.jack-confirm{background:#e6c17a;color:#332416}.jack-action-options button:active{transform:scale(.95)}.jack-info{position:absolute;z-index:5;transform:translateX(-50%);color:#e6c17a;background:#181b17b8;border:1px solid #e6c17a22;padding:5px 12px;border-radius:30px;font-size:12px;white-space:nowrap}.jack-last{position:absolute;display:flex;flex-direction:column;align-items:center;gap:3px;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.jack-last[hidden]{display:none}.jack-last img{width:clamp(28px,4.5vw,61px);height:auto;border-radius:4px;box-shadow:0 4px 12px #0009;transform:rotate(-7deg)}.jack-last div{background:#241b12e0;padding:3px 9px;border-radius:7px;text-align:center;color:#f3dba9;display:grid;gap:1px;font-size:11px}.jack-last small{font-size:9px;color:#e3c9a2}.jack-table .cards{pointer-events:none;z-index:11}.jack-table .card.held{pointer-events:auto}.jack-table .card.held.selected{filter:drop-shadow(0 0 7px #efcd90a0)}.jack-table .card.held.unplayable{filter:brightness(.65) saturate(.8);opacity:1}.jack-table .card.held:active{filter:brightness(1.1)}.jack-table .card.held:disabled:not(.unplayable){opacity:1}.jack-table .jack-held{touch-action:manipulation}.jack-table .speech{display:none}.jack-table .winner{display:none}.jack-table .result{z-index:50}.jack-table .toptools{z-index:35}.jack-narrow .player.jack-player{min-width:74px;max-width:112px;padding:4px 6px}.jack-narrow .jack-topline{top:49px;font-size:10px;padding:4px 8px}.jack-narrow .jack-controls{max-width:91%}.jack-narrow .jack-instruction b{font-size:12px}.jack-short .jack-info{display:none}.jack-short .jack-topline{top:7px;left:73%;font-size:10px}.jack-short .jack-controls{max-width:30%}.jack-short .jack-player{min-width:70px!important;padding:4px 6px!important}.jack-short .jack-instruction b{font-size:11px}.jack-short .jack-instruction small{font-size:9px}.jack-short .jack-last img{width:29px}.jack-short .jack-last div{font-size:9px}.jack-short .jack-last small{font-size:8px}@keyframes jack-breathe{50%{fill-opacity:.5}}@keyframes jack-target-in{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.jack-table *{animation-duration:0s!important;transition-duration:0s!important}}.jack-table.quiet *{animation-duration:0s!important;transition-duration:0s!important}
#roomtimer{appearance:none;width:100%;min-height:48px;direction:rtl;font:inherit;color:var(--text,#eee);background:linear-gradient(135deg,#303631,#252925);border:1px solid #e6c17a44;border-radius:13px;padding:11px 14px 11px 36px;cursor:pointer;outline:none;color-scheme:dark}.room-timer-wrap{position:relative;display:block}.room-timer-wrap:after{content:'⌄';position:absolute;left:16px;top:50%;transform:translateY(-55%);pointer-events:none;color:#e6c17a;font-size:21px}#roomtimer:focus-visible{border-color:#e6c17a;box-shadow:0 0 0 3px #e6c17a30}#roomtimer option{background:#292d29;color:#f2e2c4}html[data-theme=light] #roomtimer{background:#f9f4e7;color:#292b27;color-scheme:light}html[data-theme=light] #roomtimer option{background:#f9f4e7;color:#292b27}

.jack-table .jack-impact{color:#ffd798;font-size:clamp(13px,2vw,24px);text-shadow:0 2px 6px #000,0 0 15px #ffd07b80;animation:jack-impact-in .7s cubic-bezier(.1,.8,.3,1) both;white-space:nowrap}.jack-table .jack-last.home .jack-impact{color:#a1f0bf}.jack-table .jack-last.capture img{box-shadow:0 0 18px #ffdc87a0,0 4px 10px #0008}.jack-table .jack-paths{pointer-events:none}.jack-narrow .jack-info{top:auto;font-size:10px;padding:3px 6px}.jack-narrow .jack-player .identity{max-width:98px}.jack-narrow .jack-player .who b{overflow:hidden;text-overflow:ellipsis;max-width:66px}.jack-short .hud{left:16%;right:auto;width:max-content}.jack-short .jack-topline{left:81%}.jack-table .jack-action-options button:focus-visible{outline:2px solid #f6d68c;outline-offset:2px}@keyframes jack-impact-in{0%{opacity:0;transform:translateY(8px) scale(.8)}40%{opacity:1;transform:translateY(-3px) scale(1.12)}100%{opacity:1;transform:none}}

.jack-table .player.jack-player{border:0;background:none;box-shadow:none;padding:0!important;border-radius:16px;min-width:0!important}.jack-table .player.jack-player .identity{border-color:color-mix(in srgb,var(--jack-color) 50%,transparent);background:#171b19ef}.jack-table .player.jack-player.active .identity{border-color:var(--jack-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--jack-color) 33%,transparent),0 0 20px color-mix(in srgb,var(--jack-color) 25%,transparent)}.jack-table .jack-home-progress{margin-top:1px;background:#111712b8;border-radius:20px;padding:3px 6px}.jack-table .jack-info[hidden]{display:none}.jack-narrow .jack-action-options button{font-size:11px;padding:5px 8px}.jack-narrow .jack-instruction{padding:6px 8px}.jack-narrow .jack-instruction small{font-size:9px}.jack-narrow .jack-topline{top:49px}.jack-table .jack-board-root{touch-action:none}.jack-short .jack-topline{top:7px}.jack-short .jack-controls{transform:translate(-50%,-100%)}

/* Phase 8 refinement: a tactile board, compact central action stage, separate choice dock. */
.jack-table .jack-board-wrap{filter:drop-shadow(0 20px 25px #0009);container-type:inline-size}
.jack-board-wrap:after{content:'';position:absolute;inset:1.6%;border:2px solid #f9d891;border-radius:15%;opacity:0;pointer-events:none;transition:opacity .18s,box-shadow .18s}
.jack-board-wrap.jack-drop-active:after{opacity:1;box-shadow:inset 0 0 28px #ffda7c65,0 0 22px #ffda7c50}
.jack-table .jack-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:29%;max-height:29%;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(2px,1cqw,7px);text-align:center;pointer-events:none;direction:rtl}
.jack-table .jack-center .jack-last{position:static;transform:none;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1.3cqw;width:100%;min-height:0;z-index:auto}
.jack-table .jack-center .jack-last[hidden]{display:none}
.jack-table .jack-center .jack-last img{width:8.2cqw;max-width:64px;border-radius:3px;transform:rotate(-7deg);flex-shrink:0}
.jack-table .jack-center .jack-last.throwing img{visibility:hidden}
.jack-table .jack-center .jack-last div{padding:0;background:none;font-size:clamp(8px,2cqw,15px);line-height:1.2;text-shadow:0 1px 4px #000;overflow-wrap:anywhere;min-width:0;color:#fff2d6}
.jack-table .jack-center .jack-last small{font-size:clamp(7px,1.65cqw,13px);color:#f6d598}
.jack-table .jack-center .jack-last.capture small{color:#ffb5a3;font-weight:800}
.jack-table .jack-center .jack-last.home small{color:#b8f3cf;font-weight:800}
.jack-table .jack-center .jack-last.impact{animation:jack-hit .42s ease-out}
.jack-table .jack-center .jack-instruction{width:100%;padding:1.15cqw .8cqw;border-radius:1.7cqw;gap:.5cqw;background:#121915e8;border:1px solid #f3d49745;box-shadow:0 3px 8px #0005;color:#ffe3ae;line-height:1.25}
.jack-table .jack-center .jack-instruction b{font-size:clamp(9px,2.3cqw,18px);font-weight:850}
.jack-table .jack-center .jack-instruction small{font-size:clamp(7px,1.75cqw,13px);color:#d7daca}
.jack-table .jack-center.choosing .jack-instruction{border-color:#ffdd96;box-shadow:0 0 16px #edc36e45;background:#16271feF}
.jack-table .jack-center.waiting .jack-instruction{opacity:.88}
.jack-table .jack-controls{z-index:24;transform:translate(-50%,-100%);width:max-content;pointer-events:none}
.jack-table .jack-controls button{pointer-events:auto;min-height:30px;padding:5px 13px;border-radius:20px;box-shadow:0 3px 8px #0006}
.jack-table .jack-held{touch-action:none}
.jack-table .jack-flash-slot{position:absolute;z-index:25;transform:translate(-50%,-50%);width:max-content;max-width:24%;pointer-events:auto}
.jack-table .jack-flash-slot[hidden]{display:none}
.jack-table .jack-flash-slot button{display:flex;gap:5px;align-items:center;justify-content:center;min-height:34px;border:1px solid #e6c17a75;border-radius:20px;background:#1c271fed;color:#f3dca5;padding:6px 11px;font-size:11px;box-shadow:0 3px 8px #0008}
.jack-table .jack-flash-slot button.armed{background:#e6c17a;color:#302514}
.jack-table .jack-flash-slot button:disabled{opacity:.5}
.jack-table .jack-flight{pointer-events:none;filter:drop-shadow(0 8px 9px #0009)}
@keyframes jack-hit{0%{transform:scale(1.12);filter:brightness(1.6)}25%{transform:translateX(-2px)}50%{transform:translateX(2px)}100%{transform:none;filter:none}}
.jack-table .jack-narrow .jack-controls button{font-size:11px}
/* Keep the deepest safety holes and top opponent clear of labels. */
.jack-table .jack-center{width:25.5%}
.jack-table:not(.jack-narrow):not(.jack-short) .hud{left:18%;right:auto;grid-template-columns:auto;top:14px}
.jack-table:not(.jack-narrow):not(.jack-short) .hud .roundbox{grid-column:1}
.jack-table.jack-short .hud{left:9%;right:auto;grid-template-columns:auto;top:8px}
.jack-table.jack-short .hud .roundbox{grid-column:1;padding:6px 10px}
.jack-table.jack-short .toptools{top:8px;left:7px}
.jack-table.jack-narrow .jack-controls button{font-size:11px;padding:5px 9px;min-height:30px}
.jack-table.jack-short .jack-controls button{font-size:11px;padding:4px 8px}
html:has(.jack-table),body:has(.jack-table){overflow:hidden;overscroll-behavior:none}
/* Shared flash button has absolute positioning in older tables. Override it here:
   the Jakaroo slot already owns its position, and focus must not scroll the stage. */
.jack-table .jack-flash-slot .flash-arm{position:static;inset:auto;width:auto;height:auto;min-height:34px;max-width:100%;z-index:auto;margin:0}
.jack-table.jack-narrow .jack-flash-slot .flash-arm{width:38px;height:38px;padding:0}
.jack-table.jack-narrow .jack-flash-slot .flash-arm b{display:none}
/* v0.9.2: reserved cards are shown in the center; actions appear only when
   the card has genuinely distinct uses. Forced burns are visibly selectable. */
.jack-table .jack-held.jack-burnable{filter:drop-shadow(0 0 5px #ffb77680)}
.jack-table .jack-center.choosing .jack-last{min-height:8cqw}
.jack-table .jack-center.choosing .jack-instruction{background:#15231eF5}
.jack-table .jack-controls button:not(.jack-confirm){background:#1a231e;color:#efddbd;border-color:#e6c17a66}
.jack-table .jack-player.active .identity:after{background:#f0ce86;color:#2b2315}

/* Confirmed burn is public; hover/selection is local only. */
.jack-table .card.jack-burnable:is(:hover,:focus-visible,.jack-burn-picked):after,.jack-table .card.jack-burn-flight:after{content:'';position:absolute;inset:0;border-radius:inherit;background:#cc202050;box-shadow:inset 0 0 0 2px #ff7168,0 0 12px #ff423b80;pointer-events:none}
.jack-table .card.jack-burn-picked{filter:drop-shadow(0 0 9px #ff423b90)}
.jack-table .jack-action-options button.jack-burn-confirm{background:#a72c31;color:#fff1e9;border-color:#f18b83}
.jack-table .jack-center .jack-last.burned img{outline:2px solid #f4776b;box-shadow:0 0 12px #f34d4880;filter:sepia(.2) saturate(1.4)}
.jack-table .jack-center .jack-last.burned small{color:#ffaba2;font-weight:800}
.jack-table .card.jack-burnable:is(:hover,:focus-visible,.jack-burn-picked):after,.jack-table .card.jack-burn-flight:after{display:block;opacity:1;mix-blend-mode:normal;background:#d3212155;z-index:2}

/* v0.9.4: finite, lightweight action feedback in board coordinates. */
.jack-effects{pointer-events:none}.jack-fx-ring{transform-box:fill-box;transform-origin:center;animation:jack-fx-ring .48s cubic-bezier(.15,.65,.3,1) both}.jack-fx-spark{animation:jack-fx-spark .46s ease-out both}.jack-fx-capture .jack-fx-ring{stroke-width:3.5}.jack-fx-home .jack-fx-ring{stroke-dasharray:3 3}.jack-motion-trail{pointer-events:none}.jack-table .jack-player.active .identity{transition:border-color .2s,box-shadow .3s}.jack-table .jack-home-progress i{transition:background .18s,box-shadow .25s}.jack-table .jack-center.choosing .jack-instruction{transition:background .2s,border-color .2s,box-shadow .2s}
@keyframes jack-fx-ring{from{opacity:.9;transform:scale(.7)}to{opacity:0;transform:scale(2.35)}}@keyframes jack-fx-spark{0%{opacity:1;transform:translate(0,0)}100%{opacity:0;transform:translate(var(--fx-x),var(--fx-y)) scale(.35)}}
html.quiet .jack-fx,html.quiet .jack-motion-trail{display:none}

/* Competitive cinematic effects stay within the board center; no input interception. */
/* Competitive effects stay inside the central play area; no full-board dimming. */
.jack-ranked .flash-live{inset:auto;left:var(--jack-fx-x,50%);top:var(--jack-fx-y,50%);width:var(--jack-fx-size,220px);height:var(--jack-fx-size,220px);transform:translate(-50%,-50%);z-index:18;pointer-events:none;mask-image:radial-gradient(ellipse,#000 52%,transparent 73%)}
.jack-ranked .cinema-vignette{background:radial-gradient(ellipse,color-mix(in srgb,var(--fx2) 28%,transparent),transparent 68%)}
.jack-ranked .flash-live .cinema-card{width:clamp(34px,6vw,82px)}.jack-ranked .cinema-caption{font-size:10px;bottom:15%}.jack-ranked .flash-live .cinema-v2 .cinema-caption strong{font-size:clamp(10px,1.8vw,22px)}.jack-ranked .cinema-caption small{font-size:10px}
@media(max-width:600px){.jack-ranked .cinema-caption small{display:none}}
