/* AntiMetaOCG v0.19.3 brand layer
 * Preserve the original theme layout and sizing. Only recolor the visual system,
 * replace the three existing hero-card faces, and style the Duel Lab/add-on UI.
 */
:root{
  --bg:#020402!important;--panel:#071008!important;--panel2:#0b160d!important;--text:#f5fff5!important;
  --muted:#8ea691!important;--line:rgba(116,255,111,.16)!important;--violet:#61ff55!important;--cyan:#8cff82!important;--gold:#b2ff72!important;
  --am-bg:#020402!important;--am-panel:#071008!important;--am-panel2:#0b160d!important;--am-text:#f5fff5!important;
  --am-muted:#8ea691!important;--am-cyan:#8cff82!important;--am-violet:#61ff55!important;--am-gold:#b2ff72!important;--am-line:rgba(103,255,87,.16)!important;
  --am-green:#67ff57;--am-green2:#b6ff72;--am-ink:#020402;
}
body{background:#020402!important;color:#f5fff5}

/* Original theme header/home/footer — same geometry, green identity */
.amocg-header{background:rgba(2,4,2,.97)!important;border-color:rgba(103,255,87,.16)!important}
.amocg-brand a{color:#f7fff7!important}.amocg-brand a:before{color:#67ff57!important}
.amocg-nav a{color:#c8d6ca!important}.amocg-nav a:hover{color:#fff!important}
.amocg-search{border-color:rgba(103,255,87,.16)!important}
.amocg-shop-pill{background:#67ff57!important;color:#020402!important}
.am-original-logo{display:block;max-width:220px;max-height:48px;width:auto;height:auto;object-fit:contain}

.amocg-hero-v2{
  background:radial-gradient(circle at 72% 35%,rgba(103,255,87,.18),transparent 30%),radial-gradient(circle at 90% 70%,rgba(140,255,130,.08),transparent 25%),linear-gradient(135deg,#020402 0%,#071008 60%,#030603 100%)!important;
}
.amocg-hero-v2:before{background-image:linear-gradient(rgba(103,255,87,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(103,255,87,.026) 1px,transparent 1px)!important}
.amocg-eyebrow{color:#8cff82!important}.amocg-lead{color:#a6b8a8!important}
.amocg-btn.primary{background:linear-gradient(135deg,#72ff63,#42d83b)!important;color:#020402!important}
.amocg-btn.ghost{border-color:rgba(103,255,87,.2)!important;background:rgba(103,255,87,.025)!important}
.amocg-orb{border-color:rgba(103,255,87,.38)!important;box-shadow:0 0 90px rgba(103,255,87,.14),inset 0 0 90px rgba(103,255,87,.05)!important}
.amocg-orb:after,.amocg-orb:before{border-color:rgba(103,255,87,.08)!important}

/* EXACT original three hero-card slots: keep theme width/height/left/top/rotation unchanged. */
.amocg-card-silhouette{display:block!important;background-color:#030603!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;border-color:rgba(103,255,87,.25)!important;box-shadow:0 24px 60px rgba(0,0,0,.5),0 0 24px rgba(103,255,87,.08)!important;cursor:pointer;text-decoration:none!important;overflow:hidden}
.amocg-card-silhouette:before,.amocg-card-silhouette:after{display:none!important}
.amocg-card-silhouette:hover{border-color:rgba(140,255,130,.7)!important;filter:brightness(1.06) saturate(1.08)}
.amocg-card-silhouette:focus-visible{outline:3px solid #8cff82;outline-offset:4px}
.amocg-cross{color:rgba(103,255,87,.028)!important}
.amocg-ticker{background:#040704!important;color:#a4b5a6!important;border-color:rgba(103,255,87,.12)!important}.amocg-ticker b{color:#67ff57!important}
.amocg-section{color:#f5fff5}.amocg-section-head>p,.amocg-feature p,.amocg-community p:not(.amocg-eyebrow){color:#8ea691!important}
.amocg-feature{background:#071008!important;border-color:rgba(103,255,87,.14)!important}.amocg-feature:hover{background:#0b160d!important;border-color:rgba(103,255,87,.45)!important}.amocg-feature.featured{background:linear-gradient(135deg,rgba(103,255,87,.12),#071008)!important}.amocg-feature small{color:#8cff82!important}.amocg-feature>b{color:#67ff57!important}
.amocg-dark-panel{background:#040704!important;border-color:rgba(103,255,87,.12)!important}.amocg-text-link{color:#8cff82!important}
.amocg-news-card{background:#071008!important;border-color:rgba(103,255,87,.14)!important}.amocg-news-card .amocg-post-date{color:#8cff82!important}
.amocg-shop-banner{border-color:rgba(103,255,87,.26)!important;background:radial-gradient(circle at 85% 30%,rgba(103,255,87,.14),transparent 32%),linear-gradient(135deg,#071008,#030603)!important}.amocg-pack{background:linear-gradient(160deg,#0b160d,#030603)!important}.amocg-pack:after{border-color:rgba(140,255,130,.3)!important;color:rgba(182,255,114,.78)!important}
.amocg-footer{background:#010201!important;border-color:rgba(103,255,87,.12)!important}.amocg-footer-bottom span{color:#72ff63!important}

/* Existing AntiMeta plugin UI recolor — no layout replacement */
.am-header{background:rgba(2,4,2,.94)!important;border-color:rgba(103,255,87,.16)!important}.am-brand>span:last-child>span{color:#67ff57!important}.am-mark{background:radial-gradient(circle at 30% 30%,#b6ff72,#42d83b 45%,#071008 75%)!important;border-color:rgba(103,255,87,.35)!important;box-shadow:0 0 26px rgba(103,255,87,.18)!important}.am-nav-list a:hover,.am-nav-list .current-menu-item>a{color:#67ff57!important}.am-mini-btn,.am-primary,.am-community-action{background:linear-gradient(135deg,#71ff62,#42d83b)!important;color:#020402!important;box-shadow:0 10px 34px rgba(103,255,87,.14)!important}.am-icon,.am-ghost{border-color:rgba(103,255,87,.2)!important}.am-kicker,.am-text-link,.am-news-body small{color:#8cff82!important}.am-kicker i{background:#61ff55!important}.am-footer{background:#010201!important;border-color:rgba(103,255,87,.12)!important}.am-footer-bottom em{color:#72ff63!important}
.am-shop-v2 button,.amshop-panel button[type="submit"],#amshop-open-cart,.amshop-add{background:#72ff63!important;color:#020402!important;border-color:#72ff63!important}.am-shop-tabs button:not(.is-active),.amshop-view-deck{background:#0a100b!important;color:#efffef!important;border-color:rgba(103,255,87,.2)!important}.am-shop-tabs button.is-active{background:#72ff63!important;color:#020402!important}.am-shop-card{border-color:rgba(103,255,87,.18)!important;background:#071008!important}.amshop-product-badge,.am-shop-card>b,.amshop-total strong{color:#9cff6f!important}
.am-community .am-community-action,.am-card-list-btn.is-saved,.am-social-btn.is-active,.am-detail-build,.am-v19-btn.is-primary{background:#72ff63!important;color:#020402!important;border-color:#72ff63!important}.am-community .am-kicker,.am-card-library .am-kicker{color:#80ff70!important}

/* Duel Lab — new functionality from v0.19, styled to the same black/green system. */
.am-v19-duel-template{background:#020402;min-height:80vh}.am-duel-lab-page{width:min(1280px,calc(100% - 48px));margin:0 auto;padding:95px 0 110px}.am-duel-lab-hero{padding:50px 0 70px;border-bottom:1px solid rgba(103,255,87,.16);background:radial-gradient(circle at 72% 40%,rgba(103,255,87,.11),transparent 28%)}.am-duel-lab-hero h1{font-size:clamp(68px,9vw,128px);line-height:.8;letter-spacing:-.07em;margin:20px 0 32px}.am-duel-lab-hero h1 em{font-style:normal;color:#72ff63}.am-duel-lab-hero p{max-width:760px;color:#9daf9f;font-size:18px;line-height:1.7}.am-duel-lab-actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}.am-v19-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 22px;border:1px solid rgba(103,255,87,.23);background:#071008;color:#f5fff5;text-decoration:none;border-radius:7px;font-size:11px;font-weight:950;letter-spacing:.12em}.am-v19-btn:hover{border-color:#72ff63;transform:translateY(-1px)}.am-duel-roadmap{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:60px}.am-duel-roadmap article{min-height:260px;padding:28px;border:1px solid rgba(103,255,87,.16);background:#050905;display:flex;flex-direction:column}.am-duel-roadmap article.is-live{background:linear-gradient(135deg,rgba(103,255,87,.11),#050905)}.am-duel-roadmap span{font-size:9px;color:#72ff63;letter-spacing:.18em;font-weight:950}.am-duel-roadmap h2{font-size:29px;line-height:1.05;margin:24px 0 12px}.am-duel-roadmap p{color:#8fa392;line-height:1.6}.am-duel-roadmap strong{margin-top:auto;font-size:10px;letter-spacing:.12em;color:#caffc4;text-transform:uppercase}.am-duel-principle{margin-top:14px;padding:42px;border:1px solid rgba(103,255,87,.28);background:#071008}.am-duel-principle span{color:#72ff63;font-size:9px;font-weight:950;letter-spacing:.18em}.am-duel-principle h2{font-size:clamp(32px,4vw,54px);letter-spacing:-.045em;margin:12px 0}.am-duel-principle p{color:#8fa392}

@media(max-width:1050px){.am-duel-roadmap{grid-template-columns:1fr}.am-original-logo{max-width:190px}}
@media(max-width:760px){.am-duel-lab-page{width:min(100% - 30px,1280px)}.am-duel-lab-actions .am-v19-btn{width:100%}.am-duel-lab-hero h1{font-size:clamp(58px,20vw,86px)}.am-original-logo{max-width:170px;max-height:44px}}

/* v0.19.2: old hero-card face children are visually suppressed after JS marks a shortcut. */
.amocg-card-silhouette[data-am-shortcut="1"]>*{visibility:hidden!important;pointer-events:none!important}
.amocg-card-silhouette[data-am-shortcut="1"]{pointer-events:auto!important;touch-action:manipulation!important}

/* v0.19.3 homepage stability patch -------------------------------------------------
 * The artwork is CSS-backed, so it does not depend on JavaScript or cache timing.
 * JS only installs real <a> hitboxes and the slogan. Decorative layers cannot steal clicks.
 */
body.home .amocg-card-silhouette,
body.front-page .amocg-card-silhouette,
.amocg-card-silhouette{
  pointer-events:auto!important;
  cursor:pointer!important;
  isolation:isolate!important;
}
.amocg-card-silhouette.one{background-image:url('home-card-search.png')!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.amocg-card-silhouette.two{background-image:url('home-duel-lab.png')!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.amocg-card-silhouette.three{background-image:url('home-meta-hub.png')!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.amocg-card-silhouette>*:not(.amcore-home-hitbox){visibility:hidden!important;pointer-events:none!important}
.amocg-card-silhouette .amcore-home-hitbox{
  visibility:visible!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:2147483000!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  text-decoration:none!important;
  background:transparent!important;
  border:0!important;
  outline:0;
}
.amocg-card-silhouette .amcore-home-hitbox:focus-visible{
  outline:3px solid #8cff82!important;
  outline-offset:4px!important;
  border-radius:inherit;
}
.amocg-card-silhouette.amcore-home-shortcut-ready{z-index:80!important}
.amocg-card-silhouette.two.amcore-home-shortcut-ready{z-index:82!important}
.amocg-card-silhouette.three.amcore-home-shortcut-ready{z-index:81!important}
.amocg-orb,.amocg-cross,.amocg-hero-v2:before,.amocg-hero-v2:after{pointer-events:none!important}
.amcore-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Keep the original hero footprint while fitting the longer Worlds slogan. */
.amocg-hero-v2 h1 .amcore-worlds-line,
.amocg-hero-copy h1 .amcore-worlds-line,
.amocg-hero h1 .amcore-worlds-line{
  display:inline-block!important;
  font-size:.70em!important;
  line-height:1.02!important;
  letter-spacing:-.035em!important;
  white-space:nowrap!important;
  color:#f5fff5!important;
}
.amocg-hero-v2 h1 .amcore-worlds-outline,
.amocg-hero-copy h1 .amcore-worlds-outline,
.amocg-hero h1 .amcore-worlds-outline{
  display:inline-block!important;
  color:transparent!important;
  -webkit-text-stroke:1.5px rgba(245,255,245,.72)!important;
  text-stroke:1.5px rgba(245,255,245,.72)!important;
  line-height:.96!important;
  white-space:nowrap!important;
}
@media(max-width:780px){
  .amocg-hero-v2 h1 .amcore-worlds-line,.amocg-hero-copy h1 .amcore-worlds-line,.amocg-hero h1 .amcore-worlds-line{font-size:.64em!important;white-space:normal!important}
  .amocg-hero-v2 h1 .amcore-worlds-outline,.amocg-hero-copy h1 .amcore-worlds-outline,.amocg-hero h1 .amcore-worlds-outline{white-space:normal!important}
}
