:root{color-scheme:dark;--bg:#101313;--panel:#181c1c;--raised:#202525;--line:#343b38;--muted:#a0aaa2;--text:#edf0e8;--gold:#d5b779;--gold-dark:#3c3526;--green:#a6c7b0;--red:#e1a59b;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:radial-gradient(ellipse at 75% 0,#29312855,transparent 650px),var(--bg);color:var(--text);font-size:14px;line-height:1.65}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{border:1px solid var(--line);background:var(--raised);color:var(--text);border-radius:6px;padding:9px 15px;min-height:42px;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#2a302c;border-color:#677260}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}button.primary{background:var(--gold);color:#1c201a;border-color:var(--gold);font-weight:750}button.primary:hover:not(:disabled){background:#e4cc99}button.quiet{background:transparent}button.text-button{padding:4px 0;min-height:32px;background:none;border:0;color:var(--gold);text-align:left}a{color:var(--gold);text-underline-offset:4px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(30px,3.1vw,42px);line-height:1.35;letter-spacing:-1.8px;margin-bottom:18px;font-weight:750;white-space:pre-line}h2{font-size:23px;line-height:1.4;letter-spacing:-.65px;margin-bottom:6px}h3{font-size:16px;line-height:1.5;margin-bottom:12px}h4{font-size:14px;margin-bottom:8px}p{margin-bottom:12px}small,.muted{color:var(--muted)}small{font-size:12px}.shell{width:calc(100% - 80px);max-width:1160px;margin-inline:auto}.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;height:98px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.brand strong{display:block;font-size:18px;letter-spacing:-.5px}.brand span{display:block;font-size:9px;color:var(--gold);letter-spacing:2.7px;line-height:1.5}.language{display:flex;gap:9px;align-items:center;color:#5b655c}.language button{padding:5px 4px;background:none;border:0;color:var(--muted);font-size:12px}.language button[aria-pressed=true]{color:var(--gold)}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center;min-height:295px;padding:42px 18px 36px 0}.eyebrow{color:var(--gold);font-size:10px;font-weight:700;letter-spacing:2.6px;margin-bottom:15px}.hero-body{font-size:15px;color:var(--muted);max-width:520px;margin:0}.hero-deck{display:flex;position:relative;gap:10px;justify-content:center;align-items:center;height:218px}.illustrated-card{height:168px;width:111px;display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid #6b6042;border-radius:10px;background:linear-gradient(150deg,#35382b,#181d1b 70%);box-shadow:0 12px 34px #0005;position:relative}.illustrated-card:first-child{transform:rotate(-12deg) translateY(12px)}.illustrated-card:last-child{transform:rotate(12deg) translateY(12px)}.illustrated-card:nth-child(2){z-index:1;height:188px;width:124px;border-color:var(--gold)}.illustrated-card:before{content:"";position:absolute;inset:6px;border:1px solid #b79a5a33;border-radius:7px;pointer-events:none}.illustrated-card img{width:82px;height:82px;object-fit:contain}.illustrated-card span{font-size:11px;color:#d5c495;margin-top:6px}.hero[hidden]{display:none}.journey{display:flex;gap:0;align-items:center;border-block:1px solid var(--line);padding:16px 0;margin-bottom:24px;color:var(--muted);font-size:12px}.journey span{display:flex;gap:9px;align-items:center}.journey b{font-size:10px;font-weight:700;display:inline-grid;place-items:center;width:23px;height:23px;border:1px solid var(--line);border-radius:50%;color:var(--gold)}.journey i{height:1px;width:60px;background:var(--line);margin:0 25px}.journey .active{color:var(--text)}.panel{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:26px}.character-panel{margin-bottom:34px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:23px}.section-head p{margin:0;color:var(--muted);font-size:13px}.section-number{font-size:10px;letter-spacing:2px;color:var(--gold);margin-bottom:7px}.search-form{display:grid;grid-template-columns:150px 1fr 110px;gap:12px;align-items:end;margin:19px 0 12px}.field{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#c0c6bb}input:not([type=checkbox]),select{border:1px solid #464e46;border-radius:5px;background:#111615;color:var(--text);padding:11px 12px;min-height:46px;width:100%;min-width:0}input::placeholder{color:#737f76}.search-form .primary{min-height:46px}.search-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px}.search-bottom small{font-size:11px}.status{margin:15px 0 0;color:var(--gold)}.status:empty{display:none}.status.error,.notice.error{color:var(--red)}.search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.search-result{display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;padding:14px 16px;background:#1e2522}.search-result strong{display:block}.search-result small{display:block}.search-result .arrow{color:var(--gold);font-size:20px}.manual-picker{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.class-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.class-grid button{font-size:13px}.recents{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:18px}.recents small{margin-right:4px}.recents button{font-size:12px;padding:5px 10px;min-height:32px;background:transparent}.recents button span{color:var(--muted);margin-left:7px;font-size:10px}.profile{display:flex;align-items:center;gap:20px}.profile-emblem{height:65px;width:65px;border:1px solid #766443;border-radius:50%;display:grid;place-items:center;background:radial-gradient(#49412e,#222820);color:var(--gold);font-size:27px;flex-shrink:0}.profile-info{flex:1;min-width:0}.profile-info h2{font-size:26px;overflow-wrap:anywhere}.profile-info p{margin:0;color:var(--muted);font-size:12px}.profile-meta{display:flex;flex-wrap:wrap;gap:3px 13px}.profile-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.profile-actions button{font-size:12px}.notice{padding:11px 15px;border:1px solid #6d5843;background:#2e291f;border-radius:6px;margin:15px 0 0;color:#dfc28b;font-size:12px}.section-block{margin-bottom:40px}.equipment-title{display:flex;align-items:center;gap:12px}.toggle{display:inline-flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;cursor:pointer;min-height:32px}.toggle input{accent-color:var(--gold);width:15px;height:15px;flex-shrink:0}.head-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.head-actions button{font-size:12px}.equipped-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.equipped-card{border:1px solid var(--line);border-radius:8px;padding:16px 13px;background:var(--panel);min-width:0}.card-top{display:flex;align-items:center;gap:7px;margin-bottom:14px}.card-image{width:52px;height:64px;object-fit:contain;flex-shrink:0}.card-top h3{margin:0;font-size:15px}.card-top small{display:block;font-size:10px}.grade-unique{color:#d6b16c}.grade-legend{color:#b5a5db}.grade-rare{color:#8cb8cc}.grade-common{color:#c0c7c1}.enchant{font-size:11px;color:var(--gold)}.skill-lines{list-style:none;padding:0;margin:0;display:grid;gap:8px}.skill-line{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.4;min-height:26px}.skill-line img{width:25px;height:25px;border-radius:4px;border:1px solid #4b5145;object-fit:cover;flex-shrink:0}.skill-line .line-name{flex:1;min-width:0;overflow-wrap:anywhere}.skill-line .line-value{font-variant-numeric:tabular-nums;font-weight:700;color:#d0d8c7;white-space:nowrap}.equipped-card .toggle{margin-top:13px;padding-top:10px;border-top:1px solid var(--line);width:100%;font-size:11px}.empty-card{min-height:120px}.empty-card p{color:#879288;font-size:12px;margin-top:8px}.gear-section{margin-top:15px}.gear-section summary{color:var(--muted);font-size:12px;padding:11px 0;cursor:pointer;list-style-position:inside}.gear-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0 10px}.gear-item{border:1px solid var(--line);padding:14px;border-radius:6px;min-width:0}.gear-item h4{display:flex;justify-content:space-between;gap:5px}.gear-item .item-name{font-size:10px;color:var(--muted);min-height:34px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 10px}.editors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.editor{padding:16px;background:#1c2320;border:1px solid #6e6143;border-radius:7px;min-width:0}.editor-line{display:grid;grid-template-columns:minmax(0,1fr) 57px 30px;gap:5px;margin-bottom:7px;align-items:center}.editor-line select{font-size:11px;padding:5px;min-height:36px}.editor-line button{padding:0;min-height:30px;font-size:18px}.editor-line .fixed-plus{font-size:12px;text-align:center}.editor .add-line{font-size:11px;padding:3px 8px;min-height:32px}.editor .remaining{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;margin-top:10px}.remaining select{max-width:70px;font-size:11px;min-height:32px;padding:5px}.legend{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:17px}.legend span,.count-badge{font-size:11px;border:1px solid var(--line);border-radius:4px;padding:4px 9px;color:#c2ccc0}.legend span:last-child{color:var(--gold);border-color:#665637}.base-note{font-size:12px;color:var(--muted);margin:16px 0 0}.target-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.target-group-title{display:flex;gap:8px;align-items:center;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:13px;margin-bottom:12px}.target-group-title img{width:25px;height:30px;object-fit:contain}.target-group-title small{margin-left:auto}.target-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.skill-tile{padding:13px;border:1px solid var(--line);border-radius:7px;background:var(--panel);min-width:0;position:relative}.skill-tile.selected{border-color:#ac8b4a;background:linear-gradient(125deg,#2f2e20,var(--panel))}.tile-main{display:flex;align-items:center;gap:10px;min-height:48px}.tile-icon{width:43px;height:43px;border:1px solid #5a634f;border-radius:6px;flex-shrink:0}.tile-name{min-width:0;line-height:1.35;flex:1}.tile-name strong{display:block;font-size:13px;overflow-wrap:anywhere}.tile-name small{display:block;font-size:9px;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}.tile-levels{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;color:var(--muted);font-size:10px;margin:12px 0 8px}.tile-levels b{color:#c2d3bd;font-weight:500}.goal-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.goal-buttons button{min-height:33px;padding:3px 10px;font-size:13px;font-weight:600;background:#222823}.goal-buttons button[aria-pressed=true]{color:#172016;background:var(--gold);border-color:var(--gold)}.deficit{font-size:10px;color:#d0ac86;margin:8px 0 0;line-height:1.5}.results{padding-top:31px;border-top:1px solid var(--line)}.result-empty{border:1px dashed #4b5549;border-radius:9px;padding:40px 24px;text-align:center;background:#181e1a}.result-empty .empty-symbol{font-size:31px;color:var(--gold);line-height:1;margin-bottom:15px}.result-empty h3{font-size:17px;margin-bottom:8px}.result-empty p{color:var(--muted);font-size:13px;max-width:600px;margin:0 auto}.result-summary{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:24px 28px;border:1px solid #897344;border-radius:9px;background:linear-gradient(115deg,#353522,#212721 80%);margin-bottom:18px}.result-summary .summary-label{font-size:13px;color:#d5cba7;margin:0}.big-number{font-size:42px;line-height:1.3;letter-spacing:-1px;font-weight:700;font-variant-numeric:tabular-nums;color:#e7d4a8}.big-number span{font-size:16px;margin-left:8px;letter-spacing:0;font-weight:400}.result-summary h3{font-size:23px;margin:0 0 5px;color:#e3d9ba}.result-summary p:last-child{font-size:11px;color:#bdc5b5;margin:7px 0 0}.difficulty{padding:5px 13px;border:1px solid #a18d5b;border-radius:20px;color:var(--gold);font-size:12px;white-space:nowrap}.plan-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.plan-card{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:20px;min-width:0}.plan-card.action-replace{border-top:3px solid var(--gold)}.plan-card.action-enhance{border-top:3px solid #98bcb0}.plan-card.action-keep{border-top:3px solid #7b9477}.plan-head{display:flex;gap:10px;align-items:center;margin-bottom:12px}.plan-head img{height:47px;width:42px;object-fit:contain}.plan-head h3{margin:0;flex:1;font-size:17px}.action-badge{font-size:11px;padding:3px 9px;border-radius:4px;background:#2b342e;color:#bad1b1;white-space:nowrap}.action-replace .action-badge{background:#433b25;color:#e4c986}.action-enhance .action-badge{background:#293c38;color:#a9d0c5}.plan-description{font-size:12px;color:var(--muted);line-height:1.6;min-height:38px}.requirements{display:grid;gap:10px;margin:17px 0 20px;padding:0;list-style:none}.requirement{display:flex;align-items:center;gap:8px}.requirement img{height:32px;width:32px;border-radius:5px;flex-shrink:0}.requirement-name{font-size:12px;line-height:1.4;flex:1;overflow-wrap:anywhere}.requirement-level{text-align:right;white-space:nowrap}.requirement-level strong{display:block;color:#e4d4a8;font-size:12px}.requirement-level small{display:block;font-size:10px}.transmute{padding:11px 12px;background:#292a21;border:1px solid #4b4731;border-radius:5px;margin-bottom:16px}.transmute p{font-size:10px;color:#bcaf8d;margin:0 0 6px}.transmute strong{display:block;font-size:12px;font-weight:500;color:#dfc891;line-height:1.8}.probability-list{margin:15px 0 0;padding-top:13px;border-top:1px solid var(--line);font-size:11px}.probability-list div{display:flex;gap:15px;justify-content:space-between;margin:8px 0;line-height:1.5}.probability-list dt{color:var(--muted)}.probability-list dd{margin:0;white-space:nowrap;color:#d4dfca;font-variant-numeric:tabular-nums}.card-cost{border-top:1px solid var(--line);margin:13px 0 0;padding-top:12px;font-size:12px;color:var(--gold);text-align:right}.table-wrap{margin-top:25px}.table-wrap h3{font-size:15px}.level-table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}.level-table th{font-size:11px;color:var(--muted);font-weight:400;border-bottom:1px solid var(--line);padding:10px 8px}.level-table td{padding:13px 8px;border-bottom:1px solid #2b322e;font-variant-numeric:tabular-nums}.level-table td:not(:first-child),.level-table th:not(:first-child){text-align:center}.level-table td:last-child{color:var(--gold);font-weight:700}.table-skill{display:flex;gap:8px;align-items:center}.table-skill img{width:26px;height:26px;border-radius:4px}.table-hint{font-size:11px;color:var(--muted);margin:12px 0 0}.assumptions{margin-top:23px;padding:17px 20px;border-left:2px solid #70603d;background:#1c211c;color:#a9b19f;font-size:11px}.assumptions p{margin:3px 0}.impossible{border:1px solid #886452;background:#2c251e;border-radius:9px;padding:24px}.impossible h3{color:#e0c29e;font-size:20px}.impossible p{font-size:12px;color:#c2b8a7}.suggestions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.suggestions button{text-align:left;background:#353026;border-color:#6c5c43;padding:10px 15px}.suggestions button strong{font-size:12px;display:block;font-weight:500;color:#e2cfad}.suggestions button small{font-size:10px}.guide{margin:48px 0 35px;padding-top:24px;border-top:1px solid var(--line)}.guide>details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:15px;padding:6px 0}.guide>details>summary::-webkit-details-marker{display:none}.guide>details>summary:after{content:"+";margin-left:auto;color:var(--gold);font-size:24px}.guide>details[open]>summary:after{content:"−"}.guide summary h2{font-size:20px;margin-bottom:4px}.guide summary p{font-size:12px;color:var(--muted);margin:0}.guide-content{padding-top:25px}.guide-class{display:flex;align-items:center;gap:13px;max-width:360px;margin-bottom:24px}.guide-class label{white-space:nowrap;color:var(--muted);font-size:12px}.guide-class select{min-height:40px;padding:8px 12px}.pool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.pool{background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:17px}.pool h3{display:flex;align-items:center;gap:9px;font-size:14px}.pool h3 img{height:30px;width:27px;object-fit:contain}.pool h3 small{margin-left:auto;font-size:10px}.pool .skill-line{font-size:12px;min-height:30px}.chalice-note{font-size:12px;color:var(--gold);margin:16px 0 26px}.guide-bottom{display:grid;grid-template-columns:1.25fr 1fr;gap:40px}.principles{padding-left:18px;font-size:12px;color:#bec7b9;line-height:1.9}.principles li{padding-left:5px;margin-bottom:7px}.guide-probabilities{margin:15px 0;font-size:12px}.guide-probabilities div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--line)}.guide-probabilities dd{margin:0;color:var(--gold);font-variant-numeric:tabular-nums}.rules{margin-top:22px;border-top:1px solid var(--line);padding-top:20px}.rules p{font-size:12px;color:var(--muted);max-width:920px}.rules a{font-size:12px}.evidence{margin-top:10px;font-size:11px}.footer{padding:25px 0 35px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:#858f83;font-size:10px;line-height:1.8}.footer p{margin:0}.footer-brand{color:var(--gold);font-size:12px;margin-bottom:6px!important}.footer time{white-space:nowrap}.skip-link{position:absolute;top:-100px;left:20px;z-index:10;background:var(--panel);padding:10px}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.workspace-intro{display:flex;justify-content:flex-end;margin-bottom:15px}.workspace-intro button{font-size:12px}.empty-copy{font-size:11px;color:var(--muted);padding:8px 0}.saved-badge{font-size:10px;color:var(--gold);margin-left:9px}
@media(min-width:901px){.journey.compact{margin-top:24px}.equipped-cards.editing-cards{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1000px){.shell{width:calc(100% - 48px)}.equipped-cards{gap:8px}.equipped-card{padding:12px 9px}.card-image{width:38px;height:49px}.card-top h3{font-size:13px}.skill-line{font-size:10px}.card-top{gap:4px}.plan-card{padding:15px}.hero{gap:20px}.hero-deck{transform:scale(.9)}.profile{gap:14px}.profile-actions{max-width:245px}.pool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.shell{width:calc(100% - 36px)}.masthead{height:80px}.brand strong{font-size:15px}.brand img{width:28px}.brand{gap:9px}.brand span{font-size:8px;letter-spacing:1.8px}.language{gap:5px}.language button{font-size:11px}.hero{grid-template-columns:1fr;gap:0;padding:34px 0 22px;min-height:0}.hero h1{font-size:32px;letter-spacing:-1.5px}.hero-body{font-size:13px}.hero-deck{display:none}.eyebrow{font-size:9px;margin-bottom:14px}.journey{font-size:10px;justify-content:space-between;padding:13px 0;margin-top:0;gap:6px}.journey span{gap:5px}.journey b{width:19px;height:19px;font-size:9px}.journey i{width:12px;margin:0 1px}.journey.compact{margin-top:20px}.panel{padding:21px 18px}.section-head{gap:12px;margin-bottom:19px}.section-head p{font-size:12px}h2{font-size:21px}.search-form{grid-template-columns:100px minmax(0,1fr);gap:11px}.search-form .primary{grid-column:1/-1;min-height:44px}.search-bottom{align-items:flex-start;flex-direction:column;gap:7px}.search-bottom .text-button{font-size:12px}.search-results{grid-template-columns:1fr}.class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recents{gap:6px}.recents small{width:100%}.profile{align-items:flex-start;flex-wrap:wrap;gap:12px}.profile-emblem{height:48px;width:48px;font-size:20px}.profile-info{flex-basis:calc(100% - 64px)}.profile-info h2{font-size:23px}.profile-actions{max-width:none;width:100%;justify-content:flex-start;margin-top:2px;padding-top:12px;border-top:1px solid var(--line)}.profile-actions button{flex:1;font-size:11px;padding:8px}.profile-info p{font-size:11px}.character-panel{margin-bottom:28px}.equipped-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.equipped-card{padding:15px 12px}.equipped-card:first-child{grid-column:1/-1}.equipped-card:first-child .skill-lines{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}.card-top h3{font-size:15px}.card-image{width:43px;height:48px}.card-top small{font-size:10px}.skill-line{font-size:11px}.equipped-card .toggle{font-size:10px}.head-actions{gap:6px}.head-actions button{padding:5px 8px;min-height:32px;font-size:10px}.equipment .section-head{flex-direction:column;gap:9px}.equipment .head-actions{justify-content:flex-start}.gear-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.editors{grid-template-columns:1fr}.target-groups{grid-template-columns:1fr;gap:25px}.target-grid{gap:9px}.skill-tile{padding:11px}.tile-main{gap:8px;align-items:flex-start;min-height:50px}.tile-icon{width:36px;height:36px}.tile-name strong{font-size:12px}.tile-name small{font-size:9px}.tile-levels{font-size:9px;min-height:30px;align-content:center;flex-direction:column;gap:1px;margin-top:9px}.goal-buttons button{min-height:37px}.targets .section-head{flex-direction:column;gap:12px}.targets .head-actions{width:100%;justify-content:space-between}.legend span{font-size:10px;padding:3px 7px}.base-note{font-size:11px}.results{padding-top:25px}.result-summary{padding:21px;gap:10px}.result-summary h3{font-size:21px}.big-number{font-size:37px}.big-number span{font-size:14px}.difficulty{padding:4px 10px;font-size:11px}.result-summary .summary-label{font-size:12px}.plan-cards{grid-template-columns:1fr;gap:13px}.plan-card{padding:19px}.plan-description{min-height:0;margin-bottom:12px}.plan-head{margin-bottom:10px}.requirements{margin:15px 0}.requirement-name{font-size:13px}.probability-list{font-size:12px}.requirement-level strong{font-size:13px}.level-table thead{display:none}.level-table tbody{display:grid;gap:12px}.level-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:7px;padding:12px;gap:3px 16px;background:var(--panel)}.level-table td{display:flex;align-items:center;justify-content:space-between;text-align:right!important;padding:4px 0;border:0;font-size:11px}.level-table td:before{content:attr(data-label);font-size:10px;color:var(--muted);margin-right:8px}.level-table td:first-child{grid-column:1/-1;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line);font-size:13px;justify-content:flex-start}.level-table td:first-child:before{display:none}.level-table td:last-child{color:var(--gold)}.level-table td:last-child:before{color:var(--gold)}.guide{margin-top:35px}.guide summary h2{font-size:18px}.pool-grid{gap:10px}.pool{padding:13px 11px}.pool h3{font-size:13px;gap:4px}.pool h3 small{font-size:9px}.pool .skill-line{font-size:11px;gap:6px}.pool .skill-line img{width:23px;height:23px}.guide-bottom{grid-template-columns:1fr;gap:17px}.guide-class{max-width:100%}.footer{flex-direction:column;gap:12px;font-size:10px}.assumptions{padding:14px 15px;font-size:10px}.result-empty{padding:32px 20px}.result-empty p{font-size:12px}.notice{font-size:11px}.impossible{padding:20px}.impossible h3{font-size:19px}.suggestions{flex-direction:column}.suggestions button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}

