/* Revision 0.2: the table and its controls take priority over explanatory copy. */
.check-row{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:12px}.check-row input{width:18px;height:18px;accent-color:var(--teal)}
.topbar{min-height:70px;padding:10px 24px;gap:20px}.topbar nav{gap:24px;font-size:14px}.brand b{font-size:25px}.brand-mark{font-size:34px}.prototype{font-size:12px}.topbar .brand{font-size:10px}
body[data-view=tisch] main{max-width:1500px;padding:14px 24px 24px}body[data-view=tisch] footer{display:none}
.game-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.game-heading h1{font:500 22px/1.2 'Segoe UI',Arial,sans-serif;letter-spacing:0}.game-heading .game-mode{font-size:13px;color:var(--muted);margin-left:12px}.game-heading .subtle{min-height:40px;padding:6px 12px}
.play-layout{grid-template-columns:minmax(0,1fr) 270px;gap:22px}.table-column{min-width:0}.turn-status{display:flex;align-items:center;gap:14px;padding:12px 16px;background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:9px;min-height:62px}.turn-status strong{font-size:15px;white-space:nowrap}.turn-status p{font-size:15px;line-height:1.35;margin:0}.turn-status[data-kind=error]{border-left-color:#a65038}.turn-status[data-kind=ready]{border-left-color:#b18c37}
.player-strip{padding:10px 4px;gap:12px;min-height:64px}.player-name strong{font-size:16px}.player-name span{font-size:12px}.avatar{width:36px;height:36px}.player-data{font-size:12px}.dice-pair{min-width:96px;gap:8px}.die{width:42px;height:42px;padding:7px;gap:3px;border-radius:8px}.die.used{opacity:.38}.die.pending{display:grid;place-items:center;font:22px Georgia,serif;color:#8a7a5c;background:#eee7d8;border:1px dashed #bdae91;box-shadow:none}.die.used::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;font-size:25px;color:#154938;background:#eae8de70;border-radius:8px}.dice-progress{display:flex;gap:4px;justify-content:flex-end;margin-top:5px}.dice-progress i{width:8px;height:8px;border:1px solid var(--teal);border-radius:50%}.dice-progress i.done{background:var(--teal)}.dice-area{flex-shrink:0;align-self:center}.player-strip.active{background:#e5ecdf;border-radius:9px}.player-strip.active .player-name strong::after{content:' · am Zug';font-size:12px;font-weight:500;color:var(--teal)}
.board-shell{padding:12px;gap:8px;border-radius:12px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.board{aspect-ratio:1.7;flex:1;min-width:0;width:auto;touch-action:none}.point-row{height:44%;left:1%;right:1%;grid-template-columns:repeat(6,1fr) 5.5% repeat(6,1fr)}.point{cursor:default}.point .checker{width:92%;left:4%;border-width:1px}.point.source-available{cursor:grab}.point.source-available .checker:last-child{box-shadow:0 2px 3px #0007,inset 0 0 0 2px #c89c46}.point-number{font-size:11px;line-height:18px}.point.selected{background:#ead98b7a}.point.legal-target{background:#fff1a853}.point.legal-target::after{inset:1px;border:2px dashed #a27a24;z-index:5}.point.drop-hover{background:#ffe38aa8}.point.drop-hover::after{border:3px solid #a87816;box-shadow:inset 0 0 12px #fff0ad}.point.lifted .checker:last-child,.bar.lifted .bar-human .checker:last-child{opacity:0}.board-middle{font-size:11px;letter-spacing:.4px;color:#66553e}.board-middle span:first-child{font-size:10px;letter-spacing:1.2px}.board-middle span{max-width:42%}#turn-chip{font-size:12px}.bar{width:5.4%;left:47.3%;touch-action:none;cursor:default}.bar.source-available{cursor:grab}.bar>span:first-child{font-size:10px}.bar.selected{outline:3px solid #d0aa55}.bar .checker{width:91%;left:4.5%;font-size:12px}.bar-black{position:absolute;top:20%;left:0;right:0}.bar-human{position:absolute;bottom:20%;left:0;right:0}.bar .checker.bar-ghost{opacity:0}.off-rail{min-width:38px;width:5.5%;gap:8px}.off-rail .bearoff{padding:10px 2px;justify-content:center;gap:9px;touch-action:none}.bearoff>span:first-child{font-size:10px}.bearoff strong{font-size:22px}.bearoff.legal-target{outline:2px dashed #dfbd63;outline-offset:-3px}.bearoff.drop-hover{background:#b68c3d;outline:3px solid #ffe397;outline-offset:-3px}.off-disc{opacity:0}.has-off .off-disc{opacity:1}
.action-dock{display:grid;grid-template-columns:auto minmax(140px,1fr);gap:10px;padding:12px 0 4px;background:var(--bg)}.action-dock button{min-height:49px;font-size:16px}.action-dock #primary{min-width:0}.action-dock #undo{font-size:14px;padding-left:14px;padding-right:14px}.secondary-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.secondary-actions button{font-size:13px;min-height:38px}.secondary-actions .subtle{padding:6px 10px}.table-hint{font-size:13px;color:var(--muted);margin:8px 0 0}.move-choices{margin:10px 0}.move-choices summary,.help-card summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:600}.move-choices summary::before,.help-card summary::before{content:'+';margin-right:10px;font-size:20px}.move-choices[open] summary::before,.help-card[open] summary::before{content:'−'}.choice-buttons{display:flex;gap:8px;flex-wrap:wrap}.choice-buttons button{min-height:46px;font-size:15px;background:var(--paper);border-color:#97a98f}.choice-buttons p{font-size:14px;color:var(--muted);margin:0 0 8px}.choice-buttons .choice-source{background:#e5ebdf}.choice-buttons .choice-source.selected{background:var(--teal);color:white}.help-card{padding:0 14px;margin-top:8px}.help-card p{font-size:14px;margin:0 0 12px}.help-card h3{margin:12px 0}.table-settings{padding:18px}.table-settings summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;font-size:17px;font-weight:600;min-height:38px}.table-settings summary::after{content:'+';font-size:22px}.table-settings[open]>summary::after{content:'−'}.table-settings label{font-size:14px}.table-settings .segmented{margin-top:16px;display:grid;grid-template-columns:1fr;gap:4px;background:transparent;padding:0}.table-settings .segmented button{font-size:14px;text-align:left;padding:10px 12px;border:1px solid var(--line);min-height:42px}.table-settings .segmented button.selected{background:#e5eddd;border-color:#93a581}.table-settings .small{font-size:12px;min-height:0;margin:12px 0}.table-settings .field-label{margin-top:18px}.table-settings select{font-size:14px}.activity-panel{padding:18px}.activity-panel h2{font:600 17px 'Segoe UI',Arial,sans-serif}.move-log{max-height:330px;font-size:14px;margin:10px 0 0}.move-log strong{font-size:12px}.move-log li{padding:10px 0}.bot-comment{font:14px/1.45 'Segoe UI',Arial,sans-serif;margin:12px 0;padding-bottom:12px;min-height:0}.edition-note{display:none}.side-panel .panel{margin-bottom:16px}
.drag-ghost,.moving-stone{position:fixed;margin:0;left:0;top:0;border:1px solid #998666;border-radius:50%;z-index:9999;pointer-events:none;display:grid;place-items:center;box-shadow:0 8px 20px #21180b66,inset 0 0 0 3px #fff4d555;will-change:transform;transform:none;transition:none}.drag-ghost{background:radial-gradient(circle at 30% 25%,#fff8e5,#eee0bd 67%,#b49b73);font-size:12px;color:#5b492d}.moving-stone{background:radial-gradient(circle at 30% 25%,#62867b,#28453c 67%,#112c25);border-color:#173f34}.drag-ghost.returning{transition:transform .18s ease,opacity .18s ease}.is-dragging,.is-dragging *{cursor:grabbing!important;user-select:none!important}.drop-caption{position:fixed;z-index:10000;pointer-events:none;background:#284b3f;color:#fff8e7;padding:5px 10px;border-radius:5px;font-size:13px;white-space:nowrap}.point.move-flash{background:#ffe48c9c}.bot-move-origin .checker:last-child{opacity:0}
@media(max-width:1050px){.play-layout{grid-template-columns:minmax(0,1fr) 220px;gap:16px}.topbar nav{gap:17px}.table-settings,.activity-panel{padding:15px}.board{aspect-ratio:1.5}.game-heading h1{font-size:20px}.game-heading .game-mode{font-size:12px}}
@media(max-width:850px){body[data-view=tisch] main{padding:10px 14px 24px}.topbar{padding:9px 16px;min-height:58px}.topbar nav{order:3;width:100%;margin:0 0 -9px;justify-content:space-between;font-size:13px;gap:8px}.topbar nav a{min-height:37px}.brand b{font-size:21px}.brand-mark{font-size:29px}.play-layout{display:block}.side-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.side-panel .panel{margin-bottom:0}.table-settings .segmented{grid-template-columns:1fr}.board{aspect-ratio:1.65}.game-heading{margin-bottom:9px}.turn-status{min-height:56px}.player-strip{min-height:58px}.player-name span{font-size:12px}.table-hint{font-size:13px}.action-dock{position:sticky;bottom:0;z-index:20;padding:8px 0 max(8px,env(safe-area-inset-bottom));box-shadow:0 -5px 12px var(--bg)}.game-heading h1{font-size:18px}.game-heading .game-mode{display:none}}
@media(max-width:540px){.topbar{padding:8px 12px;gap:3px 12px}.topbar nav{margin-bottom:-8px;font-size:12px}.brand{gap:7px;letter-spacing:1px}.topbar .brand{font-size:9px}.brand b{font-size:21px}.prototype{font-size:11px;padding:4px 8px}.game-heading{gap:8px;margin-bottom:8px}.game-heading .subtle{font-size:13px;min-height:36px}.game-heading h1{font-size:17px}body[data-view=tisch] main{padding:8px 8px 18px}.turn-status{display:block;padding:9px 11px;min-height:62px}.turn-status strong{font-size:14px;display:block;line-height:1.25}.turn-status p{font-size:14px;line-height:1.3;margin-top:3px}.player-strip{padding:8px 3px;gap:7px;min-height:54px}.avatar{width:29px;height:29px;font-size:12px}.human-avatar{font-size:10px}.player-name strong{font-size:14px}.player-name span{font-size:11px}.player-name{min-width:0}.player-data{font-size:11px}.player-data strong{font-size:10px}.player-strip.active .player-name strong::after{display:none}.dice-pair{min-width:80px;gap:6px}.die{width:36px;height:36px;padding:6px;gap:2px}.dice-progress{margin-top:3px;gap:3px}.dice-progress i{width:6px;height:6px}.board-shell{padding:7px;gap:5px;border-radius:9px}.board{aspect-ratio:1.3}.point-row{height:44%;left:1%;right:1%;grid-template-columns:repeat(6,1fr) 5.5% repeat(6,1fr)}.point-number{font-size:9px;line-height:16px}.point::before{inset:16px 1% 0}.point.bottom-point::before{inset:0 1% 16px}.point .checker{width:96%;left:2%;font-size:10px}.checker-stack{height:calc(100% - 18px)}.bar{left:47.3%;width:5.4%}.bar>span:first-child{font-size:8px;letter-spacing:0}.bar .checker{font-size:9px}.board-middle{font-size:10px;top:44%;height:12%;gap:9%}.board-middle span:first-child{font-size:8px;letter-spacing:.1px}#turn-chip{font-size:10px}.off-rail{min-width:26px;width:7%;gap:5px}.off-rail .bearoff{padding:6px 1px;gap:8px}.bearoff>span:first-child{font-size:8px}.bearoff strong{font-size:18px}.action-dock{padding-top:7px;gap:8px}.action-dock button{min-height:46px;font-size:15px}.action-dock #undo{font-size:13px;padding:8px 11px}.secondary-actions{margin-top:2px}.secondary-actions button{font-size:12px}.table-hint{font-size:12px;margin:5px 0 0}.side-panel{display:block;margin-top:12px}.side-panel .panel{margin-bottom:12px}.table-settings .segmented{grid-template-columns:repeat(3,1fr);gap:5px}.table-settings .segmented button{padding:8px 5px;text-align:center;font-size:13px}.table-settings .small{font-size:12px}.move-log{max-height:200px}.help-card summary,.move-choices summary{font-size:14px}.game-heading .subtle{padding:5px 10px}}
@media(max-width:370px){.player-data{display:none}.player-strip{gap:7px}.dice-pair{min-width:76px}.die{width:34px;height:34px}.board{aspect-ratio:1.17}.topbar nav{font-size:11px}.turn-status{min-height:67px}.action-dock #undo{padding:7px 9px}.player-name span{font-size:10px}.point-number{font-size:8px}.board-middle span:first-child{font-size:7px}.side-panel .segmented button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.drag-ghost.returning{transition:none}.moving-stone{transition:none!important}}
@media(min-width:851px){.play-layout{display:flex;align-items:flex-start;justify-content:center}.table-column{flex:1;max-width:max(420px,calc((100dvh - 440px)*1.7 + 85px))}.side-panel{width:270px;flex-shrink:0}.board{aspect-ratio:1.7}}
@media(min-width:851px) and (max-width:1050px){.side-panel{width:220px}}

/* Full-width landscape table: shared dice/action row, board, then status. */
.landscape-toolbar,.undo-icon{display:none}
.board-viewport{width:100%;min-width:0;overflow:auto;aspect-ratio:1.7;overscroll-behavior:contain;border-radius:10px}
.board-viewport .board-shell{width:calc(100% * var(--board-zoom,1));height:calc(100% * var(--board-zoom,1));min-height:0}
.board-viewport .board{height:100%;aspect-ratio:auto}
.board-shell,.board,.point,.bar,.bearoff{touch-action:pinch-zoom}
.board-view-tools{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:6px 0;font-size:13px}
.board-view-tools button{min-height:44px;padding:6px 10px;font-size:13px}
.board-view-tools button[aria-pressed=true]{background:var(--teal);color:white}
.board-view-tools[hidden],.drop-caption[hidden],.move-choices[hidden]{display:none!important}
body[data-panning=true] .board-viewport{outline:2px solid var(--teal);outline-offset:2px}
body[data-panning=true] .board-shell,body[data-panning=true] .board-shell *{touch-action:pan-x pan-y pinch-zoom;cursor:all-scroll}
.rules-intro{max-width:800px;font-size:17px;line-height:1.6}
.rules-list{max-width:900px;margin:24px 0}
.rules-list details{background:var(--paper);border:1px solid var(--line);border-radius:10px;margin-bottom:10px;padding:0 18px}
.rules-list summary{cursor:pointer;padding:16px 0;min-height:50px;font-weight:600}
.rules-list details p,.rules-list details li{font-size:16px;line-height:1.65}
.rules-list details p{margin:0 0 16px}
.rules-links{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.rules-links a{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.theme-swatch.classic{border-color:#603a20;background:repeating-linear-gradient(3deg,#dcb57b 0px,#eed1a0 3px,#e1bd85 6px)}
.theme-swatch.classic i{background:#683c25}.theme-swatch.classic i:nth-child(2){background:#b47942}
body[data-theme=classic]{--bg:#eee4d2;--paper:#fff8e9;--wood:#754727;--wood-dark:#3b2519;--felt:#e3be85;--point-a:#623c29;--point-b:#b87940;--white:#edd5ab;--black:#603c27;--teal:#654124;--muted:#77644e;--line:#d6c6ad}
body[data-theme=classic] .board-shell{background:repeating-linear-gradient(3deg,#ffffff08 0 1px,#00000009 2px 3px,transparent 5px 9px),linear-gradient(100deg,#3a2419,#875333 16%,#59341e 50%,#94623b 80%,#382218);box-shadow:inset 0 0 0 1px #25170d,inset 0 0 0 4px #ddae6f26,0 5px 15px #38241635}
body[data-theme=classic] .board{background:repeating-linear-gradient(2deg,#fff3d811 0 1px,#9b622214 2px 3px,transparent 4px 9px),linear-gradient(95deg,#ebcf9c,#e3bc80 48%,#f0d5a5);border-color:#4d2f1c}
body[data-theme=classic] .point::before{background:repeating-linear-gradient(88deg,#ffffff0b 0 2px,#00000009 3px 4px,transparent 5px 11px),var(--point-a)}
body[data-theme=classic] .point:nth-child(even)::before{background:repeating-linear-gradient(88deg,#ffffff0b 0 2px,#00000009 3px 4px,transparent 5px 11px),var(--point-b)}
body[data-theme=classic] .bar{background:repeating-linear-gradient(90deg,#ffe3a911 0 1px,transparent 2px 5px),linear-gradient(90deg,#56341e,#9b693e 45%,#54321d)}
body[data-theme=classic] .player-strip.active{background:#e9d8b9;border-color:#997443}
body[data-theme=classic] .die{border-color:#b19269}
@media(max-width:850px){.topbar nav{flex-wrap:wrap}.board-viewport{aspect-ratio:1.65}}
@media(max-width:540px){.board-viewport{aspect-ratio:1.3}.theme-grid{grid-template-columns:1fr}.rules-list details{padding:0 12px}}
@media(max-width:370px){.board-viewport{aspect-ratio:1.17}}
@media(orientation:landscape) and (max-height:600px){
  body[data-view=tisch]:not([data-mobile-view=page]) .landscape-toolbar{display:flex;align-items:center;justify-content:flex-end;position:fixed;top:env(safe-area-inset-top);right:max(6px,env(safe-area-inset-right));z-index:32;height:52px;background:var(--bg)}
  .landscape-toolbar>span{display:none}
  .landscape-toolbar button{min-height:44px;padding:6px 10px;font-size:13px;width:72px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open){overflow:hidden}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .topbar,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .game-heading,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .side-panel,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .secondary-actions,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .table-hint,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .move-choices,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .help-card{display:none}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) main{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:env(safe-area-inset-top) max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) #view-tisch,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .play-layout{display:block;width:100%;height:100%;min-height:0}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .table-column{display:grid;grid-template-columns:138px 104px minmax(0,1fr) 178px 72px;grid-template-rows:52px minmax(0,1fr) 32px;gap:3px 6px;width:100%;height:100%;min-height:0;max-width:none}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open)[data-board-zoomed=true] .table-column{grid-template-rows:52px minmax(0,1fr) 46px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .board-viewport{grid-column:1/-1;grid-row:2;min-width:0;min-height:0;height:100%;aspect-ratio:auto}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .board-shell{padding:5px;gap:5px;border-radius:8px;box-shadow:inset 0 0 0 1px #30201680}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .board{--fit-stack:1}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point-row{height:44%}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point-number{font-size:10px;line-height:16px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point::before{inset:16px 2% 0}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point.bottom-point::before{inset:0 2% 16px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .checker-stack{height:calc(100% - 18px)}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point .checker{width:min(94%,var(--checker-limit,100px));left:0;right:0;margin-inline:auto}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point:not(.bottom-point) .checker{top:var(--stack-slot)!important;transform:translateY(calc(-1 * var(--stack-slot)))}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .point.bottom-point .checker{bottom:var(--stack-slot)!important;transform:translateY(var(--stack-slot))}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .off-rail{width:5%;min-width:28px;gap:5px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .off-rail .bearoff{padding:3px 1px;gap:3px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .bearoff strong{font-size:18px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .bearoff>span:first-child{font-size:9px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .off-disc{display:none}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-strip{grid-row:1;display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:0;height:46px;align-self:center;gap:4px;padding:2px 5px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) #bot-strip{grid-column:1}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) #human-strip{grid-column:2}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-strip.active{background:#dcebdc;border-color:#679877}
  body[data-view=tisch][data-theme=classic]:not([data-mobile-view=page]):not(.table-menu-open) .player-strip.active{background:#e9d8b9;border-color:#997443}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .avatar,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-data,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-name span,
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-strip.active .player-name strong::after{display:none}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-name strong{font-size:12px;line-height:1.2}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .dice-pair{min-width:0;gap:4px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .die{width:30px;height:30px;padding:5px;gap:2px;border-radius:6px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .dice-progress{height:4px;margin-top:2px;gap:3px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .dice-progress i{width:4px;height:4px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .turn-status{grid-column:1/-1;grid-row:3;display:flex;min-width:0;min-height:0;padding:1px 7px;border-radius:4px;overflow:auto;overscroll-behavior:contain}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .turn-status strong{display:none}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .turn-status p{font-size:12px;line-height:1.25;margin:0}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open)[data-board-zoomed=true] .turn-status{grid-column:1/4}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .board-view-tools{grid-column:4/-1;grid-row:3;margin:0;gap:4px;font-size:11px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .board-view-tools button{font-size:12px;padding:5px 8px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .action-dock{grid-column:4;grid-row:1;align-self:center;position:static;display:grid;grid-template-columns:44px minmax(0,1fr);gap:5px;margin:0;padding:0;box-shadow:none;min-width:0}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .action-dock button{min-height:44px;width:100%;padding:4px;font-size:13px;line-height:1.2}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .action-dock #undo{padding:0}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .undo-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .undo-icon{display:inline;font-size:25px}

}
@media(orientation:landscape) and (max-height:600px) and (max-width:560px){
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .table-column{grid-template-columns:124px 91px minmax(0,1fr) 156px 60px;column-gap:3px}
  .landscape-toolbar button{width:60px;padding-inline:4px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .die{width:26px;height:26px;padding:4px}
  body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .player-name strong{font-size:11px}
}

.stack-count{display:none}.stack-count.many{display:inline}
.install-help summary{font-size:14px}.install-help[open]>summary::after{content:"−"}
@media(orientation:landscape) and (max-height:320px){body:not([data-mobile-view=page]) .stack-count{display:grid;place-items:center;min-width:18px;min-height:18px;font-size:12px;font-weight:700;border-radius:50%;background:#fff2cfde;color:#51381e;box-shadow:0 0 0 1px #6d4a2866}}

/* The table stays quiet; secondary actions live in the menu pill. */
body[data-view=tisch] .topbar{display:none}
body[data-view=tisch] .landscape-toolbar{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:0 auto;padding:10px 18px;background:var(--bg)}
body[data-view=tisch] .landscape-toolbar>span{display:block;color:var(--teal);font-size:14px;letter-spacing:.02em}
body[data-view=tisch] .landscape-toolbar>span b{font-family:Georgia,serif;font-size:21px;font-weight:400}
#table-menu-toggle,.pill{border-radius:999px;min-height:44px;font-size:13px;white-space:nowrap;background:var(--paper);border:1px solid var(--line)}
#table-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 2px 8px #57371610}
body[data-view=tisch] main{max-width:1100px;padding-top:0}
.hint-pill{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:5px 10px;margin:5px 0 0;border-radius:999px;border:1px solid var(--line);background:var(--paper);color:var(--teal);font-size:12px;line-height:1;white-space:nowrap;justify-self:start}
.hint-pill b{font-size:11px;min-width:20px;font-weight:600}
.switch-track{width:28px;height:17px;border-radius:99px;background:#a99d8b;position:relative;box-shadow:inset 0 0 0 1px #0001;flex-shrink:0}
.switch-track::after{content:'';position:absolute;width:13px;height:13px;background:#fff9ec;border-radius:50%;top:2px;left:2px;box-shadow:0 1px 3px #0003;transition:transform .16s}
.hint-pill[aria-checked=true] .switch-track{background:var(--teal)}
.hint-pill[aria-checked=true] .switch-track::after{transform:translateX(11px)}
.table-menu{width:min(740px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d3c0a1;border-radius:20px;background:var(--bg);color:var(--ink);box-shadow:0 24px 80px #1d140950;overflow:auto;overscroll-behavior:contain}
.table-menu::backdrop{background:#23180d70;backdrop-filter:blur(3px)}
.menu-heading{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px 16px;background:var(--bg);border-bottom:1px solid var(--line)}
.menu-heading h2{font:400 26px/1.1 Georgia,serif;margin:5px 0 0}.menu-heading .eyebrow{font-size:10px}
.menu-heading button{flex-shrink:0;padding:8px 14px}
.menu-content{padding:20px 24px 24px}
.menu-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px}
.menu-links a{display:flex;align-items:center;gap:12px;padding:18px 14px;border:1px solid var(--line);border-radius:13px;background:var(--paper);color:inherit;text-decoration:none}
.menu-links a:hover{border-color:var(--teal)}
.menu-links a>span:last-child{margin-left:auto;color:var(--teal)}
.menu-links strong{display:block;font:400 18px/1.15 Georgia,serif;color:var(--teal)}
.menu-links small{display:block;font-size:11px;color:var(--muted);line-height:1.4;margin-top:6px}
.menu-icon{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;background:#dcc8a747;border-radius:50%;font:23px Georgia,serif;color:var(--teal)}
.menu-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.menu-shortcuts>*{font-size:12px;min-height:42px;padding:8px 12px}
body[data-view=tisch] .table-menu .side-panel{display:block;width:auto;margin:0}
.table-menu .panel{padding:14px 16px;margin-bottom:12px;border-radius:12px;box-shadow:none}
.table-menu .table-settings .segmented{grid-template-columns:repeat(3,minmax(0,1fr))}.table-menu .table-settings .segmented button{text-align:center}
.table-menu .table-settings>summary{font-size:15px;min-height:36px}
.table-menu .activity-panel{display:block}.table-menu .activity-panel>summary{cursor:pointer;font-size:15px;font-weight:600;min-height:36px;display:flex;align-items:center;justify-content:space-between}.table-menu .activity-panel>summary::after{content:"+"}.table-menu .activity-panel[open]>summary::after{content:"−"}
.table-menu .move-choices{margin:10px 0 0}
.table-menu .menu-more{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}
.menu-more summary{font-size:13px;min-height:40px;cursor:pointer;display:flex;align-items:center;color:var(--muted)}
.menu-more a{font-size:13px;display:inline-block;margin:6px 20px 0 0}
.reading-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 26px}
.reading-tabs a{padding:10px 18px;border:1px solid var(--line);border-radius:999px;min-height:44px;background:var(--paper);color:var(--teal);font-size:14px;text-decoration:none}
.reading-tabs a[aria-current=page]{background:var(--teal);border-color:var(--teal);color:#fff8e8}
.reading-page{max-width:980px;margin:0 auto}.reading-page .page-heading{margin-bottom:18px}.reading-page h1{font-size:clamp(31px,5vw,48px)}
body:is([data-view=regeln],[data-view=anleitung]) .topbar nav{display:none}
.reading-page .rules-intro{font-size:17px;max-width:760px;margin:0 0 22px}
.rules-facts{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.rules-facts span{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:13px}.rules-facts b{font-size:17px;margin-right:6px;color:var(--teal)}
.reading-page .rules-list{margin-top:18px}.reading-page .rules-list details{padding:0 20px}.reading-page .rules-list summary{padding:16px 0}
.reading-page .rules-list details p{max-width:780px}.rules-source{font-size:13px;color:var(--muted);line-height:1.65;margin-top:24px}.rules-source a{text-decoration:underline}
.rule-example{padding:12px 15px;background:#eee1c980;border-radius:8px;border-left:3px solid #ac8446}
@media(min-width:851px){body[data-view=tisch] .table-column{max-width:min(940px,calc((100dvh - 330px)*1.7 + 80px))}}
@media(max-width:540px){.table-menu{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);border-radius:16px}.menu-heading{padding:16px 14px;gap:8px;align-items:flex-start}.menu-heading h2{font-size:23px}.menu-heading .eyebrow{font-size:9px}.menu-heading button{font-size:11px;padding:8px 10px}.menu-content{padding:14px}.menu-links{grid-template-columns:1fr;gap:9px}.menu-links a{padding:15px}.menu-links strong{font-size:20px}.menu-links small{font-size:12px}.menu-shortcuts>*{font-size:11px;padding:7px 9px}.reading-tabs a{font-size:12px;padding:10px 13px}.reading-page .rules-list details{padding:0 14px}.reading-page .rules-intro{font-size:16px}}
@media(orientation:landscape) and (max-height:600px){
 body[data-view=tisch]:not([data-mobile-view=page]) .landscape-toolbar{max-width:none;margin:0;padding:0}
 body[data-view=tisch]:not([data-mobile-view=page]) .landscape-toolbar>span{display:none}
 body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .table-column{grid-template-rows:52px minmax(0,1fr) 44px}
 body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .hint-pill{grid-column:1;grid-row:3;margin:0;align-self:center;justify-self:stretch;padding:5px 8px}
 body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .turn-status{grid-column:2/-1;background:transparent;border:0;padding:1px 6px}
 body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open)[data-board-zoomed=true] .turn-status{grid-column:2/4}
 body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .table-menu .side-panel{display:block}
 body[data-view=tisch]:not([data-mobile-view=page]):not(.table-menu-open) .table-menu .move-choices:not([hidden]){display:block}
 .table-menu{max-height:calc(100dvh - 12px)}.menu-heading{padding:12px 18px}.menu-heading h2{font-size:23px}.menu-content{padding:14px 18px}.menu-links a{padding:13px}.menu-links strong{font-size:18px}
}
