/* A fixed warm theme requested by the site owner, using their supplied texture. */
:root{color-scheme:light;--bg:#eee1c5;--bg-base:#eee1c5;--surface:#e5d5b5;--text:#31291e;--content-primary:#31291e;--muted:#4d402e;--border:#8b7752;--blue:#165d99;--error:#9d2820;--paper-texture:url('/assets/background/parchment.png')}
html,html:has(#app.detail-open){min-height:100%;background:#cdbb94 var(--paper-texture) center/cover scroll}
body,body:has(>#app.detail-open){background:transparent;color:var(--text)}
body .card-app,body .card-app.detail-open{color:var(--text);background:transparent}
body .site-view-nav:not(.site-view-nav--deck){--view-nav-ink:#31291e;--view-nav-muted:#4d402e;--view-nav-accent:#165d99;--view-nav-rule:#9a855f;background:transparent}
body .compact-filters{--bg:#eee1c5;--surface:#e5d5b5;--text:#31291e;--content-primary:#31291e;--muted:#4d402e;--border:#8b7752;background:rgba(229,213,181,.7);color:var(--text)}
body .card-filter select,body .sort-control select,body .keyword-control select,body .filter-search,body .toolbar input,body .toolbar select,body .edit-fields input,body .edit-fields textarea,body .edit-fields select{background:var(--bg);border-color:var(--border);color:var(--text)}
body .compact-filters .filter-search input{background:transparent;color:var(--text)}
body .compact-filters .card-filter select.is-active,body .filter-chip{background:#dbe4db;border-color:#246491;color:#164d75}
body .compact-filters .filter-footer p,body .sort-control,body .group-control,body .sync-status,body .empty-result,body .keyword-filter-status,body .status,body .muted{color:var(--muted)}
body .panel,body .form-footer,body .deck-form-panel,body .deck-form-footer,body .deck-sidebar{background:var(--surface);color:var(--text);border-color:var(--border)}
body .detail{background:#cdbb94 var(--paper-texture) center/cover;color:var(--text)}
body .overlay{background:rgba(34,27,17,.76)}
body .stats>div,body .stats>button,body .note,body .history-year,body .legacy-history,body .token-tray,body .flavor-hero-divider,body .class-heading{border-color:#a28a62}
body .stats small,body .metadata dt,body .flavor-text,body .hero-dialogue,body .token-hint,body .related-card-link small{color:#4d402e}
body .keyword-tag,body .keyword-trigger,body .token-thumb[aria-expanded=true],body .related-card-link,body .related-editor button,body .related-selected-row,body .card-reference-picker,body .reference-choice,body .token-zoom{background:var(--bg);color:var(--text);border-color:var(--border)}
body .related-card-link,body a.card-reference{color:#12436b}
body .related-card-link:hover,body .reference-choice:hover{background:#dbe4db}
body .related-selected-row small,body .related-result small{color:var(--muted)}
body .close{color:#403424}
body .deck-builder{background:#cdbb94 var(--paper-texture) center/cover;color:var(--text)}
body .builder-catalog{background:transparent}
body .deck-settings,body #mobile-deck-toggle,body .deck-panel-top .icon,body .deck-selected-row input,body .deck-selected-row button{background:var(--bg);color:var(--text)}
body .deck-view .deck-library{color-scheme:light;--deck-bg:#eee1c5;--deck-surface:#e5d5b5;--deck-text:#31291e;--deck-muted:#4d402e;--deck-border:#8b7752;--deck-blue:#165d99;background:var(--deck-bg)}
body .deck-view .deck-library input,body .deck-view .deck-library button{background:var(--deck-bg);color:var(--deck-text)}
body input::placeholder,body textarea::placeholder{color:#6a5a41;opacity:1}

body .english-card-name,body .voice-copy strong,body .card-reference-picker>p,body .reference-choice span,body .missing-image,body .upload-placeholder,body .edit-fields label,body .token-hint,body .more{color:#4d402e}

/* Keep inline explanations and reference links on the parchment, without boxes. */
body .keyword-inline,body .keyword-inline:hover,body .keyword-inline.keyword-active{background:transparent;color:var(--text);border-bottom-color:#806b46}
body .keyword-trigger:focus-visible,body .card-reference:focus-visible{outline-color:#765329}
body a.card-reference{color:#90522c;text-decoration:none;font-weight:inherit;-webkit-text-stroke:.15px currentColor}
body a.card-reference:hover{color:#6b3517;background:transparent;text-decoration:underline;text-underline-offset:3px}
body .card-voices{border-top-color:#a28a62}
body .voice-play{background:var(--bg);border-color:var(--border);color:#62451e}
body .voice-play:hover,body .voice-play.is-playing{background:#dfcca3;border-color:#765329;color:#493013}
body .voice-play:focus-visible{outline-color:#765329}

/* Material-inspired reading surfaces: separate paper texture from long-form text. */
body .detail{--text:#22221f;--muted:#48453e;color:var(--text);max-width:1040px;grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:24px;padding:48px 24px 24px}
body .detail .evaluation{background:#f1e6ce;border:1px solid #c2af8b;border-radius:12px;padding:24px;align-self:start;color:#22221f}
body .detail .heading-row{margin-bottom:20px}
body .detail h2{font-size:26.5px;line-height:1.4;letter-spacing:-.3px}
body .detail .effect{font-size:18px;line-height:1.8;margin:20px 0;color:#22221f}
body .detail .note{padding:24px 0;border-color:#c2af8b}
body .detail .note h3{font-size:22.5px;line-height:1.4;margin:0 0 16px;color:#22221f}
body .detail .note p,body .detail .history-text{font-size:16px;line-height:1.825;color:#3e382f;letter-spacing:0;word-break:normal}
body .detail .note p strong{font-weight:700}
body .detail .metadata>div{font-size:15px;line-height:1.7;margin:8px 0}
body .detail .metadata dt,body .detail .stats small,body .detail .english-card-name,body .detail .muted,body .detail .related-card-link small{color:#48453e}
body .detail .stats>div,body .detail .stats>button{background:#e8dabc;border-color:#bba580}body .detail .stats>button.stat-search:hover{background:#f3e3c4;border-color:#9c6a3a;color:#7a1f1b}
body .detail .history-year,body .detail .legacy-history{border-color:#c2af8b}
body .detail .card-voices{background:#ede0c3;border:1px solid #bba580;border-radius:12px;padding:20px 16px;color:#22221f}
body .detail .voice-line{font-size:15.5px;line-height:1.7;color:#22221f}
body .detail .voice-copy strong,body .detail .token-hint{color:#403d36}
body .detail .flavor-text,body .detail .hero-dialogue{font-size:14.5px;line-height:1.75;color:#4a2b17}
body .detail a.card-reference{color:#90522c;text-decoration:none;font-weight:inherit;-webkit-text-stroke:.15px currentColor}
body .detail a.card-reference:hover{color:#6b3517;text-decoration:underline;text-underline-offset:3px;background:transparent}
body .panel{--text:#22221f;color:#22221f}
body .panel form label,body .panel .muted{color:#403d36}
body .panel textarea{font-size:16px;line-height:1.75;color:#22221f}
@media(max-width:620px){body .detail{grid-template-columns:minmax(0,1fr);gap:20px;padding:48px 16px 20px}body .detail .evaluation{padding:20px 16px}body .detail h2{font-size:24px}body .detail .note p,body .detail .history-text{font-size:15px;line-height:1.8}body .detail .effect{font-size:17px}body .detail .note h3{font-size:20.5px}}

/* 일반 / 황금 / 간판 / 다이아몬드 전환 */
body .detail .variant-switch{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:4px;border:1px solid #c2af8b;border-radius:999px;background:#f1e6ce}
body .detail .variant-switch button{min-height:40px;min-width:56px;padding:6px 14px;border:0;border-radius:999px;background:transparent;color:#3e382f;font-size:14.5px;font-weight:650;cursor:pointer}
body .detail .variant-switch button:hover{background:rgba(107,48,39,.08)}
body .detail .variant-switch button[aria-pressed=true]{background:#6b3027;color:#fbf3e2}
body .detail .variant-switch button[data-variant=golden][aria-pressed=true]{background:#9a6a12;color:#fff8e3}
body .detail .variant-switch button[data-variant=diamond][aria-pressed=true]{background:#2f5f86;color:#f1f7fc}
body .detail .variant-switch button:focus-visible{outline:2px solid #6b3027;outline-offset:2px}
body .detail .variant-status{margin:0;font-size:14px;color:#5a5245;text-align:center}
body .detail .variant-status:empty{display:none}
body .detail .variant-status.error{color:#8a2a1f}
body .detail video.detail-art{background:transparent}
body .detail .art-column [hidden]{display:none!important}

/* 공식 홈페이지처럼 아이콘 아래 글자를 빨간 띠 위에 올린다. 위 띠(금테)와 아래 띠(그림자)를 겹쳐 하나의 띠로 만든다. */
body .site-view-nav:not(.site-view-nav--deck){gap:6px;padding:8px 12px 0;margin:0 0 14px;border-bottom:0;background:transparent}
body .site-view-nav:not(.site-view-nav--deck) .view-link{gap:0;min-height:0;padding:4px 14px 0;border-bottom:0;color:#ecd6b8;font-weight:600;letter-spacing:.02em}
body .site-view-nav:not(.site-view-nav--deck) .view-link img{filter:saturate(.8) brightness(.9);transition:filter .15s}
body .site-view-nav:not(.site-view-nav--deck) .view-link span{display:block;margin-top:16px;padding-bottom:22px;line-height:22px;font-size:15px;text-shadow:0 1px 2px rgba(0,0,0,.85)}
body .site-view-nav:not(.site-view-nav--deck) .view-link:hover{color:#fff4e0;border-bottom:0}
body .site-view-nav:not(.site-view-nav--deck) .view-link:hover img{filter:none}
body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-selected="true"],body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-current="page"]{color:#ffd77e;font-weight:700}
body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-selected="true"] img,body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-current="page"] img{filter:drop-shadow(0 0 6px rgba(255,205,110,.75))}
body .site-view-nav:not(.site-view-nav--deck) .view-link:focus-visible{outline:2px solid #ffd77e;outline-offset:-2px;border-radius:6px}
/* 공식 홈페이지 스타일 금테 필터 (CSS로 그려 선이 항상 맞도록) */
body .compact-filters .card-filter:not(.mana-filter),body .compact-filters .filter-search{--h:44px;--body:#c3b189;--line1:#705c4a;--line2:#9a8769;--line3:#b6a37f;--rim:linear-gradient(180deg,#faf7ce 0%,#f5ef9d 22%,#e4c96e 50%,#d69938 72%,#ac6625 100%);position:relative;box-sizing:border-box;height:var(--h);min-height:var(--h);border:3px solid transparent;border-radius:999px;background:linear-gradient(var(--body),var(--body)) padding-box,var(--rim) border-box;box-shadow:0 0 0 1px #571414,inset 0 0 0 1px var(--line1),inset 0 0 0 2px var(--line2),inset 0 0 0 3px var(--line3);border-image:none;color:#3a2414}
body .compact-filters .filter-top>.card-filter:not(.mana-filter),body .compact-filters .filter-top>.filter-search{--h:48px}
body .compact-filters .card-filter:not(.mana-filter):has(select.is-active),body .compact-filters .card-filter.is-open{--body:#ffff94;--line1:#8c814f;--line2:#c6c071;--line3:#eceb89}
body .compact-filters .card-filter:not(.mana-filter) select,body .compact-filters .card-filter:not(.mana-filter) select.is-active{appearance:none;-webkit-appearance:none;height:100%;min-height:0;border:0!important;border-radius:999px;background:transparent!important;box-shadow:none;color:#3a2414!important;font-weight:650;padding:0 30px 0 var(--text-left,calc(var(--h)/2 - 3px))}
body .compact-filters .card-filter.has-filter-icon{--text-left:calc(var(--h) + 5px)}
body .compact-filters .card-filter.has-filter-icon::before{content:"";position:absolute;left:-3px;top:-3px;width:var(--h);height:var(--h);box-sizing:border-box;border:3px solid transparent;border-radius:50%;background:radial-gradient(circle at 50% 45%,#4a1210,#390c0c 70%) padding-box,var(--rim) border-box;box-shadow:0 0 0 1px #551212,inset 0 0 0 1px #2a0807,3px 0 4px -1px rgba(60,35,15,.45);pointer-events:none}
body .compact-filters .card-filter:not(.mana-filter)::after{content:"";position:absolute;right:14px;top:50%;width:7px;height:7px;border-right:2px solid #4a2c14;border-bottom:2px solid #4a2c14;transform:translateY(-65%) rotate(45deg);pointer-events:none}
body .compact-filters .card-filter.is-open::after{transform:translateY(-20%) rotate(225deg)}
body .compact-filters .filter-icon{z-index:1;left:5px;width:calc(var(--h) - 16px);height:calc(var(--h) - 16px);object-fit:contain}body .compact-filters [data-filter-key="cardClass"] .filter-icon{left:1px;width:calc(var(--h) - 8px);height:calc(var(--h) - 8px);border-radius:50%;object-fit:cover}
body .compact-filters .card-filter:not(.mana-filter):hover,body .compact-filters .filter-search:hover{filter:brightness(1.04)}
body .compact-filters .card-filter:not(.mana-filter):focus-within{outline:2px solid #7a1f14;outline-offset:3px}
body .compact-filters .card-filter:not(.mana-filter) select:focus-visible,body .compact-filters .filter-search input:focus-visible{outline:none}
/* 검색창: 짙은 적색 몸통 + 금테, 오른쪽 노란 돋보기 */
body .compact-filters .filter-search{--body:#3d0d0d;box-shadow:0 0 0 1px #571414,inset 0 0 0 1px #180505,inset 0 3px 4px -2px rgba(0,0,0,.55);padding:0 14px 0 16px;gap:8px;color:#f5c51f}
body .compact-filters .filter-search svg{order:2;width:22px;height:22px;flex:none;stroke-width:2.4}
body .compact-filters .filter-search input{order:1;height:100%;min-height:0;padding:0;color:#f3e6d0;font-weight:500;caret-color:#f5c51f}
body .compact-filters .filter-search input::placeholder{color:#a88a78;opacity:1}
body .compact-filters .filter-search input::-webkit-search-cancel-button{filter:invert(1) sepia(1) saturate(2) hue-rotate(5deg)}
body .compact-filters .filter-search:focus-within{outline:none;filter:brightness(1.1) drop-shadow(0 0 3px rgba(245,200,106,.7))}
/* 공식 홈페이지 스타일 드롭다운 메뉴판 */
body .filter-menu{position:fixed;z-index:80;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:2px 0;border:10px solid transparent;border-image:url(/assets/filter-pill/menu-panel.png) 14 fill/14px/0 stretch;color:#f3eee6;font-size:15px;font-weight:700;line-height:1.35;outline:none;filter:drop-shadow(0 8px 14px rgba(20,10,5,.45));scrollbar-width:thin;scrollbar-color:#756a60 transparent}
body .filter-menu-option{padding:6px 10px;cursor:pointer;white-space:nowrap;user-select:none}
body .filter-menu-option.is-active{background:#0f0d0b}
body .filter-menu-option[aria-selected=true]{color:#f6ad2e}
body .filter-menu-option[aria-disabled=true]{opacity:.4;cursor:default}
body .filter-menu.has-icons .filter-menu-option{display:flex;align-items:center;gap:10px;padding:5px 14px 5px 8px}
body .filter-menu-icon{position:relative;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:url(/assets/card-icons/class-frame.png) center/100% 100% no-repeat}
body .filter-menu-icon img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);border-radius:50%;object-fit:cover}
body .compact-filters .filter-top>.card-filter:not(.mana-filter) select{height:100%;min-height:0}
/* 상세 창: 전체 폭을 넓혀 본문 비중을 키우고, 토큰 3장은 살짝 줄여 한 줄에 맞춘다. 바깥 양피지만 살짝 비치게 */
body .detail{max-width:1200px;grid-template-columns:minmax(220px,360px) minmax(0,1fr);background:transparent;isolation:isolate}
body .detail::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:#cdbb94 var(--paper-texture) center/cover;opacity:.95;pointer-events:none}
body .detail .token-thumbnails{gap:12px 8px}body .detail .token-thumb{width:150px;padding:4px 3px}body .detail .token-art{width:144px;height:200px}body .detail .token-crop.is-cropped{width:min(100%,calc(200px * var(--token-ratio)))}
@media(max-width:620px){body .detail{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){body .detail .token-thumbnails{gap:12px 8px}body .detail .token-thumb{width:128px;padding:4px 2px}body .detail .token-art{width:120px;height:166px}body .detail .token-crop.is-cropped{width:min(100%,calc(166px * var(--token-ratio)))}}
/* 본문 글자: 양피지에 어울리는 흑갈색 */
body .detail .note p,body .detail .history-text{color:#3c2e22}

/* 상단 메뉴: 아이콘 뒤 공식 홈페이지 배경, 지금 있는 곳은 빛나는 아이콘으로 바꿔 보여준다 */
body .site-view-nav:not(.site-view-nav--deck){position:relative;isolation:isolate}
body .site-view-nav:not(.site-view-nav--deck)::before{content:'';position:absolute;left:0;right:0;top:0;bottom:46px;z-index:-1;background:#0b2a5c url(/assets/navigation/banner.webp) center 25%/cover no-repeat;pointer-events:none}
body .site-view-nav:not(.site-view-nav--deck)::after{content:'';position:absolute;left:0;right:0;bottom:0;height:60px;z-index:-1;background:url(/assets/navigation/red-bar-gold.png) left top/100% 60px no-repeat;pointer-events:none}
body .site-view-nav:not(.site-view-nav--deck) .view-link span{margin-top:12px;padding-bottom:26px}
body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-selected="true"] img[data-active-src]{filter:none}

/* 공식 홈페이지처럼: 메뉴 아래 붉은 띠가 필터 영역까지 이어진다 */
body .site-view-nav:not(.site-view-nav--deck)::after{background:url(/assets/navigation/red-bar-gold.png) left top/100% 60px no-repeat,#5a1414 url(/assets/navigation/red-texture.jpg) center top/800px auto repeat;border-bottom:2px solid #2a0907;box-shadow:0 3px 6px rgba(40,8,6,.35)}
body:has(#cards-view:not([hidden])) .site-view-nav:not(.site-view-nav--deck){margin-bottom:0}
body:has(#cards-view:not([hidden])) .site-view-nav:not(.site-view-nav--deck)::after{border-bottom:0;box-shadow:none}
body #cards-view>.card-app{padding-top:0}
body #cards-view .compact-filters{margin:0 -4px;padding:0;background:transparent;border:0}
body #cards-view .compact-filters :is(.filter-top,.filter-bottom){background:#5a1414 url(/assets/navigation/red-texture.jpg) center/800px auto repeat;padding:14px 16px}
body #cards-view .compact-filters .filter-top{margin:0;padding-top:12px;border-bottom:1px solid rgba(20,4,3,.55);box-shadow:0 1px 0 rgba(255,150,120,.1)}
body #cards-view .compact-filters .filter-bottom{padding-bottom:16px;border-bottom:2px solid #2a0907;box-shadow:0 4px 7px rgba(40,8,6,.4)}
body #cards-view .compact-filters .filter-results{margin-top:0;padding:16px 20px 0}
body:has(#decks-view:not([hidden])) .site-view-nav:not(.site-view-nav--deck){margin-bottom:0}

/* 정렬 기준: 필터와 같은 금테 알약 모양 */
body .compact-filters .sort-control{gap:10px;color:#4d402e;font-weight:600}
body .compact-filters .sort-control select{appearance:none;-webkit-appearance:none;--body:#c3b189;height:44px;min-height:44px;max-width:230px;padding:0 38px 0 18px;border:3px solid transparent!important;border-radius:999px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a2c14' stroke-width='2.2'/%3E%3C/svg%3E") right 15px center/12px 8px no-repeat padding-box,linear-gradient(var(--body),var(--body)) padding-box,linear-gradient(180deg,#faf7ce 0%,#f5ef9d 22%,#e4c96e 50%,#d69938 72%,#ac6625 100%) border-box!important;box-shadow:0 0 0 1px #571414,inset 0 0 0 1px #705c4a,inset 0 0 0 2px #9a8769,inset 0 0 0 3px #b6a37f;color:#3a2414!important;font-weight:650;cursor:pointer}
body .compact-filters .sort-control select[aria-expanded="true"]{--body:#ffff94}
body .compact-filters .sort-control select:hover{filter:brightness(1.04)}
body .compact-filters .sort-control select:focus-visible{outline:2px solid #7a1f14;outline-offset:3px}
@container cardfilters (max-width:560px){body .compact-filters .sort-control select{padding:0 30px 0 14px;background-position:right 11px center,0 0,0 0}}

/* 메뉴 글씨: 금색 선 아래 붉은 띠 한가운데에 오도록, 띠는 글씨 높이만큼만 */
body .site-view-nav:not(.site-view-nav--deck)::before{bottom:40px}
body .site-view-nav:not(.site-view-nav--deck)::after{height:46px}
body .site-view-nav:not(.site-view-nav--deck) .view-link span{margin-top:15px;padding-bottom:9px}

/* 글씨체: 메뉴·필터·정렬·직업 제목에 공통 UI 글씨체 사용 */
body .site-view-nav,body .compact-filters,body .filter-menu,body .class-heading{font-family:var(--hs-ui-font)}
body .site-view-nav .view-link span,body .compact-filters .card-filter select,body .compact-filters .sort-control,body .filter-menu{letter-spacing:.03em}
body .compact-filters .filter-search input{font-family:var(--hs-ui-font)}

/* 직업 제목: 공식 홈페이지처럼 양옆 장식선 + 날개 달린 이름판 */
body .class-heading{display:flex;align-items:center;justify-content:center;margin:26px 34px 16px 18px;padding:0;border:0;font-size:inherit;line-height:1}body .class-heading::before,body .class-heading::after{content:'';flex:1 1 0;min-width:0;height:31px;box-sizing:border-box;opacity:.78;transform:translateY(13px)}body .class-heading::before{padding-left:23px;background:url(/assets/class-heading/end-left.png) left top/23px 31px no-repeat border-box,url(/assets/class-heading/line-tile.png) 0 0/1px 31px repeat-x content-box}body .class-heading::after{padding-right:23px;background:url(/assets/class-heading/end-right.png) right top/23px 31px no-repeat border-box,url(/assets/class-heading/line-tile.png) 0 0/1px 31px repeat-x content-box}body .class-heading-plate{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:120px;height:40px;margin:0 14px;padding:1px 22px 0;border:2px solid #5a3f25;border-radius:7px;background:linear-gradient(180deg,#e6d4ae,#d3bc91);box-shadow:inset 0 0 0 2px #eadcbc,inset 0 0 0 3.5px #8a6a44,0 2px 3px rgba(60,35,15,.25);color:#3d2a18;font-size:21px;font-weight:700;letter-spacing:.08em;white-space:nowrap}@media(max-width:620px){body .class-heading{margin:18px 13px 10px 10px}body .class-heading::before,body .class-heading::after{height:24px;transform:translateY(10px)}body .class-heading::before{padding-left:18px;background-size:18px 24px,1px 24px}body .class-heading::after{padding-right:18px;background-size:18px 24px,1px 24px}body .class-heading-plate{min-width:96px;height:34px;margin:0 10px;padding:1px 14px 0;font-size:17px}}
body .site-view-nav .view-link span,body .compact-filters .card-filter select,body .compact-filters .sort-control,body .filter-menu-text,body .class-heading-plate{-webkit-text-stroke:.35px currentColor}
/* 걸린 조건 표시: 공식 홈페이지처럼 갈색 칩 */
body .compact-filters .filter-chip{min-height:30px;padding:3px 12px;border:1px solid #3a2414;border-radius:8px;background:#5a3f25;color:#f3e6d0;font-family:var(--hs-ui-font);font-weight:700;letter-spacing:.03em}
body .compact-filters .filter-chip:hover{background:#6e4e2f}
body .compact-filters #reset-card-filters{font-family:var(--hs-ui-font);font-weight:700;color:#5a3f25}

/* 글씨체 교체: 둥글고 깔끔한 나눔스퀘어라운드 (고운바탕은 너무 예스러움) */
:root{--hs-ui-font:'NanumSquareRound','Noto Sans KR',sans-serif}
body .site-view-nav .view-link span,body .compact-filters .card-filter select,body .compact-filters .sort-control,body .filter-menu-text,body .class-heading-plate{-webkit-text-stroke:0;letter-spacing:0}
body .compact-filters .card-filter select,body .compact-filters .sort-control select,body .filter-menu{font-weight:700}
body .class-heading-plate{font-weight:800;letter-spacing:.04em}
/* 메뉴 글씨: 금색 선 바로 아래 붙여 아이콘과 한 덩어리로, 띠는 더 얇게 */
body .site-view-nav:not(.site-view-nav--deck)::before{bottom:34px}
body .site-view-nav:not(.site-view-nav--deck)::after{height:40px}
body .site-view-nav:not(.site-view-nav--deck) .view-link span{margin-top:13px;padding-bottom:7px;line-height:20px;font-size:14.5px;font-weight:800;color:#e9d3ab;text-shadow:0 1px 0 #1a0504,0 0 4px rgba(0,0,0,.75)}
body .site-view-nav:not(.site-view-nav--deck) .view-link:hover span{color:#fff1d6}
body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-selected="true"] span,body .site-view-nav:not(.site-view-nav--deck) .view-link[aria-current="page"] span{color:#ffd77e}

/* 아이콘 뒤 푸른 배너를 조금 더 높게 해서 덜 답답하게 */
body .site-view-nav:not(.site-view-nav--deck){padding-top:24px}
@media(max-width:620px){body .site-view-nav:not(.site-view-nav--deck){padding-top:16px}}

/* 카드 정보: 종류·등급·세트·직업·키워드를 같은 모양의 작은 알약 버튼으로. 누르면 그 조건으로 카드 목록을 모아 본다. */
body .detail .metadata>div{align-items:center;margin:5px 0}
body .detail .meta-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
body .detail button.meta-chip{display:inline-flex;align-items:center;gap:0;min-width:0;min-height:34px;max-width:100%;margin:0;padding:3px 13px;border:1px solid #c4ad84;border-radius:7px;background:#e9d8b4;color:#2e2418;font:inherit;font-size:14.5px;font-weight:600;line-height:1.35;letter-spacing:0;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,250,235,.7);transition:background .12s,border-color .12s,color .12s,gap .12s}
body .detail button.meta-chip::after{content:'';width:0;height:12px;opacity:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.8' fill='none' stroke='%237a1f1b' stroke-width='2'/%3E%3Cpath d='M10.2 10.2L14.5 14.5' stroke='%237a1f1b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/12px 12px no-repeat;transition:width .12s,opacity .12s}
body .detail button.meta-chip:hover,body .detail button.meta-chip:focus-visible{background:#f4e5c6;border-color:#9c6a3a;color:#7a1f1b;gap:6px}
body .detail button.meta-chip:hover::after,body .detail button.meta-chip:focus-visible::after{width:12px;opacity:1}
body .detail button.meta-chip:focus-visible{outline:2px solid #765329;outline-offset:2px}
body .detail button.meta-chip:active{background:#e2cda4}

/* 카드 페이지가 있는 토큰: 이름을 카드 링크 색으로, 누르면 그 카드로 이동 */
body .token-thumb.is-linked{cursor:pointer}
body .token-thumb.is-linked:hover .token-name,body .token-thumb.is-linked:focus-visible .token-name{color:#94502a;text-decoration:underline;text-underline-offset:3px}

/* 토큰 확대: 카드 링크 미리보기처럼 상자 없이 카드 그림만 그림자와 함께 띄운다 */
body .token-zoom{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 10px 22px rgba(0,0,0,.45));animation:card-hover-in .12s ease-out}
body .token-thumb[aria-expanded=true]{background:transparent}
@media(prefers-reduced-motion:reduce){body .token-zoom{animation:none}}
body .detail .token-zoom{width:280px}
body .detail .token-zoom .token-crop.is-cropped{width:min(100%,calc((100dvh - 40px) * var(--token-ratio)))}
/* 모바일 상세: 양옆 갈색 테두리를 얇게 해 본문을 넓게 */
@media(max-width:620px){body .card-app.detail-open>.overlay,body .overlay{padding-left:0;padding-right:0}body .detail{padding-left:6px;padding-right:6px}body .detail .evaluation{padding:20px 14px}}

/* 토큰이 3장 이상이면 카드 칸 폭에 맞춰 조금 줄여 한 줄에 3장씩 놓는다(1~2장은 원래 크기 그대로). */
body .detail .token-thumbnails{container-type:inline-size;align-items:flex-start}
/* 긴 토큰 이름이 줄바꿈되어도 카드 그림의 시작선을 유지한다. */
body .detail .token-item{align-self:flex-start}
body .detail .token-thumb{justify-content:flex-start}
body .detail .token-thumbnails:has(>.token-item:nth-child(3)){--tw:min(144px,calc((100cqw - 16px) / 3 - 6px))}
@media(max-width:620px){body .detail .token-thumbnails:has(>.token-item:nth-child(3)){--tw:min(120px,calc((100cqw - 16px) / 3 - 4px))}}
body .detail .token-thumbnails:has(>.token-item:nth-child(3)) .token-thumb{width:calc(var(--tw) + 6px);padding:4px 3px}
@media(max-width:620px){body .detail .token-thumbnails:has(>.token-item:nth-child(3)) .token-thumb{width:calc(var(--tw) + 4px);padding:4px 2px}}
body .detail .token-thumbnails:has(>.token-item:nth-child(3)) .token-art{width:var(--tw);height:calc(var(--tw) * 1.389)}
body .detail .token-thumbnails:has(>.token-item:nth-child(3)) .token-crop.is-cropped{width:min(100%,calc(var(--tw) * 1.389 * var(--token-ratio)))}
/* 모바일: 맨 아래로 옮긴 영웅 대사 */
body .detail .hero-dialogue-bottom{grid-column:1/-1;margin:0;padding:16px 8px 4px;border-top:1px solid #a28a62}body .detail .hero-dialogue-bottom .hero-dialogue{margin:0}
/* 이전/다음 카드 화살표: 넓은 화면은 양피지 바깥 양옆 가운데, 좁은 화면은 양피지 위쪽 빈 줄(닫기 버튼 옆) */
body .detail .card-step{position:absolute;top:6px;z-index:6;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:8px;background:transparent;cursor:pointer;transition:transform .15s ease,filter .15s ease}
body .detail .card-step img{display:block;width:auto;height:34px;filter:drop-shadow(0 2px 3px rgba(40,20,5,.45))}
body .detail .card-step.is-prev{left:10px}body .detail .card-step.is-next{right:56px}
body .detail .card-step:hover{transform:scale(1.08);filter:brightness(1.08)}
body .detail .card-step:focus-visible{outline:2px solid #ffd77e;outline-offset:2px}
@media(min-width:1340px){body .detail .card-step{position:fixed;top:50%;width:52px;height:80px;margin-top:-40px}body .detail .card-step img{height:60px}body .detail .card-step.is-prev{left:calc(var(--step-detail-left, 50% - 600px) - 62px);right:auto}body .detail .card-step.is-next{left:calc(var(--step-detail-right, 50% + 600px) + 10px);right:auto}}
.voice-switcher-tabs{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:14px 0 8px}.voice-switch{font:inherit;font-size:13px;padding:6px 12px;border:1px solid #a78c60;border-radius:999px;background:#f2e6cd;color:#513b27;cursor:pointer}.voice-switch[aria-pressed=true]{background:#703029;border-color:#703029;color:#fff}.voice-turn{animation:voice-turn .25s ease-out}@keyframes voice-turn{from{opacity:.55;transform:perspective(500px) rotateY(-12deg)}to{opacity:1;transform:perspective(500px) rotateY(0)}}@media(prefers-reduced-motion:reduce){.voice-turn{animation:none}}

.token-item{display:flex;flex-direction:column;align-items:center;min-width:0}.voice-switcher[hidden]{display:none}.voice-switcher{text-align:center}.voice-switcher>.voice-switch{margin:3px auto 8px}.voice-switch[hidden]{display:none}
.voice-switcher{width:100%;max-width:100%}.voice-switcher .card-voices{box-sizing:border-box;margin-top:16px}

body .detail .token-thumb[aria-pressed=true] .token-name{color:#703029;font-weight:700;text-decoration:underline;text-underline-offset:3px}

body .token-card-link{font-size:12px;color:#79492c;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:4px 5px}

/* 카드와 시리즈 링크를 둘 다 살짝만 강조한다. 원문과 링크 동작은 유지한다. */
body a.card-reference,body .detail a.card-reference{font-weight:500;-webkit-text-stroke:.075px currentColor}
body a.card-reference strong,body .detail a.card-reference strong{font-weight:inherit}
/* 보조 기능은 머리 배경의 오른쪽에 작게 배치한다. */
body .isolated-trigger{position:absolute;z-index:3;top:27px;right:16px;min-height:40px;margin:0;padding:0 12px;border:1px solid #b18b50;border-radius:7px;background:rgba(15,31,49,.82);color:#fff0d2;font-family:inherit;font-size:14px;font-weight:600;text-decoration:none;box-shadow:0 1px 3px #0007}
body .isolated-trigger:hover{background:#392417;color:#fff6e4}
@media(max-width:520px){body .isolated-trigger{top:15px;right:8px;min-height:40px;padding:0 8px;font-size:13px}body .site-view-nav:not(.site-view-nav--deck) .view-link{min-width:0;padding-left:5px;padding-right:5px}body .site-view-nav:not(.site-view-nav--deck) .view-link img{width:58px;height:50px}}
@media(max-width:360px){body .site-view-nav:not(.site-view-nav--deck) .view-link{padding-left:4px;padding-right:4px}body .site-view-nav:not(.site-view-nav--deck) .view-link img{width:51px;height:48px}}
/* 상세 제목 오른쪽의 작은 더보기 메뉴 */
body .card-heading .card-link-menu{position:relative;flex:0 0 40px;margin:-4px -7px 0 2px;z-index:5}
body .card-heading .card-link-menu-trigger{display:flex;align-items:center;justify-content:center;width:40px;height:40px;cursor:pointer;list-style:none;border-radius:6px;color:#6d4e31;font-size:25px;line-height:1;font-weight:600}
body .card-heading .card-link-menu-trigger::-webkit-details-marker{display:none}body .card-heading .card-link-menu-trigger:hover,body .card-heading .card-link-menu[open] .card-link-menu-trigger{background:#e3d3b3}body .card-heading .card-link-menu-trigger:focus-visible{outline:2px solid #765329;outline-offset:1px}
body .card-heading .card-link-menu-panel{position:absolute;right:0;top:42px;min-width:136px;padding:5px;border:1px solid #c6ae82;border-radius:8px;background:#f4e8d0;box-shadow:0 5px 16px #3b261c40}
body .card-heading .card-link-menu-panel button{display:block;width:100%;min-height:44px;border:0;border-radius:5px;padding:0 12px;background:transparent;color:#56391f;text-align:left;font-size:15px}body .card-heading .card-link-menu-panel button:hover{background:#e8d8b9}
@media(max-width:520px){body .card-heading .series-badges{max-width:45%}body .card-heading .card-link-menu{flex-basis:36px;margin-right:-8px}body .card-heading .card-link-menu-trigger{width:36px}}
/* 카드 이미지와 이름을 한눈에 볼 수 있는 반응형 연결 목록 */
body .link-inspector{width:min(720px,calc(100vw - 24px));max-height:min(78vh,700px);padding:20px;background:#f2e6cf;color:#2c2c2b}
body .link-inspector-search{display:block;width:100%;height:42px;margin:0 0 14px;padding:0 12px;border:1px solid #c5b18d;border-radius:7px;background:#fbf3e2;color:#2d241a;font-size:15px}body .link-inspector-search[hidden]{display:none}
body .link-inspector-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}
body .link-inspector-list li{display:block;min-width:0;min-height:0;padding:0;border:0}body .link-inspector-list li[hidden]{display:none}
body .link-inspector-list .link-inspector-tile{display:flex;align-items:center;gap:8px;min-height:78px;height:100%;padding:8px;border:1px solid #d3bd98;border-radius:8px;background:#f9efd9;color:#4d2a1b;text-decoration:none;transition:background .12s,border-color .12s}
body .link-inspector-list .link-inspector-tile:hover{background:#fff7e6;border-color:#ac7b46}body .link-inspector-art{display:block;width:38px;height:54px;object-fit:contain;flex:0 0 38px}body .link-inspector-copy{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}body .link-inspector-copy strong{font-size:14px;line-height:1.35;font-weight:650;overflow-wrap:anywhere}body .link-inspector-type{font-size:12px;line-height:1.25;color:#765b3d}body .link-inspector-empty{margin:14px 0 0;color:#65513a;font-size:14px}
@media(max-width:600px){body .link-inspector{padding:16px}body .link-inspector-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}body .link-inspector-list .link-inspector-tile{min-height:74px;padding:7px;gap:6px}body .link-inspector-art{width:32px;height:49px;flex-basis:32px}}

/* 폰트 지원과 관계없이 세 개의 점이 선명하게 보이도록 표시한다. */
body .card-heading .card-link-menu-trigger::before{content:'';display:block;width:4px;height:4px;border-radius:50%;background:currentColor;box-shadow:0 -7px currentColor,0 7px currentColor}
body .link-inspector-type{font-size:14px}

/* 모든 스크롤바를 양피지와 나무 색에 맞춘다. */
html{scrollbar-width:thin;scrollbar-color:#896341 #e6d6b9}
body *{scrollbar-width:thin}
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-track{background:#e6d6b9;border-radius:10px}
*::-webkit-scrollbar-thumb{background:#896341;border:2px solid #e6d6b9;border-radius:10px}
*::-webkit-scrollbar-thumb:hover{background:#684527}
body .filter-menu{scrollbar-color:#c0a277 #38291e}
body .filter-menu::-webkit-scrollbar-track{background:#38291e}
body .filter-menu::-webkit-scrollbar-thumb{background:#c0a277;border-color:#38291e}
/* 역링크와 고립 카드 목록은 같은 넓이와 반응형 칸 수를 쓴다. */
body .link-inspector{width:min(1100px,calc(100vw - 24px))}
@media(min-width:760px){body .link-inspector .link-inspector-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* 선택지 묶음은 좁은 카드 상세 열에서도 세 칸으로 차분히 정렬한다. */
body .detail .token-group-items.token-thumbnails{gap:12px 4px}
body .detail .token-group-items.token-thumbnails .token-item{width:calc((100% - 8px)/3);min-width:0}
body .detail .token-group-items.token-thumbnails .token-thumb{width:100%;padding:4px 2px}
body .detail .token-group-items.token-thumbnails .token-art{width:min(100%,88px);height:122px}
body .detail .token-group-items.token-thumbnails .token-crop.is-cropped{width:min(100%,calc(122px * var(--token-ratio)))}

/* 본문 토큰 링크에서 이동한 위치를 잠시 강조한다. */
body .detail .token-item.is-reference-target{border-radius:9px;background:rgba(255,205,110,.6);outline:2px solid #9c7434;outline-offset:2px}

/* 네 장이 보이는 토큰 묶음은 마지막 한 장이 남지 않도록 2×2로 배치한다. */
body .detail .token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5))){--tw:min(144px,calc((100cqw - 8px) / 2 - 6px))}
body .detail .token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5)))>.token-item{width:calc((100% - 8px) / 2)}
body .detail .token-group-items.token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5)))>.token-item{width:calc((100% - 4px) / 2)}
@media(max-width:620px){body .detail .token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5))){--tw:min(120px,calc((100cqw - 8px) / 2 - 4px))}}

/* 원형 손패에만 네 장씩: 일반 토큰의 기존 3열·4장 2열 배치는 유지한다. */
body .detail .wheel-view .token-thumbnails{gap:12px 8px;--tw:calc((100cqw - 24px) / 4 - 6px)}
body .detail .wheel-view .token-thumbnails>.token-item,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5)))>.token-item{width:calc((100% - 24px) / 4);min-width:0}
body .detail .wheel-view .token-thumbnails .token-thumb,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(3)) .token-thumb{width:100%;padding:4px 3px}
body .detail .wheel-view .token-thumbnails .token-art,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(3)) .token-art{width:100%;height:auto;aspect-ratio:114/158}
body .detail .wheel-view .token-thumbnails .token-crop.is-cropped,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(3)) .token-crop.is-cropped{width:min(100%,calc(var(--tw) * 1.389 * var(--token-ratio)))}

/* 원형 손패가 있는 카드만 왼쪽 열을 넓혀 네 장의 그림을 크게 보여준다. */
body .detail .wheel-view{width:100%;min-width:0}
@media(min-width:850px){body .detail:has(.wheel-view){grid-template-columns:minmax(0,min(480px,44%)) minmax(0,1fr)}}
body .detail .wheel-view .token-thumbnails,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5))){gap:12px 4px;--tw:calc((100cqw - 12px) / 4 - 2px)}
body .detail .wheel-view .token-thumbnails>.token-item,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(4)):not(:has(>.token-item:nth-child(5)))>.token-item{width:calc((100% - 12px) / 4)}
body .detail .wheel-view .token-thumbnails .token-thumb,body .detail .wheel-view .token-thumbnails:has(>.token-item:nth-child(3)) .token-thumb{padding:4px 1px}