.search-form{grid-template-columns:220px minmax(0,1fr) 110px}
.gear-section{margin-top:30px}
.gear-section .section-head{margin-bottom:18px}
.gear-grid{margin:0;gap:12px}
.gear-item{padding:16px;border-radius:8px;background:var(--panel)}
.gear-item h3{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin-bottom:8px;font-size:15px}
.gear-item h3 small{font-size:11px;font-weight:400}
.gear-item .item-name{font-size:11px}
.gear-item .skill-line{font-size:12px;min-height:28px}
.gear-item .skill-line img{width:28px;height:28px}
.gear-editor .editor-line{grid-template-columns:minmax(0,1fr) 24px 32px}
.dropped-lines{margin:18px 0;padding:14px 0;border-block:1px solid #695047}
.dropped-lines h4{color:var(--red);font-size:12px;font-weight:600;margin-bottom:12px}
.dropped-lines .skill-line{font-size:12px}
.dropped-lines .line-value{color:var(--red)}
.loss-warning{padding:22px;margin:0 0 20px;border:1px solid #82674a;border-radius:9px;background:#29241e}
.loss-warning h3{color:#eed0a6;font-size:16px;margin-bottom:17px}
.loss-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 30px;list-style:none;padding:0;margin:0}
.loss-list li{display:flex;align-items:center;gap:10px;min-width:0}
.loss-list img{width:32px;height:32px;flex-shrink:0;border-radius:5px;border:1px solid #82674a}
.loss-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}
.loss-level{font-size:12px;color:#d3b795;white-space:nowrap}
.loss-level strong{color:#f0c59f;font-size:14px;font-variant-numeric:tabular-nums}
.loss-warning button{margin-top:18px;border-color:#987b53;background:#473b29;color:#f0d3a3;font-size:13px}
.loss-warning button:hover:not(:disabled){border-color:#ceab70;background:#57472f}
.loss-warning button span{margin-left:10px}
.alternatives{margin:27px 0}
.alternatives h3{font-size:17px;margin-bottom:12px}
.alternative-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.alternative-list button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;padding:16px;text-align:left;background:var(--panel);border-color:#5f654f;min-width:0}
.alternative-title{display:flex;grid-column:1/-1;align-items:center;gap:10px;min-width:0}
.alternative-title img{width:30px;height:30px;border-radius:4px;border:1px solid var(--line)}
.alternative-title strong{font-size:13px;overflow-wrap:anywhere}
.alternative-change{color:var(--muted);font-size:12px}
.alternative-cost{color:var(--gold);font-size:12px;font-weight:650}
.alternative-cost>span{margin-left:6px}
@media(max-width:760px){
  .search-form{grid-template-columns:minmax(0,1fr)}
  .gear-grid{gap:10px}
  .gear-section.is-editing .gear-grid{grid-template-columns:1fr}
  .gear-item{padding:14px 12px}
  .gear-item .skill-line{font-size:11px}
  .gear-item .skill-line img{width:25px;height:25px}
  .loss-warning{padding:18px;margin-bottom:16px}
  .loss-warning h3{font-size:15px;line-height:1.6}
  .loss-list{grid-template-columns:1fr;gap:14px}
  .loss-list li{gap:8px}
  .loss-name{font-size:12px}
  .loss-level,.loss-level strong{font-size:12px}
  .loss-warning button{width:100%;padding:10px;font-size:12px}
  .alternative-list{grid-template-columns:1fr;gap:10px}
  .alternative-list button{padding:14px 16px;gap:10px 8px}
}

.gear-capacity{font-size:11px;color:var(--gold);margin:0 0 14px;line-height:1.5}
.method-picker{margin-bottom:24px}
.method-picker h3{font-size:17px;margin-bottom:4px}
.method-hint{font-size:13px;color:var(--muted);margin-bottom:14px}
.minimum-gear{font-size:13px;color:#e0c792;background:#28261f;border-left:3px solid #b29762;padding:12px 15px;margin-bottom:14px;border-radius:0 5px 5px 0}
.gear-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
.gear-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 14px;text-align:left;background:var(--panel);min-width:0}
.gear-options button[aria-checked=true]{border-color:var(--gold);background:#302f23;box-shadow:inset 0 0 0 1px #d5b77933}
.method-name{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:650;min-width:0}
.method-name:before{content:"";width:12px;height:12px;flex-shrink:0;border:1px solid #6d786c;border-radius:50%}
[aria-checked=true]>.method-name{color:#edcf8d}
[aria-checked=true]>.method-name:before{background:var(--gold);border:3px solid #403d2b;box-shadow:0 0 0 1px var(--gold)}
.method-outcome{display:flex;flex-direction:column;align-items:flex-end;gap:1px;text-align:right}
.method-outcome strong{font-size:12px;font-weight:500}
.method-outcome small{font-size:10px;line-height:1.4}
.gear-loading{padding:17px 20px;margin-bottom:18px;border:1px solid var(--line);border-radius:8px;color:var(--gold);background:var(--panel)}
.result-summary .method-summary{font-size:24px;line-height:1.5;margin:0 0 8px;letter-spacing:-.5px}
.sync-plan{margin:25px 0}
.sync-plan>h3,.cards-stage{font-size:18px;margin-bottom:10px}
.sync-description{font-size:13px;line-height:1.8;color:#b4beb4;max-width:1000px;margin-bottom:18px}
.sync-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sync-item{padding:18px 16px;border:1px solid #4e6050;border-top:3px solid #8dac90;border-radius:8px;background:#1b231e;min-width:0}
.sync-item h4{font-size:15px;margin:0 0 5px}
.sync-item .item-name{color:var(--muted);font-size:10px;line-height:1.5;min-height:30px;overflow-wrap:anywhere;margin-bottom:12px}
.sync-lines{list-style:none;padding:12px 0 0;margin:0;border-top:1px solid #3e4b40;display:grid;gap:10px}
.sync-lines li{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px}
.sync-lines img{width:28px;height:28px;border:1px solid #52614c;border-radius:4px;flex-shrink:0}
.sync-lines strong{font-weight:500;flex:1;min-width:0;overflow-wrap:anywhere}
.sync-plus{color:#bcd4b8;font-weight:700;white-space:nowrap}
.sync-lines small{font-size:9px;color:#bbd2b4;background:#344632;padding:1px 4px;border-radius:3px;white-space:nowrap}
.assignment-hint{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.overwrite-warning{border-top:1px solid #776146;margin-top:14px;padding-top:12px;color:#e0b98a;font-size:11px}
.overwrite-warning p{margin:0 0 5px}
.plan-cards+.loss-warning{margin-top:20px}
.impossible-explanation{font-size:14px}
@media(max-width:1000px){.sync-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .method-picker{margin-bottom:18px}
  .method-picker h3{font-size:16px}
  .method-hint{font-size:12px}
  .minimum-gear{padding:10px 12px;font-size:12px;line-height:1.75}
  .gear-options{grid-template-columns:1fr;gap:6px}
  .gear-options button{padding:7px 12px;min-height:48px}
  .method-name{font-size:12px;gap:8px}
  .method-outcome strong{font-size:11px}
  .method-outcome small{font-size:9px}
  .result-summary .method-summary{font-size:21px;line-height:1.6}
  .result-summary:has(.method-summary){align-items:flex-start;flex-direction:column;gap:8px}
  .result-summary:has(.method-summary) .difficulty{align-self:flex-start}
  .sync-plan{margin:22px 0}
  .sync-plan>h3,.cards-stage{font-size:17px}
  .sync-description{font-size:12px;line-height:1.8}
  .sync-grid{grid-template-columns:1fr;gap:10px}
  .sync-item{padding:16px}
  .sync-item .item-name{min-height:0;font-size:11px;margin-bottom:10px}
  .sync-lines li{font-size:13px}
  .sync-lines small{font-size:10px}
  .impossible-explanation{font-size:13px}
}

/* Keep Korean words together while allowing long names to wrap safely. */
body{word-break:keep-all;overflow-wrap:anywhere}

/* The wide card fits in the margin outside the 1160px content shell. */
.support{position:fixed;right:16px;bottom:16px;z-index:10;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-size:12px;line-height:1.6}
.support [hidden]{display:none}
.support-card{width:220px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 172px);overflow-y:auto;padding:15px;border:1px solid #6b5d3e;border-radius:10px;background:#191d1b;box-shadow:0 8px 28px #0004;color:#c1c7bb}
.support-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.support-heading h2{font-size:13px;letter-spacing:0;margin:0;color:#cbb887}
.support-heading button{min-height:28px;width:28px;padding:0;background:transparent;border-color:transparent;font-size:19px;line-height:1;color:var(--muted);margin:-6px -6px -6px 0}
.support-bank{font-size:12px;margin:0 0 5px}
.support-bank strong{display:block;font-size:13px;font-weight:550;letter-spacing:.4px;font-variant-numeric:tabular-nums;white-space:nowrap;user-select:text}
.support-holder{font-size:12px;color:var(--muted);margin:0 0 12px}
.support-copy{width:100%;min-height:36px;padding:7px 9px;font-size:12px;background:#25291f;border-color:#605538;color:#d5c295}
.support-toggle{min-height:36px;padding:7px 13px;border-radius:30px;border-color:#695c3e;background:#1e231f;color:#cbb887;font-size:12px;box-shadow:0 3px 12px #0003}
.support-toggle span{margin-right:3px;color:#b49c6a}
html:lang(ja) body{word-break:normal;line-break:strict}
html:lang(ja) .method-outcome{flex-shrink:0}
html:lang(ja) .method-outcome strong{white-space:nowrap}
/* 좁은 화면: 문서는 평소처럼 창에서 스크롤한다(안쪽 스크롤 영역이나 화면 아래 띠를 만들지 않는다).
   알약 버튼은 오른쪽 아래에 작게 떠 있고, 누르면 카드가 그 위에 겹쳐 열린다.
   맨 아래 바닥글이 버튼에 가리지 않게 바닥글 아래에만 여백을 둔다. */
@media(max-width:1679px){
  .footer{padding-bottom:84px}
  .support-toggle{opacity:.94}
}
@media(max-width:480px){
  .masthead{height:auto;min-height:104px;flex-wrap:wrap;padding-block:14px 8px;gap:4px 12px}
  .language{width:100%;justify-content:flex-end}
  .language button{min-height:32px}
  html:lang(ja) .hero h1{font-size:26px;letter-spacing:-.5px}
}
@media(prefers-reduced-motion:reduce){.page{scroll-behavior:auto}}
