*{box-sizing:border-box}body{margin:0;background:#e8ebde;color:#2b4030;font:14px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;display:flex;flex-direction:column;align-items:center}.preview-note{font-size:11px;line-height:1.8;color:#6f805f;padding:12px 10px;text-align:center}#game-frame{position:relative;max-width:420px;width:100%;background:#f5f3ec;border:1px solid #d9dfcc;border-radius:14px;overflow:hidden;touch-action:none;box-shadow:0 8px 30px #314d3510}canvas{display:block;width:100%;height:100%}#game-actions{position:absolute;inset:0;pointer-events:none}.game-hit{position:absolute;display:block;border:0;padding:0;margin:0;background:transparent;cursor:pointer;pointer-events:auto}.game-hit:focus-visible{outline:3px solid #c29050;outline-offset:-2px;border-radius:9px}.game-hit:disabled{cursor:default}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#share-result{font-size:11px;max-width:420px;overflow-wrap:anywhere;padding:0 12px;line-height:1.8}dialog{border:1px solid #d2dcc1;border-radius:16px;background:#fffef7;color:#2b4030;width:min(360px,calc(100% - 32px));padding:23px}dialog::backdrop{background:#20382c55}h2{font-size:20px;margin:0 0 20px}label{display:block;font-size:12px;margin:12px 0 9px}textarea{border:1px solid #cfd9bc;background:#fcfcf5;border-radius:9px;padding:12px;width:100%;font:15px inherit;line-height:1.8;color:inherit}form>div{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}form button{font:13px inherit;padding:10px 17px;border:0;border-radius:8px;background:#e6ecd6;color:#34592e}form button[type=submit]{background:#2b533f;color:#f3f5e4}
body.dice-theme{background:#eef3ed;color:#2a4146;min-height:100vh}.dice-theme .preview-note{color:#83978c}.dice-theme #game-frame{background:#f8f9f4;border:1px solid #dae5dc;box-shadow:0 8px 30px #42685509;border-radius:22px}.dice-theme dialog{background:#fff;border-color:#d4e2dc;color:#2a4146}.dice-theme dialog::backdrop{background:#29494655}.dice-theme textarea{background:#f8f9f4;border-color:#c5d9d1;color:#2a4146}.dice-theme form button{background:#e4f0e9;color:#2d6865}.dice-theme form button[type=submit]{background:#2d6865;color:#fff}.dice-theme .game-hit:focus-visible{outline-color:#df785d}
.dice-theme #share-result:empty{display:none}
.entry-tools{width:100%;max-width:420px;min-height:45px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.entry-tools .preview-note{padding:0;text-align:left}.entry-tools nav{display:flex;gap:8px}.entry-tools button,.entry-actions button{border:1px solid #d9dfcc;border-radius:8px;background:#f5f3ec;color:#345340;padding:6px 10px;font:inherit;font-size:12px;cursor:pointer}.entry-tools button:focus-visible,.entry-actions button:focus-visible{outline:2px solid #c29050;outline-offset:2px}#share-result:empty{display:none}#entry-dialog{max-height:calc(100dvh - 32px);overflow:auto}#entry-dialog h2{margin-bottom:10px}.entry-note,#entry-message{font-size:12px;line-height:1.7;color:#75816b}#entry-code{image-rendering:pixelated;display:block;width:min(100%,300px);height:auto;margin:12px auto;border-radius:4px}#entry-link{width:100%;padding:11px 9px;font-size:13px;color:#2b533f;border:1px solid #cfd9bc;border-radius:8px;background:#fcfcf5}.entry-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.entry-actions #copy-entry{background:#2b533f;color:#fffef7}
