/* As peças geradas são camadas; arte e texto do catálogo continuam independentes. */
.tcg-card{--tcg-ink:#f5e8d8;--tcg-paper:#211b18;--tcg-stock:#171311;--tcg-accent:#ce8c65;display:block;position:relative;width:100%;aspect-ratio:2/3;container-type:inline-size;isolation:isolate;color:var(--tcg-ink);text-align:left;filter:drop-shadow(0 12px 18px #0005);font-family:var(--f-body,'Hanken Grotesk',sans-serif)}
.tcg-card[data-layout=observatory]{--tcg-ink:#e9f3fa;--tcg-paper:#12212e;--tcg-stock:#101b25;--tcg-accent:#91cbd7}
.tcg-card[data-layout=archive]{--tcg-ink:#342920;--tcg-paper:#f0e0c4;--tcg-stock:#2d221b;--tcg-accent:#bd9270}
.tcg-stock{position:absolute;inset:3% 4%;background:radial-gradient(ellipse at 50% 28%,#ffffff0a,transparent 65%),var(--tcg-stock);border-radius:2%;z-index:-1}
.tcg-layer{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.tcg-frame{z-index:7}
.tcg-name-layer{position:absolute;top:7.1%;left:10.5%;width:79%;height:9%;z-index:8;display:grid;place-items:center}
.tcg-name{position:relative;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:83%;font:650 3.6cqw/1.12 var(--f-body,sans-serif);text-align:center;color:var(--tcg-ink);letter-spacing:0;text-transform:none}
.tcg-kind{position:absolute;top:17.5%;left:12%;right:12%;display:flex;justify-content:space-between;gap:5%;font:600 2.5cqw/1.2 var(--f-body,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:#e2d5c6;z-index:2}
.tcg-card[data-layout=observatory] .tcg-kind{color:#adcbd5}.tcg-card[data-layout=archive] .tcg-kind{color:#dbb899}
.tcg-kind>span{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcg-art{position:absolute;top:22%;left:11.5%;width:77%;height:38%;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center,#ffffff08,transparent 70%);border-radius:1.5%;z-index:1}
.tcg-art>.tcg-item-image{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;border-radius:0}
.tcg-art>.item-badge-art{display:block;width:52cqw;height:52cqw;max-width:100%;max-height:100%;object-fit:contain;aspect-ratio:1}
.tcg-art>.tcg-frame-item{display:block;width:53cqw;height:53cqw;max-width:100%;max-height:100%;object-fit:contain}
.tcg-art>.cosmetic-avatar,.tcg-art>.avf{width:53cqw;height:53cqw;aspect-ratio:1;margin:0;max-width:100%;max-height:100%}
.tcg-art .cosmetic-frame-overlay{width:100%;height:100%}
.tcg-art .cosmetic-nameplate{width:98%;max-width:100%;font-size:4cqw}.tcg-art .cosmetic-title{width:96%;max-width:100%}
.tcg-art .rf-emblem,.tcg-art .platform-badge{display:block;width:52cqw;height:52cqw;aspect-ratio:1;margin:0;max-width:100%;max-height:100%}
.tcg-art .collection-art.badge{width:53cqw;height:53cqw;display:grid;place-items:center}
.tcg-art>.item-art{width:100%;height:100%;padding:0;background:none}.tcg-art .item-rarity{display:none}
.tcg-art-fallback{display:grid;place-items:center;width:50%;height:50%;color:var(--tcg-accent)}.tcg-art-fallback>.ui-icon{width:60%;height:60%}
.tcg-card[data-kind=banner] .tcg-art,.tcg-card[data-kind=roombg] .tcg-art{top:22%;left:23.5%;width:53cqw;height:53cqw;background:#08090a;box-shadow:0 0 0 1px #ffffff21;border-radius:2%}
.tcg-card[data-kind=banner] .tcg-art>.tcg-item-image,.tcg-card[data-kind=roombg] .tcg-art>.tcg-item-image{object-fit:cover}
.tcg-card[data-kind=avatar] .tcg-art{top:21.5%;height:40.5%}
.tcg-card[data-kind=avatar] .tcg-art>.cosmetic-avatar{padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none}
.tcg-seal{position:absolute;left:13%;right:13%;top:60.3%;height:5%;display:flex;align-items:center;justify-content:flex-end;gap:2%;color:var(--tcg-accent);font:600 2.7cqw/1 var(--f-body,sans-serif);z-index:3}
.tcg-seal img{width:6.5%;height:auto;aspect-ratio:1;object-fit:contain}.tcg-seal>span{letter-spacing:.06em}
.tcg-rules{position:absolute;left:10.8%;top:67%;width:78.4%;height:20%;z-index:2}
.tcg-rules-copy{position:absolute;inset:13% 7%;display:flex;flex-direction:column;justify-content:center;gap:9%;color:var(--tcg-ink)}
.tcg-rules-copy>b{font:650 3cqw/1.2 var(--f-body,sans-serif);text-transform:none;letter-spacing:0}.tcg-rules-copy>span{font:400 3.05cqw/1.35 var(--f-body,sans-serif);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tcg-colophon{position:absolute;top:89.2%;left:13%;right:13%;display:flex;justify-content:space-between;gap:7%;color:#c7af94;font:500 2cqw/1.35 var(--f-body,sans-serif);z-index:2}
.tcg-colophon>span:first-child{max-width:70%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tcg-colophon>span:last-child{white-space:nowrap}
.tcg-back-art{display:block;width:100%;height:100%;position:absolute;inset:0;border-radius:1.8%;object-fit:contain}
.tcg-back-brand{position:absolute;left:16%;right:16%;top:40%;height:20%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10%;color:#edd4bb;text-align:center}
.tcg-back-brand b{font:540 8cqw/1.2 var(--f-display,'Anybody',serif);letter-spacing:-.035em}.tcg-back-brand>span{font:500 2.2cqw/1.3 var(--f-body,sans-serif);letter-spacing:.16em;white-space:nowrap}
.tcg-back[data-layout=observatory] .tcg-back-brand{color:#cbe5ef}.tcg-back-edition{position:absolute;top:83%;left:14%;right:14%;text-align:center;color:#dbc5b0;font:500 2.5cqw/1.2 var(--f-body,sans-serif)}
/* Capa Crisol preservada por inteiro: sua borda já faz parte da imagem. */
.tcg-card[data-layout=realmforge]{--tcg-ink:#f4e9dd;--tcg-paper:#101113;--tcg-stock:#171311;--tcg-accent:#dca091}
.tcg-cover{z-index:0;object-fit:contain;border-radius:1.8%}
.tcg-foil{z-index:4;mix-blend-mode:screen;opacity:.36;mask-image:radial-gradient(ellipse at 35% 35%,#fff 15%,#ffffff90 65%,transparent 95%);clip-path:inset(1% round 2%)}
.tcg-card[data-layout=realmforge] .tcg-name-layer{top:10.2%;left:10.8%;width:78.4%;height:auto;aspect-ratio:6.2/1}
.tcg-card[data-layout=realmforge] .tcg-name{width:81%;font-size:4cqw;line-height:1.06}
.tcg-card[data-layout=realmforge] .tcg-kind{top:20.3%;color:#e2d5c6;font-size:2.3cqw;z-index:7}
.tcg-card[data-layout=realmforge] .tcg-art{top:23.1%;left:12%;width:76%;height:auto;aspect-ratio:1;background:none}
.tcg-card[data-layout=realmforge] .tcg-art>.item-badge-art,.tcg-card[data-layout=realmforge] .tcg-art>.tcg-frame-item,.tcg-card[data-layout=realmforge] .tcg-art>.cosmetic-avatar,.tcg-card[data-layout=realmforge] .tcg-art>.avf,.tcg-card[data-layout=realmforge] .tcg-art .rf-emblem,.tcg-card[data-layout=realmforge] .tcg-art .platform-badge,.tcg-card[data-layout=realmforge] .tcg-art .collection-art.badge{width:76cqw;height:76cqw}
.tcg-card[data-layout=realmforge][data-kind=avatar] .tcg-art{border-radius:50%}
.tcg-card[data-layout=realmforge][data-kind=banner] .tcg-art,.tcg-card[data-layout=realmforge][data-kind=roombg] .tcg-art{background:#090a0bb3;box-shadow:0 0 0 1px #ffffff16}
.tcg-card[data-kind=banner] .tcg-art>.tcg-item-image,.tcg-card[data-kind=roombg] .tcg-art>.tcg-item-image{object-fit:contain}
.tcg-card[data-layout=realmforge] .tcg-rules{left:10.8%;top:77%;width:78.4%;height:auto;aspect-ratio:3.2/1;z-index:7}
.tcg-card[data-layout=realmforge] .tcg-rules-copy{inset:16% 8%;gap:1.2cqw}
.tcg-card[data-layout=realmforge] .tcg-rules-copy>b{font-size:2.2cqw;letter-spacing:.07em;text-transform:uppercase}
.tcg-card[data-layout=realmforge] .tcg-rules-copy>span{font-size:2.7cqw;line-height:1.32}
.tcg-card[data-layout=realmforge] .tcg-colophon{top:75%;left:12%;right:35%;font-size:1.7cqw;color:#d2bca5;z-index:7}
.tcg-card[data-layout=realmforge] .tcg-seal{top:74.5%;left:69%;right:12%;height:2%;font-size:2.15cqw;gap:5%;z-index:7}
.tcg-card[data-layout=realmforge] .tcg-seal img{width:18%;max-height:100%}
.tcg-back[data-layout=realmforge] .tcg-back-brand{left:19%;right:19%;top:32%;height:auto;gap:5cqw;color:#f4e9dd;z-index:7}
.tcg-insignia{display:block;width:52%;height:auto;aspect-ratio:212/180;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
.tcg-back[data-layout=realmforge] .tcg-back-brand b{font-size:7.5cqw}
.tcg-back[data-layout=realmforge] .tcg-back-brand>span{font-size:2cqw}
.tcg-back[data-layout=realmforge] .tcg-back-edition{top:83%;color:#dbc5b0;z-index:7}
.item-card.has-tcg{border:0;background:transparent;overflow:visible;min-width:0}.has-tcg .item-visual{background:none}.has-tcg .item-open{display:block;padding:0;width:100%;height:auto;overflow:visible;border-radius:12px;background:none;border:0}.has-tcg .item-open>.tcg-card{margin:0;width:100%}
.has-tcg .item-info{background:#211e1b;border:1px solid var(--forge-line,#5b493a);border-radius:12px;margin-top:10px;padding:13px 14px}.has-tcg .item-info h2{font-size:14px;min-height:0;margin:5px 0 10px}.has-tcg .item-info>p{font-size:12px;line-height:1.4}.has-tcg .item-wish{top:20%;right:6%;z-index:9;min-width:36px;min-height:36px;backdrop-filter:blur(8px)}
dialog.tcg-dialog{width:min(940px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:44px 18px 18px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:auto;color:#f3eadd}
dialog.tcg-dialog::backdrop{background:#090b0ee8;backdrop-filter:blur(14px)}
dialog.tcg-dialog>.tcg-close,dialog.tcg-dialog>form{position:absolute;right:18px;top:0;margin:0;z-index:20}dialog.tcg-dialog .close{position:relative;top:auto;right:auto;display:grid;place-items:center;border:1px solid #ffffff27;background:#242527e0;border-radius:50%;width:44px;height:44px;padding:11px;color:#efe7dd}
.tcg-showcase{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,310px);align-items:center;gap:44px;max-width:100%;text-align:left}.tcg-presentation{min-width:0;display:grid;justify-items:center;gap:14px}.tcg-stage{width:min(100%,400px);min-width:0}.tcg-stage [hidden]{display:none!important}.tcg-side-controls{display:flex;gap:4px;padding:4px;border:1px solid #ffffff1b;background:#ffffff06;border-radius:99px}.tcg-side-controls button{min-height:40px;padding:8px 23px;background:none;border:0;border-radius:99px;color:#b5b7bc;font:600 13px var(--f-body,sans-serif)}.tcg-side-controls button[aria-pressed=true]{background:#ffffff15;color:#f5ece3}
.tcg-context{min-width:0;max-width:100%;padding:0;background:none;text-align:left}.tcg-context .eyebrow{font:600 10px/1.5 var(--f-body,sans-serif);letter-spacing:.09em;color:#b1b9c2;margin-bottom:9px}.tcg-context h2{font:600 clamp(23px,3vw,32px)/1.15 var(--f-body,sans-serif);text-transform:none;letter-spacing:-.035em;margin:0 0 18px;overflow-wrap:anywhere}.tcg-context p{line-height:1.6}.tcg-full-description{font-size:14px;color:#c3c2c0;margin:0 0 18px}.tcg-context .local-note{color:#93969b;font-size:11px;line-height:1.6;margin-top:16px}.tcg-status{padding:10px 0;border-top:1px solid #ffffff18;border-bottom:1px solid #ffffff18;font-size:13px;color:#dbbc94}
.tcg-context .reward-rule{background:#ffffff05;border:1px solid #ffffff19;color:#d5cfc6;padding:14px;border-radius:10px;margin:16px 0;font-size:12px;line-height:1.5}.tcg-context .reward-rule p{font-size:11px;margin:8px 0 0;color:#acb0b4}.tcg-context .cosmetic-sources{margin:16px 0;color:#b2b7bf;font-size:12px}.tcg-context .cosmetic-sources a{color:#b2d1da;overflow-wrap:anywhere}
.tcg-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:20px}.tcg-actions>.button{justify-content:center;min-height:46px;white-space:normal;text-align:center}.tcg-profile-preview{margin:18px 0;color:#cad0d8;font-size:12px}.tcg-profile-preview summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.tcg-profile-preview .collection-profile{margin:8px 0;min-width:0;width:100%;max-width:100%;box-sizing:border-box}.tcg-profile-preview .collection-profile h3{overflow-wrap:anywhere}.tcg-profile-preview .cosmetic-title{max-width:100%}
.tcg-original-preview{margin:16px 0;color:#cad0d8;font-size:12px}.tcg-original-preview summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.tcg-original-preview>.tcg-original-image{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border-radius:8px;margin:8px 0}
.tcg-side-controls button:focus-visible,.tcg-dialog .close:focus-visible,.has-tcg .item-open:focus-visible{outline:2px solid #b8d2dc;outline-offset:4px}
@media (max-width:760px){dialog.tcg-dialog{width:calc(100vw - 20px);padding:48px 8px 24px;max-height:calc(100dvh - 20px)}.tcg-showcase{grid-template-columns:minmax(0,1fr);gap:26px}.tcg-stage{width:min(100%,360px)}.tcg-context{padding:0 12px 8px}.tcg-context h2{font-size:25px}.tcg-side-controls button{min-height:44px}.item-grid:has(.has-tcg){grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.has-tcg .item-info{padding:10px}.has-tcg .item-info h2{font-size:12px}.has-tcg .item-info>small{font-size:9px}.has-tcg .item-seals{gap:3px}.has-tcg .item-card-bottom{flex-wrap:wrap}.has-tcg .item-wish{min-width:32px;min-height:32px;width:32px;height:32px;padding:7px}.has-tcg .item-info .shop-add{min-height:40px}.has-tcg .item-info .shop-add-label{display:none}.has-tcg .item-info>.cosmetic-requirement{font-size:10px}.tcg-profile-preview .collection-profile{padding:15px}}
@media(prefers-reduced-transparency:reduce){dialog.tcg-dialog::backdrop{backdrop-filter:none;background:#101114fa}}
