:root{--ink:#173c3e;--deep:#103639;--muted:#61716b;--paper:#f7f1e4;--line:#d7d1bf;--gold:#ae8249;--white:#fffdf6;--danger:#a13d31;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#eee8da;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 25%,#fff7df77,transparent 50%),linear-gradient(100deg,#e9e2d2,#f5efe4 55%,#e8e3d7);min-height:100vh}button,input,textarea{font:inherit}[hidden]{display:none!important}button,.button{cursor:pointer;border:1px solid var(--deep);border-radius:5px;background:var(--deep);color:var(--white);padding:12px 18px;font-weight:650;font-size:.87rem;transition:background .15s;min-height:44px}button:hover,.button:hover{background:#245255}button:focus-visible,.button:focus-within,a:focus-visible{outline:3px solid #c59450;outline-offset:3px}.masthead{background:var(--deep);color:var(--paper);padding:21px max(24px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:3px solid #b69560}.brand{color:inherit;text-decoration:none;display:flex;align-items:center;gap:13px;font-family:Georgia,serif;letter-spacing:.2em;font-size:1.1rem}.brand small{display:block;font:9px system-ui,sans-serif;letter-spacing:.27em;margin-top:5px;color:#c4d1c5}.sigil{font-size:36px;color:#d3b67f}.private-mark{font-size:10px;letter-spacing:.17em;color:#c4d1c5}main{max-width:1100px;margin:auto;padding:0 28px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400}h1{font-size:clamp(2.6rem,5.8vw,4.4rem);letter-spacing:-.035em;line-height:1.08;margin-bottom:14px}h2{font-size:1.5rem;line-height:1.25;margin-bottom:0}h3{font-weight:650;font-size:.72rem;text-transform:uppercase;letter-spacing:.13em;margin:24px 0 12px}.eyebrow{font-size:.65rem;letter-spacing:.17em;font-weight:750;margin-bottom:15px;color:#7c775e}.hero{padding:45px 2px 32px;display:flex;justify-content:space-between;gap:14px;align-items:center}.subtitle{color:var(--muted);font-family:Georgia,serif;font-style:italic;font-size:1.13rem;margin-bottom:20px}.build{display:inline-block;font-size:.72rem;font-weight:650;padding:7px 13px;border:1px solid #c7c8b5;border-radius:30px;background:#e2e7d8;color:#365a4a}.level-seal{flex-shrink:0;width:106px;height:118px;border:1px solid #a79169;outline:1px solid #b6a27f;outline-offset:5px;border-radius:48% 48% 42% 42%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e4dbc6;transform:rotate(4deg);margin:8px 16px}.level-seal span{font:3.5rem Georgia,serif;line-height:1}.level-seal small{font-size:.6rem;letter-spacing:.18em;margin-top:9px}.save-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #c9c6b7;border-bottom:1px solid #c9c6b7;font-size:.8rem}.save-bar small{display:block;color:var(--muted);font-size:.65rem;margin-top:4px}#save-status:before{content:'●';font-size:10px;color:#47775d;margin-right:8px}#save-status[data-kind=error]{color:var(--danger)}#save-status[data-kind=error]:before{color:var(--danger)}#save-status[data-kind=pending]:before{color:#aa7c2e}.bar-actions{display:flex;gap:4px;flex-shrink:0}.quiet{background:transparent;border-color:transparent;color:var(--ink);padding:8px 10px;font-size:.75rem}.quiet:hover{background:#dce2d4}.intro{font-size:.75rem;color:var(--muted);line-height:1.6;margin:18px 0 24px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:27px 28px;box-shadow:0 3px 9px #213d3310;margin-bottom:20px}.section-heading{display:flex;align-items:center;gap:13px;margin-bottom:20px}.chapter{font:italic 1rem Georgia,serif;color:#a38350;border-right:1px solid #d7cdb6;padding-right:12px}.section-heading label{margin:0}label{display:block;font-size:.74rem;font-weight:600;color:#53635c}input:not([type=file]),textarea{display:block;width:100%;margin-top:8px;border:1px solid #c9caba;border-radius:4px;background:#fffdf7;color:var(--ink);padding:12px 13px;outline:none;box-shadow:inset 0 1px 2px #3a442309}input:focus,textarea:focus{border-color:#54817a;box-shadow:0 0 0 3px #68978a26}input::placeholder,textarea::placeholder{color:#969d90;font-weight:400}textarea{resize:vertical;line-height:1.75;font-size:.88rem;min-height:120px}input[type=number]{font-variant-numeric:tabular-nums;font-size:1.3rem}input[type=number]:invalid{border-color:#b26352}.name-field input{font-family:Georgia,serif;font-size:1.35rem}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:24px}.resources{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.resources label{background:#eeeedf77;border:1px solid #dcdccb;padding:12px;border-radius:5px}.resources input{font-size:1.25rem;padding:9px 10px}.hint{font-size:.76rem;color:var(--muted);line-height:1.65;margin-bottom:16px}.resources+.hint{margin:16px 0 0}.notes-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.note-section .hint{min-height:2.5em}.wide{grid-column:1/-1}#cards{font-variant-numeric:tabular-nums;font-size:.89rem}.transfer{border-top:3px solid #a98d5a;display:grid;grid-template-columns:1fr auto;column-gap:32px;align-items:center;margin-top:6px}.transfer h2{margin-bottom:12px}.transfer p:not(.eyebrow){font-size:.78rem;line-height:1.7;color:var(--muted);margin-bottom:0}.transfer-actions{display:flex;flex-direction:column;gap:10px}.transfer-actions .button{text-align:center}#import-file{position:absolute;width:1px;height:1px;opacity:0}.secondary{background:transparent;color:var(--ink)}.secondary:hover{color:var(--white)}#transfer-status{grid-column:1/-1;min-height:1em;margin-top:16px}.unlock{max-width:580px;margin:65px auto 45px;padding:40px}.unlock h1{font-size:3.2rem}.unlock p{line-height:1.7;color:var(--muted)}.unlock form{margin:25px 0 15px}.unlock button{margin-top:14px;width:100%}.unlock #unlock-status{color:var(--danger);font-size:.85rem}footer{padding:32px 0 40px;text-align:center;font:italic .85rem Georgia,serif;color:#68756b}footer span{display:block;margin-top:9px;font:10px system-ui,sans-serif;color:#7c8479}@media(min-width:850px){#character-form{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.notes-grid{grid-column:1/-1}.identity .stats{grid-template-columns:1fr 1fr;row-gap:24px}.identity .name-field{margin-top:35px}.identity .stats{margin-top:32px}}@media(max-width:600px){main{padding:0 18px}.masthead{padding:16px 18px}.brand{font-size:.9rem}.brand small{font-size:8px}.sigil{font-size:30px}.private-mark{font-size:8px;letter-spacing:.07em}.hero{padding:31px 0 27px}.hero h1{font-size:2.6rem}.hero .eyebrow{font-size:8px;letter-spacing:.11em}.subtitle{font-size:.9rem;max-width:210px;line-height:1.5}.level-seal{width:58px;height:76px;margin:0 7px}.level-seal span{font-size:2.35rem}.level-seal small{font-size:7px}.build{font-size:.65rem;padding:6px 9px}.panel{padding:21px 18px;margin-bottom:16px}.stats{grid-template-columns:1fr 1fr;gap:18px}.resources{gap:9px}.resources label{padding:9px 7px;font-size:.65rem}.resources input{padding:9px 7px}.notes-grid{display:block}.save-bar{align-items:flex-start}.bar-actions{flex-direction:column;align-items:flex-end}.quiet{padding:6px 7px;min-height:36px}.save-bar>div:first-child{padding-top:10px}h2{font-size:1.35rem}.transfer{display:block}.transfer-actions{margin-top:22px}.unlock{padding:26px 22px;margin:36px auto}.unlock h1{font-size:2.6rem}.intro{font-size:.7rem}.eyebrow{font-size:.6rem}footer{line-height:1.6}}

/* Thumb-friendly counters: keep native text entry, no tiny spinner arrows. */
.stepper{display:flex;align-items:stretch;gap:0;margin-top:8px;min-width:0}
.stepper button{flex:0 0 44px;width:44px;min-height:48px;padding:0;font-size:1.5rem;line-height:1;touch-action:manipulation;border-radius:5px 0 0 5px}
.stepper button:last-child{border-radius:0 5px 5px 0}
.stepper button:disabled{background:var(--line);border-color:var(--line);color:var(--muted);cursor:default}
.stepper input{width:100%;min-width:0;flex:1;text-align:center;margin:0;border-radius:0;padding:10px 2px;appearance:textfield;-moz-appearance:textfield}
.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:600px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.resources{grid-template-columns:repeat(2,minmax(0,1fr))}.stepper input{font-size:16px}}
