/* Art v3: cream stationery + pastel dice tray; CSS-native dice. */
:root{color-scheme:light;color:#554b66;background:#fff7e9;font-family:"Segoe UI","Microsoft YaHei",sans-serif}body{background:radial-gradient(ellipse at 85% 10%,#fffefa,transparent 60%),linear-gradient(135deg,#fff8ea,#fdf0df);color:#554b66}.app{padding-top:22px}header{border-color:#e8d8c0;padding-bottom:14px}.brand{color:#7d6896;letter-spacing:1px}.brand span{color:#a98aab;font-weight:600}.tools button{background:#fffdf7;border:2px solid #e3d7c4;border-radius:13px;min-height:44px;color:#7f6d82;font-weight:600;box-shadow:0 3px #eadfce;padding:8px 14px}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #d78465;outline-offset:3px}button:active:not(:disabled){transform:translateY(2px)}.heading{position:relative;margin:22px 0 16px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#bd896b;font-weight:700}h1{color:#6a537e;font-weight:850;font-size:36px;letter-spacing:2px;text-shadow:0 2px #fff}h1 span{color:#9c8499;font-size:12px;letter-spacing:1px}.best{color:#a88e8c;font-size:11px}.best strong{font-family:inherit;color:#c46f54;font-size:30px;font-weight:800}.best small{color:#a48e8b}.workspace{gap:24px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.table{background:radial-gradient(ellipse at 50% 45%,#f5f0ff,#e4ddf7);border:3px solid #b8a6d2;border-radius:26px;color:#6e5882;box-shadow:inset 0 5px #fff9,0 6px #bda9d2,0 12px 25px #8e6da920;padding:25px;overflow:visible}.table:before{inset:10px;border:2px dashed #cbbbdc;border-radius:17px;background:none}.table:after{content:'✦';position:absolute;right:26px;top:62px;font-size:29px;color:#b79acd;transform:rotate(12deg);pointer-events:none}.tableTop{color:#9d83b0;font-size:10px;letter-spacing:1px;border-color:#ccb8dc;padding-bottom:16px;font-weight:650}.tableTitle{margin:30px 0 28px}.tableTitle h2{color:#725886;font-weight:750;font-size:20px}.tableTitle p{color:#95819f;font-size:12px}.dice{gap:13px;min-height:102px}.dieWrap{max-width:74px}.die{position:relative;background:linear-gradient(145deg,#fffefa,#fff7e6);border:2px solid #ae9bba;border-radius:17px;box-shadow:inset 0 4px #fff,0 6px #c7b4ce,0 9px 0 #9c83b21c,0 13px 15px #7c589a1c;padding:13px;gap:4px;isolation:isolate}.die:before{content:'';position:absolute;inset:4px;border:1px solid #e9dfed;border-radius:11px;pointer-events:none;z-index:-1}.pip{background:#77618c;box-shadow:inset 0 2px #5e4a72,0 1px #fff;border-radius:50%}.die.held{background:linear-gradient(145deg,#ffe9bf,#ffd19c);border-color:#ca8662;box-shadow:inset 0 4px #fff1d4,0 6px #cd906e,0 0 0 4px #ffeac9,0 12px 17px #9f705121}.die.held .pip{background:#ad7059;box-shadow:inset 0 2px #925b49,0 1px #ffeecf}.die.held:before{border-color:#f6bd87}.dieWrap small{display:inline-block;font-size:10px;font-weight:650;letter-spacing:0;color:#a18aac;padding:3px 6px;margin-top:13px;border-radius:7px}.dieWrap:has(.held) small{color:#a56746;background:#ffedcf;border:1px solid #e9be8d;padding:2px 6px}.rollArea{margin-bottom:25px;padding-top:20px}.rollDots i{width:7px;height:7px;background:#f5ac82;border:1px solid #d48d70}.rollDots i.used{background:#cfc0dd;border-color:#b4a1c7}.rollButton{background:#f7b38d;color:#794b41;border:2px solid #d68b6d;border-radius:15px;box-shadow:0 5px #ca8067,inset 0 3px #ffd5b9;min-height:48px;padding:11px 24px;max-width:290px;font-size:16px;font-weight:750}.rollButton:disabled{background:#e1d7ea;color:#9983aa;border-color:#bfaed0;box-shadow:0 3px #b8a4cc;cursor:default}.rollArea p{color:#9a82a6;font-size:11px;margin-top:16px}.tableBottom{color:#a28aa9;border-color:#cdbbdc;font-size:10px;letter-spacing:0}.tableBottom a{color:#a27284;font-weight:700}.scorecard{position:relative;background:repeating-linear-gradient(0deg,transparent,transparent 31px,#e8dfcd33 32px),#fffdf3;border:2px solid #e3cfab;border-radius:22px;box-shadow:4px 5px 0 #f2e2c9,0 10px 20px #b89b6820;padding:25px}.scorecard:before{content:'';position:absolute;width:46px;height:17px;left:30px;top:-9px;background:#e4b8b28c;border-left:3px dotted #fff9;border-right:3px dotted #fff9;transform:rotate(-5deg);pointer-events:none}.scoreHeading h2{color:#7d687c;font-size:18px}.scoreHeading .eyebrow{color:#c39a79;font-size:9px;letter-spacing:1px}.total{background:#fff1d8;border:1px solid #efd6ac;border-radius:13px;padding:4px 12px;gap:5px}.total strong{font-family:inherit;font-size:30px;font-weight:800;color:#c98556}.total span{color:#b08d72}.bonus{margin:15px 0 18px}.bonus>div:first-child{font-size:11px;color:#aa9279}.bar{height:6px;background:#f0e3cd;margin-top:7px;box-shadow:inset 0 1px #c9af8733}.bar span{background:#dda46e}.scoreColumns{gap:16px}h3{color:#b19a81;font-size:10px;letter-spacing:.5px;font-weight:650}.scoreRows{gap:5px}.scoreRow{background:#fffcf4;border:1.5px solid #e5d6bd;border-radius:10px;min-height:39px;color:#8f7789;font-size:12px;padding:5px 9px;font-weight:600}.scoreRow b{font-family:inherit;background:#f8ecdb;color:#c38b65;font-size:15px;min-width:27px;padding:3px 5px;border-radius:7px;font-weight:700;text-align:center}.scoreRow:hover:not(:disabled){background:#fff0da}.scoreRow.selected{background:#ffe8c8;border-color:#d69a69;box-shadow:inset 3px 0 #d39466}.scoreRow.selected b{background:#f3c391;color:#8e5f41}.scoreRow.filled{background:#eef1df;border-color:#dbe1c1;color:#8b9577}.scoreRow.filled b{background:#e0e8c9;color:#75835c}.scoreRow .check{color:#7e9b67}.scoreRow:disabled:not(.filled){opacity:.65}.commitArea{border-color:#e7d7bd;margin-top:14px;padding-top:12px}.commitArea p{color:#aa8c76;font-size:11px}.commitArea button{background:#eda17f;color:#fff;border:2px solid #d3866b;border-radius:12px;box-shadow:0 3px #cb8167;min-height:44px;padding:9px 13px;font-weight:700}.commitArea button:disabled{background:#eee5d6;border-color:#dfd4c3;color:#b7a997;box-shadow:none}.contentControls{background:#fffdf6a8;color:#9a8090;border:1px solid #ead7c0;border-radius:15px;padding:9px 12px;margin:12px 0 20px;gap:10px}.contentControls label{font-weight:650;white-space:nowrap;font-size:11px}.contentControls select{background:#fff8ed;border:2px solid #e3cfb6;color:#977b84;border-radius:11px;padding:7px 9px;font-size:12px;min-height:40px;font-weight:600}.contentControls>span{font-size:11px;line-height:1.6;min-width:160px}.contentControls button{border:2px solid #e4d4bf;border-radius:11px;min-height:40px;background:#fffdf7;font-size:11px;font-weight:600;padding:7px 10px}.contentControls button:last-child{border-color:transparent;background:none}footer{color:#b19a8c;margin-top:22px;font-size:10px}.toyMark{position:absolute;left:230px;top:9px;width:68px;height:65px;transform:rotate(10deg);pointer-events:none}.toyMark svg{width:100%;height:100%}dialog{background:#fffaf0;color:#846980;border:3px solid #e1c7ad;border-radius:22px;padding:24px;box-shadow:0 8px #7b536c25;max-height:86dvh;overflow:auto}dialog::backdrop{background:#735d7870;backdrop-filter:blur(3px)}dialog h2{font-weight:750;color:#8d6a87}.close{min-width:40px;min-height:40px;color:#a2819c}#dialogText{color:#967e88;font-size:13px;line-height:1.85}.dialogAction{background:#edaa87;color:#754b40;border:2px solid #d58e6c;border-radius:13px;box-shadow:0 3px #ca8667;font-weight:700}
@media(max-width:760px){.app{padding-top:13px;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}header{padding-bottom:10px}.brand{font-size:13px}.tools button{font-size:10px;min-height:40px;padding:6px 9px}.heading{margin:18px 0 13px}h1{font-size:30px}h1 span{font-size:11px}.eyebrow{font-size:8px}.toyMark{display:none}.best strong{font-size:27px}.contentControls{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px;margin-bottom:18px}.contentControls label{grid-column:1/-1}.contentControls select{flex:1}.contentControls>span{grid-column:1/-1;min-width:0;font-size:11px}.contentControls button{min-height:40px}.workspace{display:flex;flex-direction:column;gap:22px}.table{padding:21px 17px;border-radius:23px}.tableTop{font-size:9px;padding-bottom:12px}.tableTitle{margin:23px 0}.tableTitle h2{font-size:17px}.tableTitle p{font-size:11px}.table:after{top:50px;right:18px;font-size:20px}.dice{gap:9px;min-height:90px}.die{padding:9px;gap:3px;border-radius:12px}.die:before{inset:3px;border-radius:8px}.dieWrap small{font-size:9px;padding:3px;margin-top:11px}.dieWrap:has(.held) small{padding:2px 3px}.rollArea{margin-bottom:19px;padding-top:15px}.rollButton{width:100%;max-width:none;min-height:46px;font-size:15px;padding:9px}.rollArea p{font-size:10px}.tableBottom{font-size:9px}.scorecard{padding:19px 16px;border-radius:20px}.scoreRow{min-height:44px;font-size:12px}.scoreColumns{gap:10px}.commitArea button{min-height:44px}.commitArea p{font-size:10px}.scoreHeading h2{font-size:17px}.total strong{font-size:27px}}
@media(min-aspect-ratio:13/10) and (max-height:620px){.app{padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}header{height:34px;padding-bottom:5px}.brand{font-size:12px}.brand span,.heading,.tableTop,.tableBottom,footer{display:none}.tools button{font-size:10px;min-height:30px;padding:4px 8px;border-radius:9px;box-shadow:none}.contentControls{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0;padding:0;background:none;border:0;border-radius:0}.contentControls label{font-size:10px;flex:1;gap:5px}.contentControls select{font-size:11px;min-height:32px;padding:4px 6px;flex:1;border-radius:9px}.contentControls>span{flex-basis:100%;min-width:0;order:4;font-size:9px;line-height:14px}.contentControls button{font-size:10px;min-height:32px;padding:4px 8px;border-radius:9px}.contentControls button:last-child{border:1px solid #e1cbb5}.workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:13px;margin-top:4px;align-items:start}.table,.scorecard{height:calc(100dvh - 118px);min-height:185px;padding:11px;border-radius:16px;border-width:2px}.table:before{inset:6px;border-radius:11px;border-width:1px}.table:after{display:none}.tableTitle{margin:0 0 11px;flex-shrink:0}.tableTitle h2{font-size:12px;margin:0}.tableTitle p{display:none}.dice{gap:7px;min-height:62px;flex-shrink:0}.dieWrap{max-width:60px}.die{padding:7px;gap:2px;border-radius:10px;border-width:1.5px;box-shadow:inset 0 2px #fff,0 4px #c5b1ce,0 7px 9px #7c589a1c}.die.held{box-shadow:inset 0 2px #fff1d4,0 4px #cd906e,0 0 0 2px #ffeac9}.dieWrap small{font-size:8px;margin-top:8px;padding:2px}.rollArea{padding-top:8px;margin:auto 0 0;flex-shrink:0}.rollDots{margin-bottom:8px}.rollDots i{width:6px;height:6px}.rollButton{min-height:36px;padding:5px;font-size:12px;border-radius:10px;box-shadow:0 3px #ca8067}.rollButton span{font-size:16px;margin-left:15px}.rollArea p{font-size:8px;margin:8px 0 0}.scorecard{display:flex;flex-direction:column;box-shadow:3px 4px #f2e2c9}.scorecard:before{width:32px;top:-5px;height:11px;left:20px}.scoreHeading h2{font-size:12px}.scoreHeading .eyebrow{display:none}.scoreHeading .scrollHint{font-size:7px;margin-top:2px}.total{padding:2px 6px;border-radius:9px}.total strong{font-size:23px}.total span{font-size:9px}.bonus{margin:5px 0}.bonus>div:first-child{font-size:8px}.bar{height:4px;margin-top:4px}.scoreScroll{min-height:0;flex:1;overflow:auto;padding:1px;scrollbar-color:#d8b99a #fff5e4}.scoreColumns{gap:7px}.scoreRows{gap:4px}h3{font-size:8px;margin-bottom:4px}.scoreRow{min-height:34px;padding:3px 5px;font-size:10px;border-radius:8px}.scoreRow b{font-size:12px;padding:2px 3px;min-width:22px}.commitArea{margin-top:6px;padding-top:6px;min-height:40px;flex-shrink:0;gap:6px}.commitArea p{font-size:8px;line-height:1.5}.commitArea button{min-height:32px;padding:5px 7px;font-size:10px;border-radius:9px;box-shadow:0 2px #cb8167}}
button,a,select{-webkit-tap-highlight-color:transparent}@media(max-width:640px) and (orientation:portrait){.contentControls{grid-template-columns:minmax(0,1fr) auto auto;gap:7px}.contentControls label{grid-column:auto;min-width:0;gap:5px;font-size:11px}.contentControls select{min-width:0;width:100%;font-size:11px;padding:6px}.contentControls>span{grid-column:1/-1;order:4;font-size:10px}.contentControls button{font-size:10px;padding:7px 9px}}
#dialogText{color:#735d70}.contentControls{color:#806777}.scoreRow{color:#776177}.scoreRow b{color:#9c643d}.commitArea p{color:#8d6d56}.tableTitle p,.rollArea p{color:#79648b}.dieWrap small{color:#826d96}.bonus>div:first-child{color:#94775b}.tableBottom{color:#826e91}.scoreHeading .scrollHint{color:#94765f}
