:root{font-family:"Pretendard","Noto Sans KR",system-ui,sans-serif;color:#213942;background:#f7f8f6;font-synthesis:none;line-height:1.55}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-underline-offset:4px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #167ba0;outline-offset:4px}.site-head,main,footer{max-width:1200px;margin:auto}.site-head{display:flex;align-items:center;justify-content:space-between;padding:24px 20px;border-bottom:1px solid #d9e0df;gap:15px}.site-head a{text-decoration:none;font-weight:750}.brand{font-size:20px}.brand span{font-size:14px;font-weight:500;border-left:1px solid #b8c7c9;padding-left:14px;margin-left:14px}main{padding:0 24px 70px}.intro{display:grid;grid-template-columns:1.25fr 1fr;gap:70px;align-items:center;padding:64px 0}.eyebrow{font-size:13px;letter-spacing:.1em;color:#607780;margin:0 0 12px}h1{font-size:clamp(36px,4.8vw,60px);line-height:1.17;letter-spacing:-.06em;margin:0 0 23px}h2{font-size:26px;letter-spacing:-.04em;margin:0}p{word-break:keep-all}.battle-invite{display:block;background:#223f49;color:#fff;text-decoration:none;padding:34px 38px;border-radius:6px;border-top:5px solid #a4ced0;box-shadow:8px 8px 0 #dee6e6}.battle-invite span{font-size:11px;letter-spacing:.16em;color:#acd4dc}.battle-invite strong{display:block;font-size:29px;margin-top:28px}.battle-invite p{color:#c8dadd}.battle-invite b{display:block;margin-top:32px}.arena{scroll-margin-top:20px;padding:30px;background:#fff;border:1px solid #cedbdd;border-radius:8px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-head .eyebrow{margin-bottom:5px}.practice-label{white-space:nowrap;background:#e6eff1;color:#3d606c;font-size:12px;padding:5px 10px}.muted{color:#5a7078;font-size:13px}.deck-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.deck-slot{min-height:96px;border:1px dashed #a7bdc2;padding:12px;display:flex;align-items:center;gap:10px;border-radius:5px;background:#f7fafb}.deck-slot img{width:50px;height:64px;object-fit:cover}.deck-slot span{flex:1;font-size:13px}.deck-slot button{border:0;background:none;color:#506c75}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:4px;text-decoration:none;font-weight:700;min-height:46px}.primary{color:#fff;background:#214e5d;border:1px solid #214e5d}.secondary{color:#284c59;background:#fff;border:1px solid #b7cccf}.room-actions{display:flex;align-items:end;flex-wrap:wrap;gap:14px}.room-actions label{font-size:12px}.room-actions input{display:block;max-width:200px;text-transform:uppercase;letter-spacing:.12em;padding:11px;border:1px solid #aac0c6;border-radius:4px}.room-code{font-size:clamp(24px,4vw,40px);font-weight:800;letter-spacing:.16em;margin:14px 0}.room-status{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:20px 0}.score{font-size:32px;font-weight:800;white-space:nowrap}.hand{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.hand-card{border:1px solid #a6bcc4;border-radius:5px;background:#f2f7f8;color:#223c49;padding:12px;display:flex;flex-direction:column;gap:10px;align-items:center}.hand-card img{height:120px;width:100%;object-fit:contain}.hand-card b{font-size:26px}.hand-card[aria-pressed=true]{border:3px solid #16718c;background:#e3f0f3}.round-history{padding:0;list-style:none}.round-history li{padding:12px 0;border-bottom:1px solid #e0e8e9;display:grid;grid-template-columns:85px 1fr 40px 1fr;gap:12px;font-size:13px}.round-history small{display:block;color:#698087}#arena-message{min-height:1.5em;color:#305e6b;font-size:14px}#arena-message.error{color:#ad392b}.catalog{padding-top:58px}.filters{display:flex;align-items:end;gap:18px;margin:24px 0 12px}.filters label{font-size:12px;font-weight:600}.filters select,.filters input[type=search]{display:block;padding:12px;border:1px solid #bacacd;background:#fff;border-radius:4px;min-width:0;width:100%;margin-top:5px}.filters select{max-width:320px}.search-label{flex:1}.owned-filter{display:flex;align-items:center;gap:6px;white-space:nowrap;min-height:46px}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 20px;margin-top:24px}.history-card{min-width:0;background:#fff;border:1px solid #c4d1d4;border-radius:9px;overflow:hidden;box-shadow:0 3px 8px #203f4810;display:flex;flex-direction:column}.history-card.is-selected{outline:3px solid #3b869c}.card-art{display:block;width:100%;border:0;padding:0;background:#e6edee;text-align:left;cursor:pointer;position:relative}.card-art img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .2s}.card-art:hover img{transform:scale(1.015)}.card-kind{position:absolute;top:10px;left:10px;background:#203e49ef;color:white;font-size:10px;letter-spacing:.06em;padding:4px 8px}.card-copy{padding:15px;display:flex;flex-direction:column;flex:1}.card-copy small{color:#57737e;font-size:11px}.card-copy h3{font-size:18px;line-height:1.3;margin:7px 0 12px;word-break:keep-all}.card-stats{display:flex;justify-content:space-between;border-top:1px solid #e0e6e8;border-bottom:1px solid #e0e6e8;padding:8px 0;margin-top:auto;gap:4px}.card-stats span{font-size:10px;color:#57717b}.card-stats b{display:block;font-size:19px;color:#284552}.card-select{border:0;background:#e9f1f3;color:#294f5c;font-size:12px;font-weight:700;min-height:40px;margin-top:10px;border-radius:4px}.card-select[aria-pressed=true]{background:#275e70;color:white}.collected{font-size:11px;color:#296350;margin-bottom:7px}.empty{grid-column:1/-1;padding:35px;background:#eaf0f1;text-align:center}#show-more{display:flex;margin:28px auto 0}#show-more[hidden]{display:none}footer{padding:25px 24px 40px;border-top:1px solid #d5dedf;font-size:12px;color:#607780}footer a{display:block;margin-top:10px}dialog{border:1px solid #bbced2;border-radius:10px;max-width:620px;width:calc(100% - 30px);max-height:90vh;padding:24px;color:#233e49}dialog::backdrop{background:#102d37a6}.dialog-close{display:flex;margin-left:auto;margin-bottom:15px}#detail-body>img{width:100%;max-height:380px;object-fit:contain;background:#edf1f0}#detail-body h2{margin-top:20px}.source-note{font-size:12px;color:#667d86}.source-note a{display:block}@media(max-width:760px){.site-head{padding:18px}.brand{font-size:17px}.brand span{display:none}main{padding:0 18px 45px}.intro{grid-template-columns:1fr;gap:26px;padding:38px 0}.battle-invite{padding:22px 26px}.battle-invite strong{margin-top:13px;font-size:24px}.battle-invite b{margin-top:16px}.arena{padding:20px 16px}h2{font-size:22px}.section-head{gap:12px}.deck-slots{gap:7px}.deck-slot{flex-direction:column;position:relative;text-align:center;padding:10px 6px;font-size:12px}.deck-slot button{position:absolute;right:0;top:0}.deck-slot img{height:60px;width:55px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.card-copy{padding:12px}.card-copy h3{font-size:16px}.filters{flex-wrap:wrap;gap:10px}.filters>label:first-child{width:100%}.filters select{max-width:none}.owned-filter{font-size:11px!important}.card-stats b{font-size:17px}.hand{gap:6px}.hand-card{padding:10px 5px;font-size:11px}.hand-card img{height:85px}.round-history li{grid-template-columns:60px 1fr 20px 1fr;gap:6px;font-size:11px}.catalog{padding-top:40px}#catalog-count{font-size:12px;white-space:nowrap}.room-actions{align-items:stretch}.room-actions>button{flex:1}.room-actions label{width:100%}.room-actions input{max-width:none;width:100%}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.history-card .card-art img{aspect-ratio:4/5}.history-card .card-art .illustrated-art{object-fit:contain;background:#eef2f3}
.image-caption{display:block;padding:8px 12px;background:#edf2f3;color:#405e69;font-size:11px;line-height:1.5;min-height:34px;word-break:keep-all}
.deck-slot .image-caption,.hand-card .image-caption{display:none}
.site-connection{padding:14px 0;border-top:1px solid #d5dedf;line-height:1.7;font-size:14px}
/* Member collection layout */
[hidden]{display:none!important}:root{color:#253e39;background:#f6f5ef;font-size:16px}html{scroll-padding-top:22px}.site-head,main,footer{max-width:1120px}.site-head{padding:18px 24px}.collection-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:40px 0 30px}.collection-intro h1{font-size:clamp(28px,3vw,40px);line-height:1.3;letter-spacing:-.055em;margin:0 0 12px}.collection-intro p:last-child{color:#60716a;margin:0;font-size:15px}.collection-summary{padding:24px 30px;min-width:210px;border-radius:20px;background:#e6ede4;color:#284c3e;display:grid;gap:6px}.collection-summary>span{font-size:13px}.collection-summary strong{font-size:36px}.collection-summary a{min-height:44px;display:flex;align-items:center;font-size:14px}.card-tabs{display:flex;gap:24px;border-bottom:1px solid #d5dbcf}.card-tabs a{display:flex;align-items:center;gap:10px;min-height:54px;text-decoration:none;font-weight:750}.card-tabs a:first-child{border-bottom:3px solid #305b47}.card-tabs span{font-size:12px;color:#6a786c}.catalog{padding-top:28px}.section-head h2{font-size:24px}.muted{font-size:14px;line-height:1.7}.filters{display:grid;grid-template-columns:220px 1fr;gap:16px}.filters label{font-size:13px}.filters input[type=search],.filters select{border-radius:10px;font-size:16px;min-height:48px}.card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:24px 0}.history-card{border:1px solid #d5d8c8;border-radius:16px;background:#fffef9;box-shadow:0 4px 14px #203f4808}.history-card .card-art img{aspect-ratio:1/1.15;object-fit:cover}.history-card .card-art .illustrated-art{object-fit:contain;background:#f0f0e6}.history-card .image-caption{display:none}.card-art{overflow:hidden;background:#eeefe6}.card-copy{padding:16px}.card-copy h3{font-size:20px;margin:6px 0 12px}.card-copy small{font-size:12px;line-height:1.5}.card-kind{border-radius:5px;font-size:11px}.card-stats span{font-size:11px}.card-stats b{font-size:21px}.card-select{min-height:46px;font-size:14px;border-radius:8px;background:#edf1e8;color:#2e503e}.history-card.is-selected{outline:3px solid #3b7551;outline-offset:0}.card-select[aria-pressed=true]{background:#305b47}.collected{display:none}.arena{margin-top:44px;border-radius:20px;padding:28px;border-color:#d2dbcf;background:#fffef9}.arena-guide{font-size:14px;color:#597064}.arena-guide span{padding:0 8px}.battle-rules{font-size:14px;color:#596d63}.battle-rules summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}.deck-slot{position:relative;flex-direction:column;justify-content:center;border-radius:12px;border-color:#bdcbbd;background:#f2f5ec;min-height:154px;text-align:center;padding:16px 12px}.deck-slot img{width:86px;height:96px;object-fit:contain}.deck-slot span{flex:initial;font-size:14px}.deck-slot button{position:absolute;top:2px;right:2px;min-width:44px;min-height:44px;border-radius:50%;background:#fffdf4c9;font-size:22px}.primary{background:#305b47;border-color:#305b47}.secondary{border-color:#bfccc0;color:#305441}.primary,.secondary{border-radius:10px;min-height:48px;font-size:15px}.room-actions{display:grid;grid-template-columns:1fr 1.2fr 1fr;align-items:end}.room-actions label{font-size:13px}.room-actions input{max-width:none;width:100%;min-height:48px;font-size:16px;border-radius:10px}.deck-tray{position:fixed;z-index:20;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(480px,calc(100% - 24px));border-radius:14px;background:#264e3e;color:#fff;box-shadow:0 5px 22px #16392e35;min-height:60px;padding:15px 20px;display:flex;align-items:center;justify-content:space-between;text-decoration:none;font-size:14px}.empty{border-radius:14px;background:#eaf0e6;display:grid;justify-items:center;gap:20px;padding:40px 20px;line-height:1.8}.access-gate{max-width:600px;margin:80px auto 120px;text-align:center;border:1px solid #d6dccf;border-radius:24px;background:#fffef9;padding:48px 24px}.access-gate h1{font-size:28px;line-height:1.4}.access-gate p{color:#657268;line-height:1.8}.gate-mark{font-size:50px;color:#547c55;display:block;margin-bottom:20px}.hand-card,.hand-card img{border-radius:10px}.practice-label{border-radius:20px;background:#e9eee4;color:#4c654d}footer{padding-bottom:110px}#detail-body .image-caption{background:none}dialog{border-radius:20px}.room-status h3{font-size:22px}.round-history li{font-size:14px}.image-caption{font-size:12px}
@media(max-width:850px){.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){main{padding:0 16px 36px}.site-head{padding:12px 16px}.collection-intro{padding:28px 0 22px;align-items:start;gap:14px}.collection-intro h1{font-size:27px}.collection-intro p:last-child{font-size:13px;line-height:1.7}.collection-summary{min-width:85px;padding:14px 12px;border-radius:14px}.collection-summary strong{font-size:27px}.collection-summary a{display:none}.eyebrow{font-size:11px}.card-tabs{gap:20px}.card-tabs a{font-size:14px;gap:6px}.filters{grid-template-columns:1fr;gap:12px}.filters>label:first-child{width:auto}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.card-copy{padding:12px 10px}.card-copy h3{font-size:17px}.card-copy small{font-size:11px}.card-stats span{font-size:10px}.card-stats b{font-size:19px}.card-select{font-size:12px;min-height:44px}.card-kind{top:8px;left:8px;padding:3px 6px}.arena{padding:22px 14px;margin-top:30px}.section-head h2{font-size:21px}.practice-label{font-size:10px;padding:6px 8px}.deck-slots{gap:8px}.deck-slot{padding:12px 5px;min-height:142px}.deck-slot img{width:65px;height:85px}.deck-slot span{font-size:12px}.room-actions{grid-template-columns:1fr;gap:12px}.room-actions label{margin-top:8px}.room-actions>button{width:100%}.hand-card img{height:110px}.round-history li{font-size:12px}.access-gate{margin:40px 0;padding:36px 20px}.access-gate h1{font-size:25px}.deck-tray{font-size:13px}.arena-guide{line-height:1.8}.brand{font-size:16px}}
/* Collection and duel are separate panels, including narrow phones. */
.card-tabs{position:sticky;top:0;z-index:15;background:#f6f5eff5;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px;border:1px solid #d7ddcf;border-radius:14px;backdrop-filter:blur(12px)}
.card-tabs a,.card-tabs a:first-child{justify-content:center;border:0;border-radius:9px;min-height:48px;font-size:15px}
.card-tabs a[aria-current=page]{background:#305b47;color:#fff;box-shadow:0 2px 6px #244a4320}.card-tabs a[aria-current=page] span{color:#dce9da}
.arena{margin-top:24px;scroll-margin-top:80px}.battle-empty{padding:36px 18px;text-align:center;background:#edf2e8;border-radius:16px;margin:22px 0;display:grid;justify-items:center;gap:8px}.battle-empty strong{font-size:24px}.battle-empty p{max-width:380px;margin:8px 0 18px;line-height:1.8;color:#5c7060}.received-date{font-size:11px;color:#66795f;margin:-4px 0 12px}.receipt-note{background:#edf2e8;padding:14px;border-radius:10px;color:#39583f;font-size:14px}.deck-tray{border:1px solid #467b5e}#arena-message:empty{display:none}.hand-card{min-width:0;word-break:keep-all}
@media(max-width:600px){.card-tabs a,.card-tabs a:first-child{font-size:14px;gap:5px}.card-tabs span{font-size:11px}.battle-empty{padding:28px 12px}.battle-empty strong{font-size:21px}.collection-intro{padding:22px 0}.hand{gap:7px}.hand-card{padding:9px 5px;font-size:12px}.hand-card img{height:100px}.received-date{font-size:10px}.round-history li{grid-template-columns:54px minmax(0,1fr) 20px minmax(0,1fr);gap:5px}}
.history-card .card-art .object-art,#detail-body .object-art{object-fit:contain;background:#fffdf5}

/* A shared image frame and text slots keep every collection card the same size. */
.history-card .card-art{aspect-ratio:2/3;flex:none;background:#fffdf5}
.history-card .card-art img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;background:#fffdf5}
/* Leave extra headroom above the crown while retaining its hanging ornaments. */
.history-card .card-art img[src$="/silla-gold-crown-photo.jpg"]{padding-top:8%;object-position:center bottom;background:#0a0a08}
.history-card .card-copy{--card-title-size:20px;--card-meta-size:12px;display:grid;grid-template-rows:calc(var(--card-meta-size)*3) calc(var(--card-title-size)*2.6) 17px auto 46px;gap:8px;flex:none}
.history-card .card-copy>small{grid-row:1;font-size:var(--card-meta-size);line-height:1.5}
.history-card .card-copy>h3{grid-row:2;font-size:var(--card-title-size);line-height:1.3;margin:0}
.history-card .card-copy>small,.history-card .card-copy>h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.history-card .received-date{grid-row:3;margin:0;line-height:17px}
.history-card .card-stats{grid-row:4;margin:0}
.history-card .card-select{grid-row:5;margin:0;min-height:46px}
@media(max-width:600px){.history-card .card-copy{--card-title-size:17px;--card-meta-size:11px}}

/* Historical relationships: readable on the board and in a compact reference book. */
.combo-book{margin:20px 0;padding:16px;border:1px solid #b9cfc4;border-radius:16px;background:#edf4ef;color:#173d35}
.combo-book summary{cursor:pointer;font-weight:800;min-height:32px}.combo-book>p{line-height:1.7;font-size:14px}
#combo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.combo-entry{display:flex;gap:12px;border:1px solid #d0dcd1;border-radius:12px;background:#fff;padding:14px;min-width:0}.combo-entry.is-active{border:2px solid #33825f}
.combo-entry>div:last-child{min-width:0;flex:1}.combo-entry h3{font-size:16px;margin:0 0 6px}.combo-entry p{font-size:13px;line-height:1.65}.combo-entry strong,.combo-entry a{font-size:13px}.combo-entry button{white-space:normal;min-height:44px}
.combo-pair{width:64px;flex-shrink:0}.combo-pair img{width:64px;height:86px;object-fit:contain;background:#fff9ed;border-radius:6px;display:block;margin-bottom:6px}
.combo-chip{display:block;background:#e5f2e8;color:#21513a;border-radius:6px;padding:6px 8px;font-size:12px;line-height:1.5;margin:6px 0;white-space:normal}
.combo-ownership{color:#347753}.combo-reveal{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px auto;max-width:680px;color:#fff2cf}.combo-reveal p{margin:0;padding:14px;border:1px solid #809477;border-radius:12px;background:#082a2bec}.combo-reveal span,.combo-reveal small{display:block;line-height:1.7;font-size:13px}.duel-submit small{display:block;font-size:12px;line-height:1.6}
@media(max-width:640px){#combo-list,.combo-reveal{grid-template-columns:1fr}.combo-entry{padding:10px}.combo-book{padding:12px}.combo-reveal p{padding:10px}.combo-pair{width:52px}.combo-pair img{width:52px;height:74px}}
.combo-choices{border:1px solid #a88b48;border-radius:16px;padding:16px;margin:16px 0;background:#fffcf2;color:#243e39;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.combo-choices legend{font-weight:800;padding:0 6px}.combo-choices p{grid-column:1/-1;margin:0;font-size:14px}.combo-choices button{min-height:72px;padding:12px;text-align:left;border:2px solid #d6cda8;border-radius:12px;background:#fff;color:#243e39;white-space:normal}.combo-choices button[aria-pressed="true"]{border-color:#2e6555;background:#e7f0e9;box-shadow:inset 0 0 0 1px #2e6555}.combo-choices button span{display:block;font-size:13px;margin-top:6px}.combo-choices button:focus-visible{outline:3px solid #db8915;outline-offset:3px}@media(max-width:480px){.combo-choices{grid-template-columns:1fr;padding:12px}}
.combo-choices legend{float:left;width:100%;padding:0;font-size:16px;line-height:1.5;margin:0 0 6px}.combo-choices p{clear:both}

.card-source-info{margin-top:20px;border-top:1px solid #d9e0df;padding-top:4px}.card-source-info summary{cursor:pointer;padding:12px 0;font-size:14px;font-weight:700}.card-source-info summary:focus-visible{outline:3px solid #167ba0;outline-offset:3px}.card-source-info .source-note{overflow-wrap:anywhere}.card-source-info .source-note a{display:inline-block;margin-top:4px}

/* 머리 왼쪽은 글자 대신 로고를 쓴다 (2026-09-11 "왼쪽 상단 로고 넣자 이미지 있잖아").
   다른 화면(게임랜드 · 역사어드벤처)이 모두 같은 로고를 쓰므로 결이 맞는다.
   너비/높이 속성을 함께 둬서 로고가 늦게 떠도 옆 글자가 밀리지 않는다. */
.brand{display:inline-flex;align-items:center;gap:14px;min-width:0}
.brand img{display:block;width:auto;height:24px;flex:none}
.brand span{border-left:1px solid #b8c7c9;padding-left:14px;margin-left:0}
@media(max-width:760px){.brand img{height:21px}}
@media(max-width:420px){.brand img{height:19px}}
