/* Confirmed C: the selected real card and its searchable catalog share one page. */
body[data-mobile-page='collection'].collectible-gallery-page > main{width:min(1280px,calc(100% - 64px));margin:18px auto 0}
.collectible-gallery{display:grid;grid-template-columns:400px minmax(0,1fr);column-gap:36px;row-gap:18px;color:#194B40;min-width:0}
.collectible-gallery *{box-sizing:border-box}
.collectible-gallery [hidden]{display:none!important}
.collectible-gallery__heading{grid-column:1;grid-row:1;display:flex;align-items:baseline;gap:10px;min-width:0}
.collectible-gallery__title{margin:0;font:800 28px/1.4 'Ttobak Header','Noto Sans KR',sans-serif;letter-spacing:-.02em}
.collectible-gallery__total{font-size:15px;font-weight:600;color:#5D7268;white-space:nowrap}
.collectible-gallery__preview{grid-column:1;grid-row:2 / 5;padding-top:6px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.collectible-gallery__preview .ddori-collectible-stage{width:300px;margin:0;--gallery-card-scale:.9375}
.collectible-gallery__preview .ddori-collectible-card{height:435px;aspect-ratio:auto}
.collectible-gallery__preview .ddori-collectible-card__content{padding:calc(24px * var(--gallery-card-scale)) calc(23px * var(--gallery-card-scale)) calc(22px * var(--gallery-card-scale))}
.collectible-gallery__preview .ddori-collectible-card__top{font-size:calc(9px * var(--gallery-card-scale));letter-spacing:calc(2.3px * var(--gallery-card-scale))}
.collectible-gallery__preview .ddori-collectible-card__top::after{font-size:calc(9px * var(--gallery-card-scale));padding:2px 8px}
.collectible-gallery__preview .ddori-collectible-card__title{font-size:calc(25px * var(--gallery-card-scale));white-space:nowrap;width:100%;letter-spacing:-.04em}
.collectible-gallery__preview .ddori-collectible-card__mascot{max-height:calc(240px * var(--gallery-card-scale));width:91%;height:auto;padding:0;object-fit:contain}
.collectible-gallery__controls{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.collectible-gallery__controls .collection-search{height:44px;min-height:44px;flex:1 1 300px;max-width:300px;position:relative;padding-left:42px;background:#fffefa;border:1px solid #DCDDD0;border-radius:14px}
.collectible-gallery .collection-search__input{width:100%;height:100%;min-height:0;text-align:left;padding:0;font:500 14px/1.4 var(--ui-font);color:#3f5a50}
.collectible-gallery .collection-filters{flex:none;display:inline-flex;gap:4px;padding:4px;border:1px solid #E0E3D6;background:#EEF0E6;border-radius:14px}
.collectible-gallery .collection-filter{min-width:0;min-height:44px;padding:7px 14px;font:600 14px/1 var(--ui-font);letter-spacing:-.01em;white-space:nowrap}
.collectible-gallery__expand{display:none}
.collectible-gallery__results{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.collectible-gallery__list-panel{grid-column:2;grid-row:2 / 5;min-width:0}
.collectible-gallery__grid{display:grid;grid-template-columns:repeat(6,minmax(0,124px));gap:16px 14px;align-content:start;padding:3px}
.collectible-gallery__item{min-width:0}
.collectible-gallery__thumbnail{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:0;border:0;background:none;border-radius:14px;color:#2E3F35;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.collectible-gallery__thumbnail-frame{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:14px;background:var(--theme-tint,#EAEFE1);overflow:hidden}
.collectible-gallery__thumbnail[data-rarity='special'] .collectible-gallery__thumbnail-frame{background:linear-gradient(135deg,#F3E4EF,#E3EEEA)}
.collectible-gallery__thumbnail[aria-pressed='true'] .collectible-gallery__thumbnail-frame{box-shadow:0 0 0 3px #2F7765}
.collectible-gallery__thumbnail img{display:block;width:91%;height:91%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.collectible-gallery__thumbnail-name{font:600 14px/1.4 var(--ui-font);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.collectible-gallery__pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:20px}
.collectible-gallery__pagination button,.collectible-gallery__reset,.collectible-gallery__expand{min-height:44px;padding:8px 14px;border:1px solid var(--paper-line);border-radius:12px;background:var(--paper-grain),var(--paper);color:var(--paper-ink);box-shadow:var(--paper-shadow);font:600 15px/1 var(--ui-font);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.collectible-gallery__pagination button:disabled{opacity:.45;box-shadow:none;cursor:default}
.collectible-gallery button:focus-visible,.collectible-gallery input:focus-visible{outline:3px solid #2F7765;outline-offset:3px}
.collectible-gallery button:focus:not(:focus-visible){outline:none}
.collectible-gallery__empty{text-align:center;padding:40px 16px;font-size:15px;line-height:1.6}
@media(min-width:801px) and (max-width:1350px){.collectible-gallery{grid-template-columns:340px minmax(0,1fr);gap:18px 24px}.collectible-gallery__grid{grid-template-columns:repeat(5,minmax(0,124px))}.collectible-gallery__controls .collection-search{min-width:140px}.collectible-gallery .collection-filter{padding-inline:11px}}
@media(min-width:801px) and (max-width:1100px){.collectible-gallery{grid-template-columns:300px minmax(0,1fr)}.collectible-gallery__grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collectible-gallery__controls{flex-wrap:wrap}.collectible-gallery__controls .collection-search{max-width:none;flex-basis:100%}.collectible-gallery__heading{align-items:center;flex-wrap:wrap;align-content:center;gap:2px 8px}}
@media(max-width:800px){
 body[data-mobile-page='collection'].collectible-gallery-page > main{width:calc(100% - 32px);margin-top:14px}
 .collectible-gallery{display:flex;flex-direction:column;gap:0}
 .collectible-gallery__heading{gap:8px}
 .collectible-gallery__title{font-size:22px}
 .collectible-gallery__total{font-size:14px}
 .collectible-gallery__preview{padding:0;margin-top:14px}
 .collectible-gallery__preview .ddori-collectible-stage{width:276px;max-width:100%;--gallery-card-scale:.8625}
 .collectible-gallery__preview .ddori-collectible-card{height:400px}
 .collectible-gallery__controls{margin-top:14px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}
 .collectible-gallery__controls .collection-search{display:none;order:3;flex-basis:100%;max-width:none}
 .collectible-gallery__expand{display:inline-flex;align-items:center;justify-content:center;font-size:15px;padding:0 7px;min-height:44px;border:0;background:transparent;box-shadow:none;color:#2F7765}
 .collectible-gallery__list-panel{margin-top:12px}
 .collectible-gallery__grid{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 3px 8px;scroll-padding:3px;touch-action:pan-x pan-y pinch-zoom;scrollbar-width:thin}
 .collectible-gallery__item{flex:none;width:76px}
 .collectible-gallery__thumbnail-frame{border-radius:14px}
 .collectible-gallery__thumbnail-name{font-size:13px;line-height:1.3;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:clip}
 .collectible-gallery[data-expanded='true'] .collection-search{display:flex}
 .collectible-gallery[data-expanded='true'] .collectible-gallery__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:14px 10px}
 .collectible-gallery[data-expanded='true'] .collectible-gallery__item{width:auto}
 .collectible-gallery[data-expanded='true'] .collectible-gallery__results{position:static;width:auto;height:auto;clip-path:none;margin:12px 0 0;font-size:13px;color:#5D7268}
}
@media(forced-colors:active){.collectible-gallery__thumbnail-frame{border:1px solid CanvasText}.collectible-gallery__thumbnail[aria-pressed='true'] .collectible-gallery__thumbnail-frame{outline:3px solid Highlight}}

.collectible-gallery .collection-search__icon{position:absolute;left:16px;top:50%;width:18px;height:18px;transform:translateY(-50%);pointer-events:none}
.collectible-gallery .collection-search__icon::before{content:'';position:absolute;left:0;top:0;width:13px;height:13px;border:1.75px solid currentColor;border-radius:50%}
.collectible-gallery .collection-search__icon::after{content:'';position:absolute;left:12px;top:12px;width:7px;height:1.75px;border-radius:1px;background:currentColor;transform:rotate(45deg);transform-origin:left center}
.collectible-gallery__pagination button:not(:disabled):active,.collectible-gallery__reset:active{translate:0 1px;box-shadow:var(--paper-shadow-pressed)}

/* November 13 (owner choice E): the page title uses the cuter Dongle Bold face.
   The file holds only the six letters of '또리 카드 도감' (1.5KB). */
@font-face{font-family:'Ttori Gallery Title';src:url('./assets/dongle-bold-gallery-title.woff2') format('woff2');font-weight:700;font-display:swap}
.collectible-gallery__title{font:700 50px/1 'Ttori Gallery Title','Ttobak Header','Noto Sans KR',sans-serif;letter-spacing:0}
@media (max-width:760px){.collectible-gallery__title{font-size:40px}}

/* November 17 (owner request): 도감 — 아직 받지 못한 카드는 그림자와 "?"로. */
.collectible-gallery__thumbnail[data-locked] .collectible-gallery__thumbnail-frame{position:relative;background:#e9ece6!important}
.collectible-gallery__thumbnail[data-locked] .collectible-gallery__thumbnail-frame img{filter:brightness(0);opacity:.16}
.collectible-gallery__thumbnail[data-locked] .collectible-gallery__thumbnail-frame::after{content:'?';position:absolute;inset:0;display:grid;place-items:center;font-size:30px;font-weight:800;color:#8b968d}
.collectible-gallery__thumbnail[data-locked] .collectible-gallery__thumbnail-name{color:#616d64}
.collectible-gallery__preview[data-locked] .ddori-collectible-card{filter:saturate(.15)}
.collectible-gallery__preview[data-locked] .ddori-collectible-card__front .ddori-collectible-card__content img{filter:brightness(0);opacity:.15}
