*{box-sizing:border-box}body{margin:0;background:#f6f2e7;color:#172f2b;font:16px/1.5 system-ui,sans-serif}header,main,footer{max-width:980px;margin:auto;padding:16px clamp(14px,4vw,38px)}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #c5c5b7}header strong{font: bold 22px Georgia}a{color:#176246}nav{display:flex;gap:16px;flex-wrap:wrap}h1,h2{font-family:Georgia,serif;line-height:1.12}h1{font-size:clamp(34px,6vw,58px);margin:8px 0 18px}h2{font-size:28px}.board{background:radial-gradient(ellipse at top,#245e4c,#12382e);color:#fff8df;border:5px solid #604c37;border-radius:22px;padding:clamp(15px,4vw,36px);box-shadow:0 6px 18px #21372a22}.row,.dice{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.dice{min-height:100px;justify-content:center}.die{width:clamp(38px,10vw,68px);height:clamp(44px,11vw,68px);font:clamp(30px,8vw,58px)/1 Georgia;background:ivory;color:#263b32;padding:0;box-shadow:0 4px #a89f82}.die[aria-pressed=true]{background:#ffd57d;transform:translateY(-6px);outline:3px solid #c18530}.die:disabled{opacity:.8}button,select,input{font:inherit;border:1px solid #b8b7a9;border-radius:9px;padding:8px 12px;min-height:44px;max-width:100%}button{font-weight:650;cursor:pointer}button:disabled{cursor:default;opacity:.55}.primary{background:#ffe0a0;color:#27362d}.board h2{margin:5px 0}.board p{min-height:24px}summary{cursor:pointer;padding:12px 0;font-weight:700}label{display:inline-flex;flex-direction:column;margin:5px;gap:2px}details,article{margin:14px 0}output{font-weight:bold}footer{border-top:1px solid #ccc}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #da8620;outline-offset:2px}@media(prefers-reduced-motion:no-preference){.die{animation:land .25s ease-out}@keyframes land{from{transform:translateY(-8px) rotate(-12deg)}}}
body:has(.board){background:#f6f4ec}.table-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ffffff35;margin-bottom:10px}.table-tools strong{font-size:.85rem;letter-spacing:.045em}.table-tools button{background:transparent;color:#fff8df;border:0}.board{padding:16px clamp(12px,3vw,32px);border:1px solid #143d31;overflow-wrap:anywhere}.board h2{margin:.25rem 0}.dice{padding:8px 0;min-height:0;gap:6px}.die{display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);place-items:center;width:clamp(44px,10vw,64px);height:clamp(44px,10vw,64px);padding:6px;color:#283c34;background:#fff9e8;border-radius:10px;animation:none}.die:disabled{opacity:.95}.die:empty,.die:disabled:not(:has(i)){display:inline-block;font-size:20px}.die i{width:75%;aspect-ratio:1;border-radius:50%;background:currentColor}.actions button{flex:1;min-height:48px}.board p{margin:6px 0}.table-rules summary,#settings summary,main:has(.board)>details summary{min-height:44px}.table-rules{margin:4px 0 0}.board #preview{display:block;margin-top:8px}.board #notice{font-size:.95rem}.board:fullscreen,.board.focus-table{border-radius:0;overflow:auto;overscroll-behavior:contain;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.board.focus-table{position:fixed;inset:0;z-index:10}.board:fullscreen .dice,.board.focus-table .dice{padding-block:clamp(12px,8dvh,70px)}body:has(.focus-table){overflow:hidden}
@media(max-width:650px){body:has(.board) header{padding:0 12px}body:has(.board) header a{display:inline-flex;align-items:center;min-height:44px}body:has(.board) main{padding:6px 8px 16px}body:has(.board) h1{font-size:26px;margin:4px 4px 8px}.board{border-radius:14px;padding:8px 10px}.table-tools{margin-bottom:6px}.board h2{font-size:24px}.board .dice{justify-content:start}.board #totals{font-size:.92rem}.board #preview{margin-top:2px}main:has(.board)>details{margin:2px 4px;border-bottom:1px solid #c3cbbb}.board button{touch-action:manipulation}}
