:root{--ink:#20382e;--muted:#737c71;--green:#244d3c;--gold:#b08b46;--line:#deded2;--paper:#f7f7f0;--soft:#eeeee4}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:25px}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",sans-serif;font-size:14px;line-height:1.7}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button,a,input,select,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #b18b48}button{color:inherit}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}header{height:96px;max-width:1320px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-family:Georgia,"Yu Mincho",serif;font-size:22px;letter-spacing:2px;font-weight:700}.brand small{display:block;font:9px/1.8 sans-serif;letter-spacing:2px;color:var(--muted)}.brand-icon{display:grid;place-items:center;width:42px;height:48px;color:var(--gold);font-size:37px;border:1px solid #b99f69;border-radius:5px}.help-link{font-size:12px}.help-link span{color:var(--gold);margin-left:12px}main{max-width:1224px;margin:auto;padding:0 28px}.intro{display:flex;justify-content:space-between;align-items:center;padding:50px 0 36px;gap:24px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:600;color:var(--gold);margin:0 0 9px}h1{font-family:Georgia,"Yu Mincho",serif;font-size:46px;letter-spacing:3px;line-height:1.3;font-weight:500;margin:0 0 18px}h1 em{font-style:normal;color:#49694f}.lead{color:#697466;font-size:14px;margin:0}.mobile-break{display:none}.intro-note{display:flex;align-items:center;gap:15px;margin-right:20px}.intro-note .spark{color:var(--gold);font-size:34px}.intro-note p{font-size:12px}.intro-note small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.steps{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:34px;align-items:center;padding:17px 0;margin-bottom:32px;font-size:12px}.steps b{font-family:Georgia,serif;font-weight:400;color:var(--gold);font-size:16px;margin-right:9px}.steps>span{color:#c6c9ba}.workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:30px;align-items:start}.editor{min-width:0}.panel{border:1px solid var(--line);background:#fffef9;border-radius:12px;padding:28px;margin-bottom:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:25px}h2{font-size:19px;font-weight:600;margin:0;letter-spacing:1px}.section-title h2>span{font:italic 20px Georgia;color:var(--gold);margin-right:10px}.section-title .eyebrow{font-size:9px;margin-bottom:6px}.text-button{background:none;border:0;padding:6px 0;font-size:12px;color:var(--muted);white-space:nowrap}.text-button:hover{color:var(--green)}.field,fieldset{margin:0 0 20px;border:0;padding:0;min-width:0}label,legend{display:block;font-size:12px;font-weight:600;margin:0 0 8px}label span,legend span{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}input,select,textarea{background:#fffefb;border:1px solid #d8dcd0;border-radius:6px;padding:11px 12px;color:var(--ink);width:100%;min-width:0;font-size:13px}input:focus,select:focus,textarea:focus{outline:1px solid #5c8465;border-color:#5c8465}input::placeholder,textarea::placeholder{color:#95998f;font-size:11px}textarea{resize:vertical;line-height:1.8}select{cursor:pointer;padding-right:24px}fieldset>input,.field>input+input,select+input{margin-top:10px}.segmented{display:flex;background:var(--soft);padding:4px;border-radius:7px;gap:3px}.segmented button{flex:1;border:0;background:transparent;border-radius:5px;font-size:12px;padding:10px 5px}.segmented button[aria-pressed=true]{background:var(--green);color:white;box-shadow:0 2px 4px #244d3c22}.chips{display:flex;flex-wrap:wrap;gap:7px}.chips button{border:1px solid #d8dcd0;background:transparent;padding:7px 13px;border-radius:5px;font-size:12px;line-height:1.6;display:flex;align-items:center;gap:5px}.chips button[aria-pressed=true]{border-color:#6d8b6c;background:#edf2e8;color:#264f37}.chips button[aria-pressed=true]::after{content:'✓';font-size:10px;color:#507c54}.chips button:hover{border-color:#7b9974}.small-chips button{font-size:11px;padding:5px 9px}.colors button{padding:8px 11px}.swatch{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid #0002;flex-shrink:0}.row{display:grid;grid-template-columns:1fr 1fr;gap:17px}.stats-input{display:flex;align-items:center;gap:10px}.stats-input input{text-align:center}.hint{font-size:10px;color:var(--muted);line-height:1.8;margin:9px 0 0}.badge{font-size:9px;letter-spacing:1px;border:1px solid #d6d9ca;padding:4px 8px;border-radius:4px;white-space:nowrap;color:#82866f}.section-desc{color:var(--muted);font-size:12px;margin:-10px 0 18px}.style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.style-choice{position:relative;text-align:left;border:1px solid #dddfd3;border-radius:7px;overflow:hidden;background:transparent;padding:0 0 10px;transition:transform .2s,border-color .2s}.style-choice:hover{transform:translateY(-2px);border-color:#819473}.style-choice[aria-pressed=true]{border:2px solid #426a4b;padding-bottom:9px;background:#eef2e8}.style-choice[aria-pressed=true]::after{content:'✓';position:absolute;top:7px;right:7px;width:22px;height:22px;text-align:center;line-height:22px;background:#325b40;border:1px solid #f8fff4;color:white;border-radius:50%;font-size:12px}.style-choice img{width:100%;aspect-ratio:1.14;object-fit:cover;display:block;margin-bottom:8px}.style-choice strong{display:block;font-size:11px;line-height:1.5;padding:0 8px;font-weight:600}.style-choice small{display:block;font-size:9px;line-height:1.5;color:var(--muted);padding:3px 8px 0}.style-grid+.hint{margin:12px 0 23px}details{border-top:1px solid var(--line);padding-top:16px}summary{cursor:pointer;font-size:12px;font-weight:600}summary>span{font-size:10px;color:var(--muted);font-weight:400;margin-left:12px}.details-content{padding-top:20px}.details-content>.hint{margin:-10px 0 17px}.details-content .field:last-child{margin-bottom:0}.preview-column{min-width:0;align-self:stretch}.preview-sticky{position:sticky;top:24px}.preview-heading{display:flex;justify-content:space-between;align-items:center;margin:0 3px 14px}.preview-heading .eyebrow{margin:0}.live-dot{font-size:10px;color:var(--muted)}.live-dot::before{content:'';display:inline-block;width:5px;height:5px;background:#5b8b5a;border-radius:50%;margin-right:7px}.preview-stage{position:relative;isolation:isolate;overflow:hidden;background:transparent;border:0;border-radius:0;padding:32px 35px}.stage-halo{position:absolute;z-index:-1;top:8%;left:8%;width:84%;aspect-ratio:1;border:1px solid #b6b89755;border-radius:50%}.stage-halo::before{content:'';position:absolute;inset:16px;border:1px solid #b6b89755;border-radius:50%}.token-card{--frame:#496740;background:linear-gradient(140deg,#b4a66f,var(--frame) 24%,var(--frame) 68%,#a08f58);padding:12px;border:7px solid #1e2b24;border-radius:18px;box-shadow:0 18px 28px #1b2b3336,0 3px 4px #1b2b3333;width:100%;max-width:330px;margin:0 auto;aspect-ratio:5/7;display:flex;flex-direction:column;transform:none;transition:none}.card-title{color:#f7f0d8;display:flex;align-items:center;justify-content:space-between;font:600 19px "Yu Mincho",Georgia,serif;padding:0 3px 8px;gap:8px;min-width:0}.card-title>span:first-child{overflow-wrap:anywhere}.card-title>span:last-child{display:flex;flex-shrink:0;gap:3px}.card-title .swatch{width:11px;height:11px;border-color:#fff8}.card-art{position:relative;flex:1;min-height:150px;border:1px solid #d4c38b;overflow:hidden;border-radius:4px 4px 0 0;background:#26372b}.card-art img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;transform:none;transition:none}.sample-label{position:absolute;bottom:7px;left:7px;font-size:8px;letter-spacing:1px;color:#fff;padding:3px 6px;background:#142a22b8;border-radius:3px}.card-type{padding:7px 8px;background:#dfdfc7;color:#293b2b;font-size:11px;font-weight:600;border-bottom:1px solid #c7c9a9;overflow-wrap:anywhere}.card-rules{position:relative;min-height:81px;background:#eeefdf;padding:12px 9px 28px;color:#29332b;font:12px/1.65 "Yu Mincho",Georgia,serif;overflow-wrap:anywhere;white-space:pre-wrap}.card-pt{position:absolute;bottom:4px;right:7px;border:1px solid #849274;border-radius:7px 2px;padding:1px 9px;background:#e0e4cf;font-weight:bold;font-size:16px;max-width:95%;overflow-wrap:anywhere}.card-footer{font-size:6px;letter-spacing:1px;color:#d5d7bd;display:flex;justify-content:space-between;padding-top:7px}.preview-caption{text-align:center;font-size:9px;color:var(--muted);margin:12px 0 20px}.imagination{border-top:1px solid var(--line);padding-top:18px;margin-bottom:20px}.imagination>.eyebrow{font-size:10px;letter-spacing:1px}.imagination>p:not(.eyebrow){font-size:13px;line-height:1.9;margin:7px 0 12px}.summary-tags{display:flex;flex-wrap:wrap;gap:6px}.summary-tags span{font-size:10px;padding:3px 8px;border-radius:4px;background:#e8ecdf;color:#647258}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:10px;border-radius:6px;padding:13px 20px;font-size:13px;font-weight:500}.primary{color:#fff8e5;background:var(--green);border:1px solid var(--green);box-shadow:0 3px 4px #20382e10}.primary:hover{background:#376047}.secondary{background:#fffef7;border:1px solid #bec8b7}.secondary:hover{background:#edf1e7}.preview-sticky>.primary{width:100%;justify-content:space-between;padding:17px 20px}.local-note{font-size:9px;color:var(--muted);text-align:center;margin:10px 0}.result{margin-top:8px}.result .section-title{margin-bottom:25px}.result textarea{font-size:13px;background:#f5f6ee;line-height:1.9;padding:18px;min-height:300px;max-height:700px}.result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px}.result-actions .text-button{margin-left:8px}#resultEmpty{text-align:center;background:#f5f6ee;border:1px dashed #d7ddce;border-radius:8px;padding:24px;color:var(--muted)}#resultEmpty>span{color:var(--gold);font-size:26px}#resultEmpty p{font-size:12px}.howto{padding:36px 0 42px}.howto>h2{text-align:center;font-family:"Yu Mincho",Georgia,serif;font-size:21px}.howto-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;margin:30px 0}.howto-grid b{font:italic 25px Georgia;color:var(--gold)}.howto-grid h3{font-size:13px;margin:8px 0}.howto-grid p{color:var(--muted);font-size:12px;margin:0}.notes{border-top:1px solid var(--line);padding-top:18px}.notes p{font-size:10px;color:var(--muted);margin:4px 0}footer{max-width:1224px;margin:auto;border-top:1px solid var(--line);padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:15px}footer .brand{font-size:15px}footer p{font-size:9px;color:var(--muted)}.mobile-nav{display:none}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#183a2f;color:#fff;padding:12px 22px;border-radius:8px;box-shadow:0 5px 20px #0002;z-index:10;opacity:0;pointer-events:none;transition:opacity .2s;font-size:12px;max-width:90vw;text-align:center}.toast.show{opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{background:#fffef8;color:var(--ink);border:1px solid #ccd4c4;border-radius:12px;padding:28px;max-width:min(450px,90vw)}dialog::backdrop{background:#142b2580}dialog p{font-size:13px}.style-choice img.failed{object-fit:contain}.image-fallback{display:grid;place-items:center;aspect-ratio:1.14;background:#e2e8d9;font-size:11px;color:#788269} @media(min-width:1400px){main{padding:0}.preview-stage{padding:38px}}@media(max-width:950px){header{padding:0 28px}.workspace{gap:20px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.panel{padding:22px}.preview-stage{padding:26px 18px}.intro-note{margin-right:0}.card-title{font-size:16px}.style-grid{gap:8px}.colors{gap:5px}.colors button{padding:7px}.style-choice strong{font-size:10px}}@media(max-width:720px){header{height:78px;padding:0 20px}.brand{font-size:19px}.brand-icon{height:39px;width:34px;font-size:30px}.brand small{font-size:7px}.help-link{font-size:11px}main{padding:0 16px}.intro{padding:30px 3px 27px}.intro-note{display:none}h1{font-size:36px;letter-spacing:2px;margin-bottom:12px}.lead{font-size:12px}.mobile-break{display:block}.intro .eyebrow{font-size:8px}.steps{gap:7px;justify-content:space-between;margin-bottom:20px;padding:13px 0;font-size:9px}.steps b{font-size:12px;margin-right:3px}.workspace{display:flex;flex-direction:column;gap:0}.editor,.preview-column{width:100%}.panel{padding:20px 16px;border-radius:10px;margin-bottom:18px}.section-title{margin-bottom:22px}h2{font-size:17px}.row{gap:12px}input,select,textarea{font-size:16px;padding:10px}label,legend{font-size:12px}.style-choice strong{font-size:10px}.style-choice small{font-size:9px}.style-grid{gap:9px}.chips button{font-size:11px;padding:7px 10px}.small-chips button{font-size:11px;padding:6px 9px}.colors button{font-size:11px;padding:7px 9px}.preview-column{margin-top:10px;margin-bottom:20px;scroll-margin-top:10px}.preview-sticky{position:static}.preview-stage{padding:30px 28px}.token-card{max-width:310px}.card-title{font-size:20px}.card-rules{font-size:13px;min-height:88px}.card-type{font-size:11px}.preview-caption{font-size:9px}.result-actions{gap:10px}.result-actions .primary,.result-actions .secondary{flex:1 1 130px;font-size:12px;padding:12px}.result-actions .text-button{margin-left:0;margin-right:12px}.result textarea{font-size:14px;padding:12px}.howto{padding:25px 4px}.howto-grid{grid-template-columns:1fr;gap:20px;margin:25px 0}.howto-grid>div{display:grid;grid-template-columns:35px 1fr;column-gap:12px}.howto-grid b{grid-row:span 2}.howto-grid h3{margin:0 0 6px}.howto-grid p{grid-column:2}.howto>h2{text-align:left;font-size:20px}footer{padding:20px 20px 95px;display:block}footer p{font-size:9px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;gap:12px;background:#fffef9f5;backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:10px 16px max(12px,env(safe-area-inset-bottom));z-index:5;box-shadow:0 -3px 15px #20382e08}.mobile-nav a{font-size:10px;flex:1;text-align:center}.mobile-nav button{font-size:11px;background:var(--green);color:white;border:0;padding:12px 15px;border-radius:5px;flex:1.1}.toast{bottom:90px;min-width:220px}summary>span{font-size:9px;margin-left:7px}#result{scroll-margin-top:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
/* Card frame choices */
.frame-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.frame-choice{display:flex;align-items:center;gap:12px;padding:12px;text-align:left;border:1px solid #d8dcd0;border-radius:7px;background:#fffefb;min-width:0}.frame-choice[aria-pressed=true]{border:2px solid #426a4b;padding:11px;background:#edf2e8}.frame-choice strong{display:block;font-size:12px}.frame-choice small{display:block;font-size:9px;color:var(--muted);line-height:1.6;margin-top:3px}.frame-choice[aria-pressed=true] strong::after{content:' ✓';color:#426a4b}.frame-mini{position:relative;display:flex;flex-direction:column;gap:3px;flex:0 0 40px;height:55px;border:3px solid #26342b;border-radius:4px;padding:3px;background:#67835b}.frame-mini i{background:#f0ecce;height:4px;display:block}.frame-mini i:nth-child(2){flex:1;background:linear-gradient(145deg,#9baa75,#395d41)}.frame-mini i:nth-child(3){height:11px}.frame-mini.fullart{background:linear-gradient(145deg,#acbb7f,#3b6044);border-width:2px}.frame-mini.fullart i:nth-child(2){background:none}.frame-mini.fullart i:last-child{background:#f0ecce99}.other-wishes{margin:22px 0 0}.card-flavor{border-top:1px solid #76826966;padding-top:7px;margin-top:8px;font-style:italic;font-size:11px;line-height:1.7;white-space:pre-wrap}.token-card{position:relative;overflow:hidden}.token-card:not(.full-art) .card-title{background:#e3e0c4;color:#263b2c;border:1px solid #b7b79d;border-radius:10px 10px 4px 4px;padding:4px 7px;margin-bottom:6px}.token-card.full-art{padding:10px;background:var(--frame);min-height:425px}.full-art .card-art{position:absolute;inset:0;min-height:0;z-index:0;border:0;border-radius:0}.full-art .card-art img{object-fit:cover}.full-art .card-title,.full-art .card-type,.full-art .card-rules,.full-art .card-footer{position:relative;z-index:1}.full-art .card-title{background:#152b24b8;border:1px solid #d7ce9b88;border-radius:8px;padding:5px 7px;margin-bottom:180px;color:#fffbe5;text-shadow:0 1px 3px #102519}.full-art .card-type{margin-top:auto;background:#e8eddbdf;border:1px solid #f0edcd80;border-radius:5px 5px 0 0;backdrop-filter:blur(3px)}.full-art .card-rules{background:#eef1e0d6;backdrop-filter:blur(3px);border-radius:0 0 5px 5px;min-height:70px}.full-art .card-footer{color:#fff9e4;text-shadow:0 1px 3px #102519}.full-art .sample-label{top:57px;bottom:auto;left:10px}.full-art .card-pt{background:#e9eddbef}.full-art .card-flavor{color:#283b2f}@media(max-width:720px){.frame-options{gap:8px}.frame-choice{padding:10px 8px;gap:8px}.frame-choice[aria-pressed=true]{padding:9px 7px}.frame-choice small{font-size:8px}.frame-choice strong{font-size:11px}.frame-mini{flex-basis:32px;height:46px}.full-art .card-title{margin-bottom:180px}}

/* Fixed Mincho typography for both card frames. Flavor remains smaller/lighter. */
.token-card{--card-mincho:"Yu Mincho","YuMincho","Hiragino Mincho ProN","Hiragino Mincho Pro","Noto Serif CJK JP","Noto Serif JP","MS PMincho",serif}
.token-card .card-title,.token-card .card-type,.token-card .card-rules,.token-card .card-pt{font-family:var(--card-mincho);font-style:normal}
.token-card .card-title,.token-card .card-type{font-weight:600}
.token-card .card-rules{font-weight:500}
.token-card .card-flavor{font-family:var(--card-mincho);font-size:.82em;font-weight:300;font-style:normal;line-height:1.8}

.token-card .unofficial-label{font-family:var(--card-mincho);font-size:9px;font-weight:400;letter-spacing:0;line-height:1.5;color:#fffbe7}.token-card .card-footer{align-items:center;gap:5px}.full-art .unofficial-label{background:#16271dbf;border-radius:2px;padding:1px 4px;text-shadow:none}
/* Fixed geometry: inner height 8 / 50 / 7 / 30 / 5, independent of content. */
.token-card,.token-card.full-art{display:block;aspect-ratio:5/7;min-height:0;height:auto;padding:0;border:0;border-radius:14px;box-shadow:0 18px 28px #1b2b3336,0 3px 4px #1b2b3333,inset 0 0 0 6px #1e2b24}
.token-card .card-title,.token-card:not(.full-art) .card-title,.token-card.full-art .card-title{position:absolute;left:4%;right:4%;top:4%;height:7.36%;margin:0;padding:2px 6px;z-index:2;min-width:0;overflow:hidden;align-items:center}
.token-card .card-art{position:absolute;left:4%;right:4%;top:11.36%;height:46%;min-height:0;margin:0;z-index:0}
.token-card.full-art .card-art{inset:0;width:100%;height:100%;border-radius:14px}
.token-card .card-type,.token-card.full-art .card-type{position:absolute;left:4%;right:4%;top:57.36%;height:6.44%;margin:0;padding:3px 6px;z-index:2;display:flex;align-items:center;overflow:hidden;white-space:nowrap}
.token-card .card-rules,.token-card.full-art .card-rules{position:absolute;left:4%;right:4%;top:63.8%;height:27.6%;min-height:0;margin:0;padding:0;z-index:2;overflow:hidden}
.token-card .card-footer,.token-card.full-art .card-footer{position:absolute;left:4%;right:4%;top:91.4%;height:4.6%;margin:0;padding:0;z-index:2;overflow:hidden}
.token-card .card-title #cardName{display:block;max-height:100%;min-width:0;white-space:nowrap;overflow:hidden;flex:1}
.card-text-viewport{position:absolute;inset:7px 8px 28px;overflow:auto;scrollbar-width:thin}
#cardTextContent{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.token-card .card-flavor{font-size:.82em;line-height:1.6;margin-top:5px;padding-top:5px}
.token-card .card-pt{bottom:3px;right:6px;font-size:15px;line-height:1.25}
.full-art .sample-label{top:14%;bottom:auto}

/* Center names against the whole title bar, reserving equal space for color dots. */
.token-card .card-title,.token-card:not(.full-art) .card-title,.token-card.full-art .card-title{justify-content:center}
.token-card .card-title #cardName{flex:none;width:calc(100% - var(--name-side-space,22px) * 2);text-align:center}
.token-card #cardColors{position:absolute;right:6px;top:50%;transform:translateY(-50%)}
.token-card #cardRules{text-align:center}
.token-card #cardFlavor{text-align:left}

.template-picker{background:#eef2e8;border:1px solid #cfdac4;border-radius:8px;padding:16px;margin-bottom:24px}.template-picker select{background:#fffef9;font-size:13px}.template-status{font-size:10px;color:#426445;margin:8px 0 0}.template-picker label span{color:#75886a}#customAbilities{margin-top:10px}@media(max-width:720px){.template-picker{padding:12px}.template-picker select{font-size:16px}}
/* Compact task-first interface without explanatory paragraphs. */
header{height:78px}.intro{padding:27px 0 20px}.intro h1{font-size:34px;margin:0}.steps{margin-bottom:24px}.section-title{margin-bottom:20px}.section-title h2{font-size:18px}.template-picker{margin-bottom:20px}.template-status{display:inline-block;margin-top:7px}.style-grid{margin-bottom:24px}.style-choice strong{padding-bottom:2px}.frame-choice strong{font-size:13px}.preview-title{font-size:14px;font-weight:600}.imagination{border:0;padding:0;margin:15px 0}.summary-tags{justify-content:center}.preview-heading{margin-bottom:12px}.result{margin-top:15px}.prompt-editor{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.prompt-editor textarea{margin-top:12px}.result #resultContent{display:flex;flex-direction:column}.result #resultContent[hidden]{display:none}.result-actions{order:-2;margin-top:0}.result #dirtyNotice{order:-1;color:#8b672a;font-size:11px}.result .primary{min-width:190px}.result .section-title{margin-bottom:18px}#resultEmpty{display:flex;justify-content:center;align-items:center;gap:14px;padding:20px}#textFitNotice{font-size:10px;text-align:center;margin:10px 0}footer{margin-top:20px}input,select,textarea{min-height:44px}.chips button{min-height:34px}.small-chips button{min-height:32px}@media(max-width:720px){header{height:68px}.intro{padding:23px 3px 20px}.intro h1{font-size:29px}.steps{font-size:12px;gap:6px}.steps b{font-size:13px;margin-right:5px}.panel{padding:19px 15px}.frame-choice strong{font-size:12px}.result .primary{min-width:0}.result-actions .primary,.result-actions .secondary{flex-basis:100%}.style-choice strong{min-height:32px}.mobile-nav a{font-size:12px}.mobile-nav button{font-size:12px}.preview-column{margin-top:8px}.brand small{display:none}}

/* Keep the longer service name readable on small screens. */
main{padding-top:24px}@media(max-width:480px){header>.badge{display:none}header .brand{font-size:18px;letter-spacing:0}}

.quick-guide{margin:0 0 24px;padding:16px 20px;background:#eef2e8;border:1px solid #d8dfce;border-radius:8px}.quick-guide p{margin:0;font-size:13px;line-height:1.9;overflow-wrap:anywhere}@media(max-width:720px){.quick-guide{padding:14px 15px;margin-bottom:20px}.quick-guide p{font-size:12px}}

.token-card .card-footer{justify-content:flex-start}.token-card .unofficial-label{font-size:8px;white-space:nowrap;letter-spacing:0}

.print-jump{display:inline-block;margin-top:10px;color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:4px}.print-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:28px;align-items:center}.sheet-diagram{aspect-ratio:127/178;background:white;border:1px solid #bfc9b9;position:relative;box-shadow:0 5px 15px #20382e12}.sheet-diagram span{position:absolute;width:47.244094%;height:47.191011%;display:grid;place-items:center;background:#e7eddf;border:1px solid #a8b89c;color:#59764d;font-size:24px;font-family:Georgia,serif}.sheet-diagram span:nth-child(odd){left:1.968504%}.sheet-diagram span:nth-child(even){left:50.787402%}.sheet-diagram span:nth-child(-n+2){top:2.247191%}.sheet-diagram span:nth-child(n+3){top:50.561798%}.print-controls{min-width:0}.print-controls p{font-size:13px}.print-spec{margin:0 0 12px}.print-spec strong{font-size:19px}#printStatus{min-height:1.7em;margin:8px 0 0;color:var(--green)}.print-sheet .result-actions{flex-wrap:wrap}.print-sheet textarea{width:100%;font-size:13px}.print-sheet .section-title h2{overflow-wrap:anywhere}@media(max-width:720px){.print-layout{grid-template-columns:1fr;gap:18px}.sheet-diagram{width:135px;margin:auto}.print-sheet .result-actions>*{width:100%;text-align:center}.print-sheet .section-title h2{font-size:17px}}

/* Keep the printable card silhouette rectangular. */
.token-card{border-radius:0}



.quick-guide h2{margin:0 0 16px;font-size:19px;line-height:1.5}.guide-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.guide-steps li{min-width:0}.guide-steps h3{font-size:14px;line-height:1.7;margin:0 0 6px;overflow-wrap:anywhere}@media(max-width:720px){.guide-steps{grid-template-columns:1fr;gap:16px}.quick-guide h2{font-size:18px}.quick-guide .guide-steps p{font-size:13px}}

.template-picker{background:transparent;border:0;border-radius:0;padding:0}

.mobile-nav .mobile-reset{background:transparent;color:var(--ink);border:1px solid var(--line);flex:1}

/* Dedicated landscape (10:7) and portrait (5:7) preview illustrations. */
.token-card,.token-card.full-art,.token-card.full-art .card-art{border-radius:0}
.token-card .card-art::before{content:none}
.token-card .card-art img,.token-card.full-art .card-art img{inset:0;width:100%;height:100%;object-fit:cover;object-position:center;aspect-ratio:auto;transform:none}
.token-card .sample-label{z-index:1;max-width:calc(100% - 14px);letter-spacing:0;line-height:1.4}
.token-card.full-art .sample-label{top:12.5%;left:5%;bottom:auto;background:#142a22cf}
.token-card.full-art .card-type{background:rgba(239,242,225,.86);backdrop-filter:none}
.token-card.full-art .card-rules{background:rgba(239,242,225,.78);backdrop-filter:none}

/* Reserve the upper text area for abilities; anchor flavor above the P/T space. */
#cardTextContent{height:100%;display:flex;flex-direction:column}
.token-card #cardRules{flex:1 0 60%;min-height:min-content}
.token-card #cardFlavor{flex:0 0 auto;margin-top:6px;padding-top:5px;border-top:1px solid #76826966}
