/* ToastyCraft icon showcase: bigger break-out icons + faded watermark of the same icon behind each button/card. */

/* ---------- shared watermark ---------- */
.tc-ghosted{position:relative;isolation:isolate}
.tc-ghosted::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;
 background:var(--ghost) no-repeat var(--gp,112% 118%)/var(--gs,84%) auto;
 opacity:var(--go,.16);
 -webkit-mask-image:linear-gradient(150deg,transparent 10%,#000 80%);mask-image:linear-gradient(150deg,transparent 10%,#000 80%);
 transition:opacity .35s ease,background-position .55s cubic-bezier(.2,.8,.25,1),background-size .55s cubic-bezier(.2,.8,.25,1)}
.tc-ghosted:is(:hover,:focus-visible)::before{background-position:var(--gph,106% 110%);background-size:calc(var(--gs,84%) + 8%) auto;opacity:calc(var(--go,.16) + .08)}
[data-theme=dark] .tc-ghosted{--go:.2}

/* soft glow that sits behind the break-out icon */
.cards>.card.tc-ghosted::after{content:"";position:absolute;left:50%;top:36%;width:84%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;
 background:radial-gradient(circle,#fff8 0,#fff0 68%);z-index:-1;pointer-events:none}
[data-theme=dark] .cards>.card.tc-ghosted::after{background:radial-gradient(circle,#ffe9c522 0,#ffe9c500 68%)}

/* ---------- HOME TILES ---------- */
@media(min-height:560px){
 .cards>.card{overflow:visible}
 .cards>.card.tc-ghosted{--gp:116% 124%;--gph:108% 114%;--gs:96%}
 .cards>.card .card-art{position:relative;z-index:1;width:clamp(64px,70cqi,156px);max-width:none;margin:-4cqi 0 -10cqi;transform:translateY(-13cqi);transition:transform .35s cubic-bezier(.2,.8,.25,1.25)}
 .cards>.card .card-art svg{filter:drop-shadow(0 12px 9px #4129192e) drop-shadow(0 2px 1px #41291933)}
 .cards>.card:is(:hover,:focus-visible) .card-art{transform:translateY(-18cqi) scale(1.08) rotate(-3deg)}
 .cards>.card .card-title{position:relative;z-index:1}
}

/* ---------- RULES BUTTONS ---------- */
.tc-rules-button.tc-ghosted{--gp:108% 130%;--gs:70%;--go:.2}
.tc-rules-button svg{width:58px;height:58px;margin:-10px 0}
.tc-rules-button svg{filter:drop-shadow(0 7px 5px #4129192b)}
.tc-server-row .tc-rules-button svg{width:56px;height:56px;margin:-8px 0 -6px}
.tc-discord-hero-row .tc-rules-button svg{width:132px;height:132px;margin:-40px 0 -8px}
.tc-discord-hero-row .tc-rules-button.tc-ghosted{--gp:120% 140%;--gs:100%}

/* ---------- WIKI + MAPS CARDS ---------- */
.tc-map-choices{row-gap:76px;margin-top:64px}
.tc-map-choice{overflow:visible}
.tc-map-choice.tc-ghosted{--gp:112% 112%;--gph:106% 106%;--gs:72%;--go:.15}
.tc-map-choice .tc-map-emblem{background:radial-gradient(circle,#fff8 0,#fff0 66%)!important;width:100%!important;height:150px!important;border-radius:0!important;margin:-70px 0 32px!important}
[data-theme=dark] .tc-map-choice .tc-map-emblem{background:radial-gradient(circle,#ffe9c524 0,#ffe9c500 66%)!important}
.tc-map-choice .tc-map-emblem svg{width:190px!important;height:190px!important;transition:transform .35s cubic-bezier(.2,.8,.25,1.25);filter:drop-shadow(0 14px 10px #41291933)}
.tc-map-choice:is(:hover,:focus-visible) .tc-map-emblem svg{transform:translateY(-8px) scale(1.06) rotate(-3deg)}

/* ---------- DISCORD PAGE ---------- */
.discord-features{margin-top:56px}
.tc-community-main .community-grid .community-symbol{display:grid;place-items:center;background:radial-gradient(circle,#fff6 0,#fff0 68%)!important;border:0!important;box-shadow:none!important;width:104px;height:104px;margin:-89px 0 4px -10px;border-radius:0}
[data-theme=dark] .tc-community-main .community-grid .community-symbol{background:radial-gradient(circle,#ffe9c51f 0,#ffe9c500 68%)!important}
.community-grid .community-symbol .tc-polished-icon{width:104px!important;height:104px!important;filter:drop-shadow(0 10px 7px #41291930)}
.community-grid article.tc-ghosted{--gp:114% 118%;--gs:62%;--go:.16}
.tc-community-main .discord-invite-panel .community-symbol{display:grid;place-items:center;background:none!important;border:0!important;box-shadow:none!important;width:112px;height:70px;margin:-34px -6px -34px -6px}
.discord-invite-panel .community-symbol .tc-polished-icon{width:116px!important;height:116px!important;filter:drop-shadow(0 10px 7px #41291930)}
.discord-invite-panel.tc-ghosted{--gp:78% 50%;--gs:34%;--go:.2}

/* ---------- STORE CATEGORY TILES (landing) ---------- */
.tc-shop-landing #category-nav{margin-top:34px}
.tc-shop-landing #category-nav button{overflow:visible}
.tc-shop-landing #category-nav button.tc-ghosted{--gp:122% 128%;--gph:112% 118%;--gs:92%}
.tc-shop-redesign.tc-shop-landing #category-nav .tc-category-icon{background:radial-gradient(circle,#fff7 0,#fff0 68%)!important;border:0!important;box-shadow:none!important;width:100%!important;height:66px!important;border-radius:0!important}
[data-theme=dark] .tc-shop-redesign.tc-shop-landing #category-nav .tc-category-icon{background:radial-gradient(circle,#ffe9c51f 0,#ffe9c500 68%)!important}
.tc-shop-redesign.tc-shop-landing #category-nav .tc-category-icon .tc-category-vector{width:120px!important;height:120px!important;transform:translateY(-24px);transition:transform .35s cubic-bezier(.2,.8,.25,1.25);filter:drop-shadow(0 11px 8px #4129192e)}
.tc-shop-redesign.tc-shop-landing #category-nav button:is(:hover,:focus-visible) .tc-category-vector{animation:none;transform:translateY(-31px) scale(1.07) rotate(-3deg)}

/* ---------- narrow screens ---------- */
@media(max-width:700px){
 .tc-community-main .community-grid{row-gap:74px!important;gap:74px 14px}
 .tc-community-main .community-grid .community-symbol{width:84px;height:84px;margin:-70px 0 6px -6px}
 .community-grid .community-symbol .tc-polished-icon{width:88px!important;height:88px!important}
 .discord-features{margin-top:80px}
 .tc-map-choices{row-gap:64px;margin-top:56px}
 .tc-map-choice .tc-map-emblem{height:124px!important;margin:-58px 0 26px!important}
 .tc-map-choice .tc-map-emblem svg{width:156px!important;height:156px!important}
 .tc-discord-hero-row .tc-rules-button svg{width:92px!important;height:92px!important;margin:-26px 0 -6px}
 .tc-shop-redesign.tc-shop-landing #category-nav .tc-category-icon .tc-category-vector{width:96px!important;height:96px!important;transform:translateY(-18px)}
 .tc-shop-redesign.tc-shop-landing #category-nav button:is(:hover,:focus-visible) .tc-category-vector{transform:translateY(-22px) scale(1.06)}
}
@media(prefers-reduced-motion:reduce){
 .tc-ghosted::before,.cards>.card .card-art,.tc-map-choice .tc-map-emblem svg,.tc-shop-redesign.tc-shop-landing #category-nav .tc-category-icon .tc-category-vector{transition:none!important}
 .cards>.card:is(:hover,:focus-visible) .card-art,.tc-map-choice:is(:hover,:focus-visible) .tc-map-emblem svg{transform:none!important}
}

/* ---------- STORE PACKAGE CARDS (ranks, coins, keys, claims, gift cards, extras): bigger break-out icon, gentle float, faded ghost ---------- */
.tc-shop-redesign .catalog{row-gap:48px;padding-top:30px}
.tc-shop-redesign .product{overflow:visible}
/* the sale ribbon used to be trimmed by the card's overflow:hidden; trim it to the same corner shape itself */
.tc-shop-redesign .product .tc-sale-ribbon{clip-path:polygon(0 100%,36px 0,108px 0,130px 100%)}
/* art panel: tint + ghost live in pseudo-elements so the icon itself can leave the card */
.tc-shop-redesign .product .art{height:158px!important;min-height:0!important;background:none!important;position:relative;isolation:isolate;overflow:visible}
.tc-shop-redesign .product .art::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--tint);border-radius:13px 13px 0 0}
[data-theme=dark] .tc-shop-redesign .product .art::before{background:#49392e;background:color-mix(in srgb,var(--tint,#e9b98c) 24%,#251e1b)}
.tc-shop-redesign .product .art[data-tc-pkg-ghost]::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:var(--tc-pkg-ghost) no-repeat 62% 46%/auto 215%;opacity:.3;
 filter:blur(7px) saturate(1.1);clip-path:inset(0 round 13px 13px 0 0)}
[data-theme=dark] .tc-shop-redesign .product .art[data-tc-pkg-ghost]::after{opacity:.34}
/* main icon: larger, lifted so its top sits outside the card, floats slowly */
.tc-shop-redesign .product .art>.package-image{position:relative;z-index:1;height:200px!important;max-height:none!important;max-width:100%!important;filter:drop-shadow(0 12px 9px #4129192e);translate:0 -18px;animation:tc-pkg-float 5.4s ease-in-out infinite alternate;transition:scale .35s cubic-bezier(.2,.8,.25,1.25)}
.tc-shop-redesign .product .art>.tc-tier-trio{position:relative;z-index:1;height:190px;scale:1.08;filter:drop-shadow(0 12px 9px #4129192e);translate:0 -16px;animation:tc-pkg-float 5.4s ease-in-out infinite alternate;transition:scale .35s cubic-bezier(.2,.8,.25,1.25)}
.tc-shop-redesign .product:hover .art>.package-image{scale:1.06}
.tc-shop-redesign .product:hover .art>.tc-tier-trio{scale:1.14}
.tc-shop-redesign .product:nth-child(3n+2) .art>*{animation-delay:-1.8s;animation-duration:6s}
.tc-shop-redesign .product:nth-child(3n) .art>*{animation-delay:-3.6s;animation-duration:4.8s}
@keyframes tc-pkg-float{0%{translate:0 -18px;rotate:-1.3deg}100%{translate:0 -25px;rotate:1.3deg}}
@media(max-width:700px){.tc-shop-redesign .catalog{row-gap:44px}.tc-shop-redesign .product .art{height:140px!important}.tc-shop-redesign .product .art>.package-image{height:176px!important}.tc-shop-redesign .product .art>.tc-tier-trio{height:170px}}
@media(prefers-reduced-motion:reduce){.tc-shop-redesign .product .art>*{animation:none!important}}
