.oca-shell{width:min(1380px,100%);margin:auto;padding:20px 16px 28px;box-sizing:border-box}.oca-shell .home-panel{margin:0;background:none;border:0;overflow:visible}.oca-shell .tabs{margin:0 0 18px;border:1px solid #34495f;border-radius:12px;overflow:hidden}.oca-shell .tab-pane{padding:0}.oca-shell form:not(.setup-grid){display:grid;gap:10px}.oca-profile-art{margin:auto;text-align:center;font-size:58px;padding:24px 0}.oca-profile-art span{display:inline-block;transform:rotate(15deg);font-size:42px}.oca-shell .rules-opt{display:flex;align-items:flex-start;gap:10px}.oca-shell .rules-opt input{flex:none;margin-top:4px}.oca-matchbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.oca-matchbar h3{margin:5px 0;font-size:1.3rem}.oca-matchbar p{margin:0}.oca-eyebrow{font-size:.67rem;letter-spacing:.16em;color:#d8bf86;font-weight:700}.oca-actions{display:flex;gap:8px;flex-wrap:wrap}.oca-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.oca-table{min-width:0;padding:14px;background:linear-gradient(135deg,#76563a,#392b24);border:1px solid #b99359;border-radius:22px;box-shadow:0 12px 30px #0004,inset 0 0 0 4px #432f25}.oca-board-scroll{overflow:auto;border-radius:12px;background:#f1e1bb;scrollbar-color:#9d7846 #e8d2a5}.oca-board-scroll svg{display:block;width:100%;height:auto}.oca-board-scroll.oca-zoom svg{min-width:900px}.oca-board-key{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;color:#f9e8c5;font-size:.75rem;padding:14px 8px 5px}.oca-cell-description{min-height:1.5em;color:#f9e8c5;text-align:center;font-size:.8rem;margin:8px 0 0}.oca-sidebar{display:grid;gap:15px}.oca-control,.oca-panel{background:linear-gradient(140deg,#203446,#14222f);border:1px solid #3d5266;border-radius:16px;padding:18px}.oca-control{text-align:center}.oca-dice{display:flex;justify-content:center;gap:12px;margin:18px 0}.oca-dice .roll{display:flex;justify-content:center;gap:12px;margin:0}.oca-dice .die{width:64px;height:64px}.oca-control p{font-size:.8rem;color:#d1dce6;line-height:1.5;min-height:3em;margin-bottom:0}.oca-panel h3{font-size:.95rem;margin:0 0 14px}.oca-panel ol{list-style:none;margin:0;padding:0;display:grid;gap:10px}.oca-panel li{font-size:.8rem;line-height:1.4}.oca-player-row{display:flex;align-items:center;gap:9px;padding:9px 7px;border:1px solid transparent;border-radius:10px}.oca-player-row.active{background:#ffffff09;border-color:#d5bb76}.oca-player-row.out{opacity:.5}.oca-dot{width:13px;height:13px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 2px #ffffff55}.oca-player-row strong{flex:1;overflow-wrap:anywhere}.oca-log{max-height:240px;overflow:auto;color:#b6c8d5}.oca-log li{border-bottom:1px solid #ffffff10;padding-bottom:8px}.oca-log strong{color:#e3e8e9}.oca-rules{margin-top:22px;padding:18px;border:1px solid #34495f;border-radius:14px;color:var(--muted);font-size:.85rem;line-height:1.7}.oca-rules summary{cursor:pointer;color:var(--text);font-weight:600}.oca-win{max-width:min(420px,85vw);text-align:center;padding:32px;border:1px solid #b69554;border-radius:20px;color:var(--text);background:#182a39}.oca-win::backdrop{background:#050c16bb;backdrop-filter:blur(5px)}.oca-win-cup{font-size:68px}.oca-win .btn{margin:8px}.oca-tile{cursor:pointer;outline:none}.oca-tile:focus-visible rect{stroke:#144ea1;stroke-width:4}.oca-token{pointer-events:none;filter:drop-shadow(0 3px 2px #37281866)}.oca-route{pointer-events:none}.oca-selected rect{stroke:#245a83;stroke-width:3}.oca-token text{font:bold 11px system-ui;fill:#fff;paint-order:stroke;stroke:#0008;stroke-width:2px}@media(max-width:950px){.oca-layout{grid-template-columns:minmax(0,1fr)}.oca-sidebar{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.oca-control,.oca-panel{padding:14px}.oca-dice .die{width:50px;height:50px}.oca-matchbar{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.oca-shell{padding:12px 10px 22px}.oca-table{padding:6px;border-radius:14px}.oca-sidebar{grid-template-columns:1fr 1fr}.oca-sidebar .oca-control{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:8px 18px}.oca-control .oca-eyebrow,.oca-control p{grid-column:1/-1}.oca-control p{min-height:0}.oca-dice{margin:4px}.oca-board-key{font-size:.65rem;gap:7px 12px}.oca-cell-description{font-size:.72rem}.oca-player-row{padding:5px 0;gap:5px}.oca-panel{padding:12px}.oca-player-row strong{font-size:.7rem}.oca-actions .btn{font-size:.72rem}}

/* One depth-tested WebGL scene, with the accessible SVG retained as fallback. */
.oca-board-scroll{position:relative;background:#172b25}.oca-board-scroll.oca-three>svg{opacity:0}.oca-scene{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:12px}.oca-board-scroll.oca-zoom>svg{min-width:900px}.oca-board-scroll.oca-zoom>.oca-scene{width:900px;max-width:none}.oca-board-scroll.oca-three:has(.oca-tile:focus-visible){outline:2px solid var(--accent);outline-offset:2px}

.oca-roster{list-style:none;padding:0;margin:0;display:grid;gap:7px}.oca-roster li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border:1px solid #34495f;border-radius:8px}.oca-roster .btn{margin:0;padding:3px 10px}#oca-count-field{display:grid;gap:10px}#oca-count-field h4{margin:0}

#oca-coin-panel{padding:12px;border:1px solid #9a8456;border-radius:12px;background:#111e29}#oca-coin-panel h4{font-size:.86rem;margin:0 0 12px}#oca-coin-choices{display:flex;justify-content:center;gap:10px}.oca-coin{width:58px;height:58px;margin:12px auto;border:4px double #ffe5a1;border-radius:50%;background:radial-gradient(circle at 32% 25%,#ffe5a1,#c68e2c);box-shadow:3px 2px 0 #805922;display:grid;place-items:center;font:bold 26px Georgia;color:#6b4717}.oca-coin-flip{animation:oca-coin-flip .85s cubic-bezier(.2,.8,.3,1) both}@keyframes oca-coin-flip{0%{transform:translateY(0) rotateY(0)}45%{transform:translateY(-22px) rotateY(540deg)}100%{transform:translateY(0) rotateY(1080deg)}}@media(prefers-reduced-motion:reduce){.oca-coin-flip{animation:none}}

.oca-free-camera{touch-action:none;cursor:grab}.oca-free-camera:active{cursor:grabbing}.oca-actions [aria-pressed=true]{border-color:var(--accent);background:#174454}.oca-event-banner{position:relative;width:100%;height:var(--oca-dice-card-height,220px);min-height:180px;box-sizing:border-box;min-width:0;display:flex;flex-direction:column;padding:20px 24px;border:1px solid #c8aa65;border-radius:12px;background:linear-gradient(135deg,#223d4ef5,#172635f5);box-shadow:0 12px 45px #0008;text-align:center;overflow-wrap:anywhere;}.oca-event-banner strong{display:block;flex-shrink:0;max-height:4.5em;overflow-y:auto;font-size:1.2rem;color:#ffe1a0}.oca-event-banner>span{display:block;flex:1;min-height:0;overflow-y:auto;margin-top:9px;font-size:.85rem;line-height:1.5}.oca-skip-panel{flex-shrink:0;min-height:66px;margin-top:12px}.oca-skip-panel[hidden]{display:none}.oca-skip-panel progress{display:block;width:100%;height:12px;margin:0 0 12px;accent-color:var(--accent)}.oca-skip-panel .btn{min-width:110px;min-height:42px}

/* Desktop play keeps dice, players and history beside the map. */
.oca-shell{width:min(1680px,100%)}.oca-layout{grid-template-columns:minmax(0,1fr) 260px}.oca-sidebar{grid-template-columns:1fr}
@media(max-width:950px){.oca-layout{grid-template-columns:minmax(0,1fr)}.oca-sidebar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.oca-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}}


.oca-sidebar .oca-rules{margin-top:0;min-width:0;overflow-wrap:anywhere}.oca-sidebar>.oca-rules,.oca-sidebar>#oca-surrender{grid-column:1/-1}

.oca-matchbar{justify-content:flex-end}.oca-statusbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;margin-bottom:12px;border-radius:10px;padding:12px 16px;background:linear-gradient(180deg,#10251ff2,#10251fd9);border-bottom:1px solid #c6b37855;color:#f8eedb;overflow-wrap:anywhere}.oca-statusbar h3{margin:0;font-size:1rem;line-height:1.35}.oca-statusbar p{margin:4px 0 0;color:#d6e3dc;font-size:.73rem;line-height:1.4}@media(max-width:600px){.oca-statusbar{padding:9px 11px}.oca-statusbar h3{font-size:.85rem}.oca-statusbar p{font-size:.65rem}}

.oca-statusbar .oca-cell-description{min-height:0;text-align:left;color:#f9e8c5;border-top:1px solid #c6b37833;padding-top:5px;margin-top:6px}

.oca-board-scroll{width:100%;margin-inline:auto}

.oca-player-row{padding:0}.oca-player-button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 7px;color:inherit;background:transparent;border:1px solid transparent;border-radius:9px;font:inherit;text-align:left;cursor:pointer}.oca-player-button[aria-pressed=true]{background:#ffe5991c;border-color:#ffe599}.oca-player-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.oca-player-goose{width:32px;height:32px;flex:none}.oca-player-button>span:last-child{flex:none}@media(max-width:600px){.oca-player-button{gap:4px;padding:5px 2px}.oca-player-goose{width:25px;height:25px}}

.oca-player-highlight ellipse{stroke:#ffe16a;stroke-width:5}

.oca-statusbar .oca-opening-guide{padding:0;gap:8px;font-size:.72rem}.oca-match-status{min-width:0}@media(max-width:1100px){.oca-statusbar{grid-template-columns:1fr}.oca-statusbar .oca-opening-guide{justify-content:flex-start}}@media(max-width:600px){.oca-statusbar .oca-opening-guide{justify-content:center}}

/* Keep the complete framed board visible; all information lives in the scrollable sidebar. */
.oca-table{box-sizing:border-box;width:82%;max-width:calc((100dvh - 214px)*960/814);justify-self:center}
.oca-sidebar{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 210px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:6px;scrollbar-color:#6b899a #14222f}
.oca-sidebar>*{flex-shrink:0}
.oca-sidebar .oca-statusbar{display:block;margin:0;border:1px solid #3d5266;border-radius:16px;background:linear-gradient(140deg,#203446,#14222f)}
@media(max-width:950px){.oca-table{max-width:calc((100dvh - 190px)*960/814)}.oca-sidebar{max-height:60dvh}}

.oca-sidebar::-webkit-scrollbar{width:8px}.oca-sidebar::-webkit-scrollbar-track{background:#14222f;border-radius:8px}.oca-sidebar::-webkit-scrollbar-thumb{background:#6b899a;border-radius:8px}

.oca-shell{width:100%;max-width:none}
.oca-layout{height:calc(100dvh - 210px);grid-template-columns:minmax(0,1fr) 280px}
.oca-table{width:100%;height:100%;max-width:none;display:grid;grid-template-rows:minmax(0,1fr)}
.oca-board-scroll{height:100%;overflow:hidden}
.oca-board-scroll>svg{position:absolute;inset:0;width:100%;height:100%}
.oca-sidebar{max-height:100%;height:100%}
@media(max-width:950px){.oca-layout{height:auto;grid-template-columns:minmax(0,1fr)}.oca-table{height:max(260px,calc(100dvh - 200px));max-width:none}.oca-sidebar{height:auto;max-height:60dvh}}

.oca-test-dice{grid-column:1/-1;border:1px solid var(--border,#79684a);border-radius:10px;margin:12px 0;padding:10px;min-width:0}.oca-test-dice legend{font-size:.8rem;font-weight:700}.oca-test-dice>label{display:flex;gap:8px;align-items:center}.oca-test-dice input[type=checkbox]{width:auto}.oca-test-values{display:flex;gap:12px;margin-top:10px}.oca-test-values label{flex:1;min-width:0}.oca-test-values input{display:block;width:100%;box-sizing:border-box}

.oca-coin-neutral{opacity:.65;box-shadow:none}.oca-coin-neutral[aria-label]{color:#6b4717}

/* Visible before synchronous geometry generation; removed after the first textured frame. */
.oca-map-loader{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#17372c;color:#fff3d9;text-align:center;padding:20px;border-radius:12px;box-sizing:border-box}.oca-map-loader[hidden]{display:none}.oca-map-loader>span:last-child{font-size:.85rem;color:#d0d8ba}.oca-map-spinner{width:36px;height:36px;border:4px solid #fff3d92b;border-top-color:#efc56c;border-radius:50%;animation:oca-map-spin .8s linear infinite}@keyframes oca-map-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.oca-map-spinner{animation:none}}

.oca-dice-used .oca-special-fill{animation:oca-dice-used .4s ease-in-out 2}@keyframes oca-dice-used{0%,100%{fill:#bbec91}50%{fill:#28713d}}@media(prefers-reduced-motion:reduce){.oca-dice-used .oca-special-fill{animation:none;fill:#bbec91}}

.oca-control .oca-turn{display:flex;flex-direction:column;align-items:center;gap:6px;grid-column:1/-1}.oca-turn>strong{font-size:1.25rem;line-height:1.3;overflow-wrap:anywhere;max-width:100%;color:#ffe1a0}

/* Keep the event card in its allocated sidebar space, including skip controls. */
.oca-event-banner{flex-shrink:0}.oca-event-banner>strong{flex-shrink:0}.oca-skip-panel{flex-shrink:0;min-height:76px}.oca-skip-panel .btn{min-height:40px;padding:8px 16px} .oca-tile-tip-layer{position:fixed;inset:0;z-index:10000;pointer-events:none}.oca-tile-tip-layer>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 4px #0003)}.oca-tile-tip-layer path{fill:#fff1cd;stroke:#c8aa65;stroke-width:2;stroke-linejoin:round}.oca-tile-tip{position:fixed;width:max-content;max-width:min(340px,calc(100vw - 24px));box-sizing:border-box;padding:14px 18px;border:2px solid #c8aa65;border-radius:18px;background:#fff1cd;color:#294333;box-shadow:0 6px 22px #0005;font-size:.9rem;line-height:1.45;overflow-wrap:anywhere}

#oca-coin-panel{margin-top:24px;padding-top:20px;border-top:1px solid #c8aa654d}

.oca-autocam{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:42px;height:42px;padding:9px;border:1px solid #d6b777;border-radius:9px;background:#17372ce8;color:#ffe1a0;box-shadow:0 3px 12px #0005;cursor:pointer}.oca-autocam svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.oca-autocam[aria-pressed=true] .oca-camera-slash{display:none}.oca-autocam[aria-pressed=true]{background:#365b3f}.oca-autocam:focus-visible{outline:3px solid #fff1cd;outline-offset:3px}
