.tabletop-host{min-width:0;color:#fff5d2}
.tabletop-scene{width:100%;min-width:0;display:flex;align-items:center;flex-direction:column;gap:12px}
.tabletop-controls{width:100%;gap:8px!important;margin:12px 0 0!important}
.tabletop-host .tabletop-action{--button-art:url('../art/ui/button-secondary.webp');min-height:46px;min-width:44px;padding:10px 16px;border:0;background-color:transparent!important;color:#fff5d2!important;text-shadow:0 1px 2px #14203c;font-size:14px;line-height:1.5;white-space:normal}
.tabletop-host .tabletop-primary{--button-art:url('../art/ui/button-primary.webp');color:#1b2c50!important;text-shadow:none}
.tabletop-status{font-size:15px;line-height:1.65;text-align:center;color:#8df0bf;margin:3px 0;min-height:1.65em;max-width:780px}
.tabletop-note{font-size:15px!important;line-height:1.9!important;max-width:780px;margin:0!important}
.tabletop-host button:focus-visible{outline:3px solid #ffe477;outline-offset:3px}
.tabletop-host .is-hint{outline:3px solid #ffe477!important;outline-offset:2px}
.tabletop-tricks-board,.tabletop-pipeline-board{width:min(100%,790px);box-sizing:border-box;border:1px solid #ffcf3f66;border-radius:22px;padding:16px 20px;box-shadow:inset 0 0 0 5px #ffcf3f28,0 9px 0 #14203c,0 16px 28px #14203c40;overflow:visible}
.tabletop-tricks-board{background:radial-gradient(ellipse at 48% 35%,#3e5481,#1b2c50 76%)}
.tabletop-pipeline-board{background:linear-gradient(145deg,#1b2c50,#1b2c50 65%,#1b2c50)}
.tabletop-heading{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 13px;margin:0 0 8px;text-align:center}
.tabletop-stage-title{font-size:16px;font-weight:600;line-height:1.4;margin:0;width:100%;color:#8df0bf}
.tabletop-goal{font-size:21px;line-height:1.5;font-family:Georgia,'Noto Serif JP',serif;color:#fff5d2;letter-spacing:.04em}
.tabletop-trump,.tabletop-prediction{display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1.5;font-weight:750;padding:4px 10px;border:1px solid #ffcf3f66;border-radius:20px;color:var(--card-color,#ffe477);background:#14203c4d}
.tabletop-prediction{color:#ffb9c7}.tabletop-prediction.is-within-target{color:#8df0bf;border-color:#22c781}
.tabletop-hand-heading{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;line-height:1.5;font-weight:650;min-height:27px;color:#8df0bf;margin:2px 0 4px}
.tabletop-player-art{width:27px;height:27px;display:block}
.tabletop-hand{display:grid;grid-template-columns:repeat(var(--hand-size),minmax(44px,1fr));gap:7px;width:100%;max-width:660px;margin:auto}
.tabletop-card{position:relative;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:0;min-width:44px;min-height:100px;padding:3px 5px 7px;border:1px solid #22c78155;border-radius:13px;color:#fff5d2;background:#1b2c50;box-shadow:0 4px 0 #14203c;isolation:isolate;transition:border-color .15s,filter .15s,background-color .15s;cursor:pointer}
.tabletop-card-art{width:100%;max-width:114px;height:75px;object-fit:contain;display:block;pointer-events:none}
.tabletop-card-caption{display:flex;align-items:center;justify-content:center;gap:6px;line-height:1;color:var(--card-color);white-space:nowrap}
.tabletop-card-mark{font-size:13px;font-weight:800}.tabletop-card-number{font:700 27px/1 Georgia,serif;letter-spacing:.04em}
.tabletop-card-key{position:absolute;top:4px;left:6px;font:700 11px/1.2 system-ui;color:#ffe47777}
.tabletop-card.is-legal{border-color:#ffcf3f;background:#263c67;box-shadow:0 4px 0 #14203c,0 0 0 1px #ffe47744}
.tabletop-card.is-legal:hover{background:#3e5481;filter:brightness(1.08)}
.tabletop-card.is-legal:active{transform:translateY(2px)}
.tabletop-card:disabled{opacity:.72;cursor:default;filter:saturate(.55)}
.tabletop-card.is-used,.tabletop-opponent-card.is-used{opacity:.26!important;filter:saturate(.4)}
.tabletop-opponent-card{cursor:default;background:#1b2c50;min-height:91px;border-color:#22c7813d;box-shadow:0 3px 0 #14203c}
.tabletop-opponent-card .tabletop-card-art{height:61px}
.tabletop-opponent-card .tabletop-card-number{font-size:23px}
.tabletop-duel{display:grid;grid-template-columns:minmax(68px,1fr) minmax(110px,1.3fr) minmax(68px,1fr);align-items:center;gap:8px;max-width:540px;margin:9px auto 5px;min-height:136px}
.tabletop-played-card{display:flex;flex-direction:column;align-items:center;border-radius:18px;min-height:125px;padding:2px 3px 5px;border:1px solid #22c78133;background:#1b2c5035}
.tabletop-played-art{width:100%;max-width:132px;height:100px;object-fit:contain;display:block}
.tabletop-played-label{font-size:12px;line-height:1.5;color:#8df0bf;text-align:center}
.tabletop-played-card.is-winner{background:#15996a22;border-color:#ffcf3f;box-shadow:0 0 18px #ffcf3f22}
.tabletop-trick-center{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px}
.tabletop-round-title{font-size:12px;line-height:1.4;color:#8df0bf;letter-spacing:.06em}
.tabletop-round-result{font-size:19px;line-height:1.4;color:#fff5d2}
.tabletop-lead-text{font-size:12px;line-height:1.6;color:#8df0bf;max-width:170px}
.tabletop-trick-record{display:flex;justify-content:center;gap:6px;margin:5px 0 7px}
.tabletop-trick-badge{display:inline-flex;align-items:center;justify-content:center;min-width:27px;min-height:23px;padding:1px 7px;border-radius:20px;border:1px solid #ffcf3f66;color:#22c781;font-size:11px;line-height:1.4}
.tabletop-trick-badge.is-human-win{background:#ffcf3f;color:#1b2c50;border-color:#ffe477;font-weight:800}
.tabletop-trick-badge.is-fox-win{background:#14203c;color:#22c781}
.tabletop-inline-rule,.tabletop-ai-policy{font-size:12px;line-height:1.55;margin:10px 0 0;text-align:center;color:#8df0bf}
.tabletop-ai-policy{font-size:11px;margin-top:3px;color:#22c781}
.tabletop-queue-instruction{font-size:13px;line-height:1.6;text-align:center;color:#8df0bf;margin:8px 0 8px}
.tabletop-job-queue{display:grid;grid-template-columns:repeat(var(--job-count),minmax(44px,1fr));gap:8px}
.tabletop-job{position:relative;display:flex;align-items:center;flex-direction:column;min-width:44px;min-height:134px;padding:6px 4px 8px;border:1px solid #ffcf3f66;border-radius:13px;background:#1b2c50;color:#fff5d2;box-shadow:0 4px 0 #14203c;cursor:pointer}
.tabletop-job:hover{background:#1b2c50}.tabletop-job:disabled{opacity:.82;cursor:default}
.tabletop-job.is-selected{outline:3px solid #ffe477;outline-offset:2px;background:#263c67}
.tabletop-job-position{font-size:12px;font-weight:800;line-height:1.4;align-self:flex-start;color:var(--job-color);padding-left:4px;white-space:nowrap}
.tabletop-food-art{display:block;width:100%;height:62px;max-width:100px;object-fit:contain;pointer-events:none}
.tabletop-job-name{font-size:12px;line-height:1.5;font-weight:750;min-height:1.5em;text-align:center;white-space:normal;overflow-wrap:anywhere}
.tabletop-job-times{font-size:14px;line-height:1.6;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--job-color)}
.tabletop-duration-legend{text-align:center;font-size:12px;line-height:1.5;color:#8df0bf;margin:8px 0 9px}
.tabletop-stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tabletop-station{display:flex;align-items:center;flex-direction:column;position:relative;min-width:0;padding:8px 8px 7px;border:1px solid #22c78180;border-radius:15px;background:linear-gradient(145deg,#3e548140,#14203c30)}
.tabletop-station.is-working{border-color:#ffb73f;box-shadow:inset 0 0 24px #ffe47711}
.tabletop-station.is-finished{border-color:#22c781;background:#22c78112}
.tabletop-station-title{font-size:13px;line-height:1.5;white-space:nowrap;margin:0 0 2px;color:#ffe477}
.tabletop-station-art{width:100%;height:auto;max-height:123px;aspect-ratio:240/142;display:block;object-fit:contain;pointer-events:none}
.tabletop-station-state{font-size:12px;line-height:1.5;text-align:center;color:#ffe477;min-height:1.5em}
.tabletop-station-meter{position:relative;width:92%;height:5px;border-radius:5px;overflow:hidden;background:#14203c;margin:5px 0}
.tabletop-station-meter>span{display:block;height:100%;width:0;border-radius:5px;background:#22c781}
.tabletop-station-wait{font-size:11px;line-height:1.5;text-align:center;min-height:1.5em;color:#8df0bf}
.tabletop-schedule{margin:13px 0 5px;padding:10px 11px 7px;border-radius:13px;background:#14203cb0;border:1px solid #22c78144}
.tabletop-schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;line-height:1.5;margin:0 0 8px;color:#ffe477}
.tabletop-time-label{font-weight:800;color:#ffe477;white-space:nowrap;font-variant-numeric:tabular-nums}
.tabletop-schedule-row{display:grid;grid-template-columns:78px minmax(0,1fr);gap:6px;align-items:center;margin:5px 0}
.tabletop-track-name{font-size:11px;line-height:1.4;color:#8df0bf;white-space:nowrap}
.tabletop-track{height:24px;position:relative;border-radius:3px;background:repeating-linear-gradient(90deg,#22c78114 0,#22c78114 1px,transparent 1px,transparent 10%)}
.tabletop-task{position:absolute;top:1px;height:22px;box-sizing:border-box;display:flex;justify-content:center;align-items:center;border:1px solid #f8fbff55;border-radius:3px;font-size:11px;line-height:1;color:#14203c;font-weight:850;background:var(--job-color);opacity:.72;white-space:nowrap;overflow:hidden;min-width:1px}
.tabletop-task.is-current{opacity:1;box-shadow:0 0 0 1px #ffe477,0 0 9px #ffe47733}
.tabletop-task.is-done{opacity:.98}.tabletop-task.is-selected{outline:2px solid #fff5d2;outline-offset:1px;z-index:2}
.tabletop-deadline{position:absolute;top:-3px;bottom:-3px;border-left:2px dashed #ffb9c7;z-index:4;pointer-events:none}
.tabletop-now{position:absolute;top:-3px;bottom:-3px;width:2px;background:#fff5d2;z-index:5;pointer-events:none;box-shadow:0 0 7px #f8fbff66}
.tabletop-now[hidden]{display:none}.tabletop-schedule-key{font-size:11px;line-height:1.5;color:#22c781;margin:8px 0 0;text-align:center}
.tabletop-delivery{display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;margin-top:8px}
.tabletop-delivery-label{font-size:12px;line-height:1.5;color:#8df0bf}
.tabletop-finished-item{display:flex;align-items:center;justify-content:center;gap:1px;opacity:.22;font-size:10px;color:#ffe477;font-weight:800;transition:opacity .15s}
.tabletop-finished-item.is-delivered{opacity:1}.tabletop-finished-art{width:36px;height:36px;display:block}
@media(max-width:600px){
 .tabletop-tricks-board,.tabletop-pipeline-board{padding:11px 9px;border-radius:17px;box-shadow:inset 0 0 0 3px #ffcf3f20,0 6px 0 #14203c}
 .tabletop-heading{gap:4px 8px;margin-bottom:6px}.tabletop-stage-title{font-size:13px}.tabletop-goal{font-size:18px}.tabletop-trump,.tabletop-prediction{font-size:12px;padding:3px 7px}
 .tabletop-hand{gap:5px}.tabletop-card{min-height:94px;padding:3px 2px 7px;border-radius:9px}.tabletop-card-art{height:60px}.tabletop-card-caption{gap:3px}.tabletop-card-number{font-size:24px}.tabletop-card-mark{font-size:12px}.tabletop-card-key{font-size:10px;left:3px}
 .tabletop-opponent-card{min-height:78px}.tabletop-opponent-card .tabletop-card-art{height:48px}.tabletop-opponent-card .tabletop-card-number{font-size:21px}
 .tabletop-hand-heading{font-size:12px;gap:5px}.tabletop-player-art{width:23px;height:23px}
 .tabletop-duel{gap:5px;grid-template-columns:minmax(64px,1fr) minmax(105px,1.3fr) minmax(64px,1fr);min-height:118px;margin-top:7px}.tabletop-played-card{min-height:108px;padding:1px 2px 4px}.tabletop-played-art{height:86px}.tabletop-played-label{font-size:11px}.tabletop-round-result{font-size:16px}.tabletop-round-title{font-size:11px}.tabletop-lead-text{font-size:11px}.tabletop-trick-center{gap:5px}
 .tabletop-trick-record{gap:4px;margin:4px 0}.tabletop-trick-badge{font-size:10px;padding:1px 5px;min-width:22px}.tabletop-inline-rule{font-size:11px;margin-top:8px}.tabletop-ai-policy{font-size:10px;line-height:1.5}.tabletop-status{font-size:13px;line-height:1.6}.tabletop-host .tabletop-action{font-size:12px;min-height:46px;padding:9px 11px}
 .tabletop-job-queue{gap:5px}.tabletop-job{padding:5px 2px 6px;border-radius:9px;min-height:119px}.tabletop-job-position{font-size:11px;padding-left:2px}.tabletop-food-art{height:49px}.tabletop-job-name{font-size:11px;line-height:1.4;min-height:2.8em;display:flex;align-items:center;justify-content:center}.tabletop-job-times{font-size:12px;letter-spacing:-.3px}.tabletop-duration-legend{font-size:11px;margin:6px 0 8px}.tabletop-queue-instruction{font-size:12px}
 .tabletop-stations{gap:6px}.tabletop-station{padding:6px 3px;border-radius:11px}.tabletop-station-title{font-size:11px;letter-spacing:-.2px}.tabletop-station-state{font-size:10px;line-height:1.5;min-height:3em;display:flex;align-items:center;text-align:center}.tabletop-station-wait{font-size:10px;min-height:3em;display:flex;align-items:center;justify-content:center}.tabletop-station-art{min-height:53px}
 .tabletop-schedule{padding:8px 6px 6px;margin-top:9px}.tabletop-schedule-heading{font-size:11px}.tabletop-schedule-row{grid-template-columns:64px minmax(0,1fr);gap:4px}.tabletop-track-name{font-size:10px}.tabletop-task{font-size:10px}.tabletop-schedule-key{font-size:10px}.tabletop-delivery{gap:4px;min-height:38px;margin-top:5px}.tabletop-delivery-label{font-size:11px}.tabletop-finished-art{width:27px;height:27px}.tabletop-finished-item{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.tabletop-card,.tabletop-finished-item{transition:none}}
.tabletop-maintenance{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(135deg,#ff596d55 0 4px,#18244999 4px 8px);border-inline:1px solid #ff596d;pointer-events:none}
.tabletop-station.is-maintenance{border-color:#ff596d;background:#ff596d16}
.tabletop-station.is-maintenance .tabletop-station-state{color:#ffb1bd}
.tabletop-tricks-board .tabletop-ai-policy{font-size:14px;line-height:1.65}

@media(max-width:600px){.tabletop-tricks-board[data-large-hand="true"] .tabletop-hand{grid-template-columns:repeat(4,minmax(0,1fr));}.tabletop-tricks-board[data-large-hand="true"] .tabletop-card{min-height:70px}}
