.deck-view .deck-library{--deck-bg:#fff;--deck-surface:#f9f8f7;--deck-text:#2c2c2b;--deck-muted:#65615b;--deck-border:#e6e5e3;--deck-blue:#1769aa;background:var(--deck-bg);color:var(--deck-text);padding:24px;border:1px solid #d0a272;border-radius:8px;margin-top:24px;text-align:left}.deck-view .deck-library *{box-sizing:border-box}.deck-view .deck-library button,.deck-view .deck-library input,.deck-view .deck-library textarea{font:inherit;color:inherit;border:1px solid var(--deck-border);border-radius:8px;background:var(--deck-bg);padding:10px 12px;min-height:44px}.deck-view .deck-library button{cursor:pointer}.deck-view .deck-library button:disabled{opacity:.6;cursor:wait}.deck-view .deck-library :is(button,input,textarea,a):focus-visible{outline:3px solid var(--deck-blue);outline-offset:3px}.public-deck-tools{display:flex;gap:12px;align-items:center}.public-deck-tools input{flex:1;min-width:0;width:100%}.public-deck-tools button{white-space:nowrap}.deck-view #public-deck-status{font-size:14px;color:var(--deck-muted);margin:16px 0;min-height:21px}.deck-view #public-deck-status.deck-error{color:#b12d2d}.public-deck-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px 18px;justify-items:center}.deck-view .deck-library .public-deck-card.archetype-tile{width:100%;max-width:400px;padding:0;margin:0;border:0;border-radius:0;background:transparent;min-height:0;color:#fff}.deck-view .deck-library .public-deck-card.archetype-tile .archetype-copy strong{font-size:18px}.deck-view .deck-library .public-deck-card.archetype-tile .archetype-copy small{font-size:13px}.public-deck-meta{font-size:14px;color:var(--deck-muted);margin:0}.deck-view #public-deck-detail>h3{font-size:28px;line-height:1.4;margin:12px 0 24px;overflow-wrap:anywhere}.deck-view #public-deck-detail>.public-deck-meta{margin-top:24px}.public-deck-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:0 0 32px}.deck-view #public-deck-detail h4{font-size:20px;margin:0 0 12px}.public-deck-code{margin:0 0 32px}.deck-view .public-deck-code textarea{width:100%;font:14px/1.6 ui-monospace,Consolas,monospace;margin-bottom:12px;resize:vertical}.deck-copy-status{font-size:14px;color:var(--deck-muted);min-height:21px;margin:8px 0}.public-deck-composition ul{list-style:none;padding:0;margin:0}.public-deck-composition li{display:flex;gap:16px;align-items:center;min-height:48px;padding:8px 0;border-bottom:1px solid var(--deck-border)}.public-deck-composition a{flex:1;min-width:0;color:var(--deck-blue);overflow-wrap:anywhere}.deck-library .deck-mana{font-weight:700;color:var(--deck-blue);min-width:24px;text-align:center}.deck-quantity{font-size:14px;white-space:nowrap}.deck-view .deck-library #public-deck-more{margin-top:20px}.deck-view .deck-library [hidden]{display:none!important}@media(max-width:620px){.deck-view .deck-library{padding:16px}.public-deck-tools{flex-wrap:wrap}.public-deck-tools input{flex-basis:100%}.public-deck-tools button{flex:1}.deck-view #public-deck-detail>h3{font-size:24px}}@media(prefers-color-scheme:dark){.deck-view .deck-library{--deck-bg:#202020;--deck-surface:#2b2b2b;--deck-text:#fff;--deck-muted:#c4bfb8;--deck-border:#555;--deck-blue:#78b7ff}.deck-view #public-deck-status.deck-error{color:#ffb4b4}}

.public-deck-composition li.has-card-art{position:relative;isolation:isolate;overflow:hidden;min-height:60px;background:#282132;color:#fff;padding:8px 12px;border:1px solid #655a46;border-radius:4px;margin:6px 0}.public-deck-card-art{position:absolute;right:0;top:0;width:50%;height:100%;object-fit:cover;object-position:center 32%;opacity:.55;z-index:-2}.public-deck-composition li.has-card-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#211928,#21192890 65%,#21192840);z-index:-1}.public-deck-composition li.has-card-art a{color:#fff;text-shadow:0 1px 2px #000}.public-deck-composition li.has-card-art .deck-mana{color:#d9ebff}.public-deck-composition li.has-card-art .deck-quantity{color:#fff}

.deck-view #public-class-screen[hidden],.deck-view #public-library-screen[hidden]{display:none!important}.deck-view .public-class-back{min-height:44px;padding:8px 16px;margin:0 0 24px;background:#fff8e9;color:#54271c;border:1px solid #d3aa71;border-radius:8px}.deck-view #public-library-screen .selection-summary{margin-top:0;border-top:0;padding-top:0;text-align:left}.deck-view #public-library-screen .selection-summary h2{font-size:28px}.deck-view #public-library-screen .selection-summary p{font-size:16px}.deck-view #public-library-screen .deck-library{margin-top:24px}.deck-view #public-library-screen #selection-title:focus{outline:0}

/* 아키타입 상자(하스스톤 덱 타일) */
.history-archetypes{margin-top:16px;padding-top:14px;border-top:1px solid #c2af8b}.history-archetypes[hidden]{display:none}.history-archetype-title{font-size:15px;margin:0 0 10px;color:#4d402e}.archetype-tiles{display:flex;flex-wrap:wrap;gap:10px}
.archetype-tile{position:relative;display:block;width:min(100%,320px);aspect-ratio:364/110;padding:0;margin:0;border:0;border-radius:0;background:transparent;cursor:pointer;isolation:isolate;text-align:left;font:inherit;color:#fff;min-height:0;transition:transform .12s,filter .12s}.archetype-tile:before{content:'';position:absolute;left:3.8%;width:83%;top:18%;height:66%;background:#1e150f;z-index:-2}.archetype-tile:hover{transform:translateY(-1px);filter:brightness(1.12) drop-shadow(0 0 6px #ffcd6e99)}.archetype-tile:focus-visible{outline:3px solid #165d99;outline-offset:2px;border-radius:6px}
.archetype-art{position:absolute;left:30%;width:57%;top:18%;height:66%;overflow:hidden;z-index:-1}.archetype-art img{display:block}.archetype-art.is-card img{width:220%;max-width:none;height:auto;margin:-70% 0 0 -60%}.archetype-art.is-banner{left:4.4%;width:81.9%;top:21.8%;height:61.8%}.archetype-art.is-banner img{width:100%;height:100%;object-fit:cover;object-position:center}.archetype-art.is-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 35%}.archetype-frame{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.archetype-copy{position:absolute;z-index:2;left:7.5%;right:20%;top:18%;height:66%;display:flex;flex-direction:column;justify-content:center;gap:1px;line-height:1.25;text-shadow:0 1px 3px #000,0 0 2px #000}.archetype-copy strong{font-size:16px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.archetype-copy small{font-size:12px;color:#f1dfbe;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.archetype-count{position:absolute;z-index:2;left:86.3%;width:8.8%;top:18%;height:66%;display:flex;align-items:center;justify-content:center;color:#ffd77e;font-weight:700;font-size:16px;text-shadow:0 1px 2px #000}
/* 아키타입 소개의 핵심 카드 */
.deck-detail-nav{display:flex;flex-wrap:wrap;gap:8px}.public-deck-featured{margin:0 0 32px}.featured-card-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));gap:14px}.featured-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:14px;border:1px solid var(--deck-border);border-radius:10px;background:var(--deck-surface)}.featured-card-art{min-height:100px}.featured-card-art img{display:block;width:120px;height:auto}.deck-view #public-deck-detail .featured-card h5{display:flex;align-items:center;gap:8px;margin:4px 0 8px;font-size:18px}.featured-card h5 a{color:var(--deck-blue);overflow-wrap:anywhere}.featured-card p{margin:0;white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere;color:#2d271f}
@media(max-width:620px){.featured-card{grid-template-columns:84px minmax(0,1fr);gap:12px;padding:10px}.featured-card-art img{width:84px}.archetype-copy strong{font-size:15px}}
.public-deck-history{margin:0 0 32px}.deck-timeline,.deck-timeline-items,.deck-change-list{list-style:none;margin:0;padding:0}.deck-timeline{position:relative;padding-left:26px;border-left:3px solid #d0a272;display:flex;flex-direction:column;gap:22px}.deck-view #public-deck-detail .deck-timeline-year-label{display:inline-block;margin:0 0 12px;font-size:14px;font-weight:700;color:#7a4b1c;background:#f6e7d2;border:1px solid #d0a272;border-radius:999px;padding:3px 12px;position:relative}.deck-view #public-deck-detail .deck-timeline-year-label::before{content:'';position:absolute;left:-36px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:#d0a272;border:3px solid var(--deck-bg)}.deck-timeline-items{display:flex;flex-direction:column;gap:14px}.deck-timeline-entry{padding:14px 16px;border:1px solid var(--deck-border);border-radius:10px;background:var(--deck-surface)}.deck-view #public-deck-detail .deck-timeline-set{margin:0 0 6px;font-size:18px;line-height:1.4}.deck-timeline-text{margin:0;white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.deck-timeline-text a.card-reference{color:var(--deck-blue);font-weight:600}.deck-timeline-changes{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:12px}.deck-change-group{display:flex;flex-direction:column;gap:6px;min-width:0}.deck-change-label{font-size:13px;font-weight:700}.deck-change-group.is-added .deck-change-label{color:#2f7d32}.deck-change-group.is-removed .deck-change-label{color:#b12d2d}.deck-change-list{display:flex;flex-wrap:wrap;gap:8px}.deck-change-card a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 12px 4px 6px;border-radius:999px;border:1px solid;text-decoration:none;font-size:15px}.deck-change-group.is-added a{background:#e8f5e9;border-color:#8bc48e;color:#1b5e20}.deck-change-group.is-removed a{background:#fdecea;border-color:#e5a3a0;color:#8e1f1b}.deck-change-group.is-removed .deck-change-art{filter:grayscale(.7);opacity:.75}.deck-change-sign{font-size:16px;min-width:12px;text-align:center}.deck-change-art{width:30px;height:auto;display:block;border-radius:3px}.deck-change-card a:hover{text-decoration:underline}
@media(max-width:620px){.deck-timeline{padding-left:18px}.deck-view #public-deck-detail .deck-timeline-year-label::before{left:-28px}.deck-timeline-entry{padding:12px}}
@media(prefers-color-scheme:dark){.deck-view #public-deck-detail .deck-timeline-year-label{background:#3a2a19;color:#f2d1a4}.deck-change-group.is-added a{background:#1f3a22;color:#b9e6bc;border-color:#3f7d43}.deck-change-group.is-removed a{background:#43201e;color:#f5c1bd;border-color:#8e3b36}.deck-change-group.is-added .deck-change-label{color:#8fd694}.deck-change-group.is-removed .deck-change-label{color:#f19c96}}
.deck-type-badge{display:inline-flex;align-items:center;align-self:flex-start;min-height:26px;padding:0 10px;border-radius:999px;background:#7a1f1a;color:#fff;font-size:13px;font-weight:700;letter-spacing:.02em}.deck-type-line{margin:-14px 0 24px}
.public-deck-stats{margin:0 0 32px}.deck-stats-figure{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:24px;align-items:center;padding:16px;border:1px solid var(--deck-border);border-radius:10px;background:var(--deck-surface)}.deck-stats-figure svg{width:100%;height:auto;display:block}.deck-radar .deck-radar-ring{fill:none;stroke:#c9b28e;stroke-width:1}.deck-radar .deck-radar-ring.is-outer{fill:#fff8ec;stroke:#a88555;stroke-width:1.5}.deck-radar .deck-radar-axis{stroke:#c9b28e;stroke-width:1}.deck-radar .deck-radar-shape{fill:rgba(64,112,148,.26);stroke:#3f6f93;stroke-width:2.5;stroke-linejoin:round}.deck-radar .deck-radar-dot{fill:#3f6f93;stroke:#fff;stroke-width:1.5}.deck-radar .deck-radar-label{font-size:17px;font-weight:700;fill:#3a2a1a}.deck-radar .deck-radar-value{fill:#2f4f68;font-weight:800}
.deck-stats-list{margin:0;display:flex;flex-direction:column;gap:12px}.deck-stats-list div{display:grid;grid-template-columns:64px 32px minmax(0,1fr);gap:10px;align-items:center}.deck-stats-list dt{font-weight:700}.deck-stats-list dd{margin:0;font-size:20px;font-weight:800;color:#2f4f68;text-align:right}.deck-stat-bar{height:10px;border-radius:999px;background:linear-gradient(90deg,#4f7fa3 calc(var(--v)*100%),#e3d3bb 0)}
.deck-card-grid{list-style:none;margin:0;padding:4px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px 8px;background:none;border:0}.deck-grid-card{position:relative;display:flex;flex-direction:column;align-items:center}.deck-grid-card a{display:block;width:100%;border-radius:8px;transition:transform .12s ease}.deck-grid-card a:hover,.deck-grid-card a:focus-visible{transform:translateY(-4px) scale(1.08);position:relative;z-index:2}.deck-grid-art{display:block;width:100%;height:auto;filter:drop-shadow(0 3px 4px #000a)}.deck-grid-card.has-card-art .deck-grid-placeholder{display:none}.deck-grid-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;aspect-ratio:.69;width:100%;padding:8px;border-radius:8px;background:#2b2233;border:1px solid #6d5d48;color:#f2e6d2;text-align:center;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.deck-grid-placeholder .deck-mana{color:#9fd0ff;font-size:22px}.deck-grid-count{margin-top:-6px;padding:1px 10px;border-radius:6px;background:#111;color:#fff;font-size:13px;font-weight:700;border:1px solid #555}
@media(max-width:700px){.deck-stats-figure{grid-template-columns:1fr;padding:12px}.deck-stats-figure svg{max-width:340px;margin:0 auto}}
@media(max-width:620px){.deck-card-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:8px;gap:6px 4px}}
.public-deck-composition li.deck-grid-card{display:flex;flex-direction:column;align-items:center;gap:0;min-height:0;padding:0;margin:0;border:0;background:none;overflow:visible}.public-deck-composition li.deck-grid-card:after{display:none}.public-deck-composition .deck-grid-card a{flex:none;color:#f2e6d2}
.public-deck-composition{margin:0 0 32px}

.public-deck-proscons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;margin:0 0 32px}.deck-proscons-box{padding:14px 18px;border-radius:8px;border:1px solid #d9c8a8;background:#fbf7ee}.deck-proscons-box.is-pros{border-left:4px solid #4f8a3c}.deck-proscons-box.is-cons{border-left:4px solid #b04a3a}.deck-view #public-deck-detail .deck-proscons-box h4{font-size:17px;margin:0 0 6px}.deck-proscons-box.is-pros h4{color:#3d6f2d}.deck-proscons-box.is-cons h4{color:#93392b}.deck-proscons-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin:0}
.public-deck-builds{margin:0 0 32px}.deck-build{margin:0 0 20px}.deck-build:last-child{margin-bottom:0}.deck-build-name{font-size:17px;margin:0 0 6px;padding-bottom:4px;border-bottom:1px solid #d9c8a8}.deck-build-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:0 0 10px}.deck-build-cards .deck-grid-card a{color:#f2e6d2}
/* 덱 타일 + 마나 곡선 펼치기 */
.public-deck-entry{width:100%;max-width:400px;align-self:start}
.public-deck-head{position:relative}
.deck-curve-toggle{position:absolute;z-index:3;left:86.3%;width:8.8%;top:18%;height:66%;min-height:0;padding:0;margin:0;border:0;border-radius:2px;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}
.deck-curve-toggle img{width:min(21px,70%);height:auto;transition:transform .18s ease;filter:drop-shadow(0 1px 1px #000)}
.deck-curve-toggle:hover img,.deck-curve-toggle:focus-visible img{filter:drop-shadow(0 0 4px #ffd77e) brightness(1.15)}
.deck-curve-toggle[aria-expanded=true] img{transform:rotate(180deg)}
.deck-curve-toggle:focus-visible{outline:3px solid #165d99;outline-offset:1px}
.deck-curve{position:relative;width:88%;margin:-4px auto 0;aspect-ratio:384/496;background:url(/deck-selection/mana-curve.webp) center/100% 100% no-repeat;container-type:inline-size;color:#efe3c8;filter:drop-shadow(0 4px 8px #0006)}
.deck-curve-summary{position:absolute;left:12%;right:12%;top:5.4%;height:11.4%;margin:0;display:flex;align-items:center;justify-content:center;gap:7cqw;font-size:5cqw;font-weight:700;color:#f6e7c4}
.deck-curve-types{position:absolute;left:10%;right:10%;top:20%;height:26%;margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:2.5cqw 6cqw;font-size:4.6cqw}
.deck-curve-types li{display:flex;gap:2cqw;align-items:baseline}
.deck-curve-types span{color:#cdbf9f}
.deck-curve-types b{color:#fff;font-size:5.4cqw}
.deck-curve-bars{margin:0;padding:0;list-style:none}
.deck-curve-slot{position:absolute;left:calc((52 + var(--i)*36)/384*100%);width:calc(22/384*100%);top:calc(285/496*100%);height:calc(131/496*100%)}
.deck-curve-bar{position:absolute;left:12%;right:12%;bottom:calc(4.4cqw + 8%);height:calc((100% - 4.4cqw - 8%)*var(--h));border-radius:2px 2px 0 0;background:linear-gradient(180deg,#bfe6ff,#4f9be0 45%,#1f5da8);box-shadow:0 0 6px #5fb4ff88;transition:height .25s ease}
.deck-curve-count{position:absolute;left:0;right:0;bottom:3%;text-align:center;font-size:3.6cqw;font-weight:700;color:#fff;line-height:1.1}
.deck-curve-count:after{content:'';display:block;width:56%;height:2px;margin:1px auto 0;background:#e8b93a;border-radius:1px}
body .deck-view .deck-library .deck-curve-toggle{background:transparent;border:0;box-shadow:none;padding:0;min-width:0;min-height:0}
body .deck-view .deck-library .deck-curve-toggle img{width:21px;max-width:90%;height:auto;flex:none}
/* 덱 타입 필터: 옆 버튼과 같은 모양, 고르면 진한 빨강으로 표시 */
.deck-view .deck-library .public-deck-tools select{font:inherit;color:inherit;min-height:44px;padding:10px 34px 10px 12px;border:1px solid var(--deck-border);border-radius:8px;background:var(--deck-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362451e' stroke-width='2'/%3E%3C/svg%3E") right 12px center/12px 8px no-repeat;-webkit-appearance:none;appearance:none;cursor:pointer;white-space:nowrap}
.deck-view .deck-library .public-deck-tools select.is-active{background-color:#7a1f1b;border-color:#5a1410;color:#fff4e0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff4e0' stroke-width='2'/%3E%3C/svg%3E")}
.deck-view .deck-library .public-deck-tools select option{background:#f3e7cc;color:#31291e}
.deck-view .deck-library .public-deck-tools select:focus-visible{outline:2px solid #765329;outline-offset:2px}
@media(max-width:620px){.deck-view .deck-library .public-deck-tools select{flex:1.3 1 0;min-width:0}}

/* 기타: 덱 역사 아래, 카드 기타 칸과 같은 글·그림·영상 */
.public-deck-misc{margin:0 0 32px}.deck-misc-text{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.deck-misc-text:last-child{margin-bottom:0}.deck-misc-text a.card-reference{color:var(--deck-blue);font-weight:600}
/* 덱 화면 버튼 기본 모양(테두리·여백)이 기타 그림·영상 버튼에 묻지 않게 카드 기타 칸과 똑같이 */
.deck-view .deck-library .misc-image .misc-zoom-open{padding:0;margin:0;border:0;border-radius:6px;background:none;min-height:0;color:inherit}
.deck-view .deck-library .misc-video-open{padding:0;margin:0;border:0;border-radius:8px;background:#000;min-height:0}

.history-archetype-entry{min-width:0;flex:1 1 240px;max-width:100%}.history-archetype-entry .archetype-tile{max-width:100%}.history-archetype-note{margin:8px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}

.history-period-deck{margin:12px 0}.history-period-deck-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;margin:6px 0 0}.deck-period-cards{margin-top:12px}.deck-period-heading{min-height:44px;margin:0;padding:10px 0;font-weight:700}.deck-period-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px;margin-top:10px}.deck-period-note{padding:10px 12px;border:1px solid var(--deck-border);border-radius:8px}.deck-period-note>a{font-weight:700}.deck-period-note-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:6px 0 0}

/* 덱 목록에 펼치는 짧은 소개 */
.deck-brief-panel{width:88%;box-sizing:border-box;margin:-3px auto 4px;padding:15px 18px 17px;background:#f0e2c4;border:1px solid #a88752;border-top:0;border-radius:0 0 8px 8px;color:#392a19;box-shadow:0 3px 7px #2d1c1930}
.deck-brief-label{margin:0 0 8px;color:#725027;font-size:14px;line-height:1.4;font-weight:700}
.deck-brief-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6;color:#342619}
