/* Appearance only. The approved compact homepage keeps its existing styles. */
body.am-shared-style:not(.amcompact){
 --amss-panel:linear-gradient(135deg,#10212b59,#0b141e66 68%);
 --amss-button:linear-gradient(165deg,#356d364d,#12382959);
 --amss-border:#81bbcf85;--amss-text:#eef6f2;--amss-muted:#c0d0d8;
 --panel:#10212b80!important;--panel2:#14233147!important;--am-panel:#10212b80!important;--am-panel2:#14233147!important;
 --text:#eef6f2!important;--am-text:#eef6f2!important;--muted:#c0d0d8!important;--am-muted:#c0d0d8!important;
 background-color:#060b10!important;
 background-image:linear-gradient(#060b106b,#060b1080),url('/wp-content/plugins/antimeta-compact-home/background-desktop-v043.jpg')!important;
 background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-attachment:fixed!important;
 color:var(--amss-text);
}
body.am-shared-style:not(.amcompact) :is(main,.site-main,#page,#content,.site-content){background-color:transparent!important}
body.am-shared-style:is(.aml-page,.amml-page):before{background:none!important}
body.am-shared-style:not(.amcompact) :is(.amocg-header,.am-header,.amocg-footer,.am-footer,.aml-header,.amml-header){background:#09162270!important;border-color:var(--amss-border)!important}
body.am-shared-style:not(.amcompact) :is(.am-card,.am-card-tile,.am-empty,.am-zone,.am-builder-layout aside,.am-deck-library,.am-library-item,.am-mydeck-card,.am-auth-card,.am-community-login,.am-account-security-note,.am-public-card,.am-report-chart,.am-report-viz,.amocg-feature,.amocg-news-card,.amocg-dark-panel,.am-shop-card,.aml-card,.amml-card,.amap-launcher,.am-meta-columns>section,.am-meta-stats article,.am-news-grid article,.am-news-featured,.am-community-decks article,.am-community-stats article,.am-community-players>a,.am-community-results article,.am-community-events article,.am-account-stats article,.am-account-grid>section){
 background:var(--amss-panel)!important;border-color:var(--amss-border)!important;border-radius:12px;
 box-shadow:inset 0 1px #b8f5ff25,0 0 15px #64dbf20c,0 8px 22px #0003;
}
body.am-shared-style:not(.amcompact) :is(.am-mydeck-preview,.am-community-deck-art,.amocg-shop-banner){background:linear-gradient(135deg,#18344859,#09122273)!important}
body.am-shared-style:not(.amcompact) :is(button,input[type="submit"],.button,.amocg-btn,.amocg-shop-pill,.am-mini-btn,.am-primary,.am-community-action,.am-detail-build,.am-build-link,.am-mydeck-actions a,.am-community-deck-body>div a,.am-v19-btn,.amshop-add,.amshop-view-deck,.aml-button,.amml-button,.am-public-actions a,.am-library-actions a,.amp-button){
 background:var(--amss-button)!important;color:#f0fff0!important;border-color:#9cf16cb3!important;border-radius:8px;
 box-shadow:inset 0 1px #d1ffbf35,0 0 10px #79ff4220;
}
body.am-shared-style:not(.amcompact) :is(button,input[type="submit"],.button,.amocg-btn,.amocg-shop-pill,.am-mini-btn,.am-primary,.am-community-action,.am-detail-build,.am-build-link,.am-mydeck-actions a,.am-v19-btn,.amshop-add,.amshop-view-deck,.aml-button,.amml-button):hover{
 background:linear-gradient(#3c8041a6,#215532b8)!important;border-color:#b1ff7b!important;
}
body.am-shared-style:not(.amcompact) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select,textarea){background:#14233147!important;color:#f4faf6!important;border-color:#81bbcf85!important;border-radius:8px}
body.am-shared-style:not(.amcompact) select option{background:#10202c;color:#f4faf6}
body.am-shared-style:not(.amcompact) :is(.am-card-dialog,.amshop-panel,.am-deck-library){background:linear-gradient(135deg,#10212bad,#0b141eb8)!important}
body.am-shared-style:not(.amcompact) :is(.am-shop-v2 .am-shop-tools,.am-card-search-dock,.am-filter-panel){background:#091622ad!important;border-color:var(--amss-border)!important}
body.am-shared-style:not(.amcompact) :is(.am-shop-tabs button.is-active,.am-kind button.is-active,.am-auth-tabs a.is-active,.am-social-btn.is-active){background:linear-gradient(#356d36b8,#123829c9)!important;border-color:#b2ff77!important;color:#dcffc3!important}
body.am-shared-style:not(.amcompact) :is(.am-card,.am-card-tile){overflow:hidden}
body.am-shared-style:not(.amcompact) :is(h1,h2,h3,h4,h5,h6){color:#f0fff5}
body.am-shared-style:not(.amcompact) :is(.am-desc,.am-effect,.am-card-meta small,.am-mydeck-body p,.am-mydeck-body small,.am-meta-hero p,.am-news-hero p,.am-news-grid p,.am-community-hero p,.am-community-deck-body small,.am-community-players small,.am-community-results small,.aml-muted,.amml-muted){color:var(--amss-muted)!important}
body.am-shared-style:not(.amcompact) :is(.am-kicker,.am-arch,.am-text-link,.amocg-eyebrow,.amocg-text-link,.am-news-read,.amocg-footer a,.am-footer a,.aml-header a,.amml-header a){color:#b2ff77!important}
/* Keep destructive controls and feedback visibly distinct. */
body.am-shared-style:not(.amcompact) :is(button.is-danger,.am-library-actions .is-danger,.amp-cancel,.amst-remove){background:linear-gradient(#4b1c2773,#23121b8c)!important;border-color:#d8919d!important;color:#ffd2da!important}
body.am-shared-style:not(.amcompact) :is(button,a,input,select,textarea):focus-visible{outline:2px solid #b2ff77;outline-offset:3px}
body.am-shared-style:not(.amcompact) button:disabled{box-shadow:none}
@media(max-width:700px){
 body.am-shared-style:not(.amcompact){background-image:linear-gradient(#060b106b,#060b1080),url('/wp-content/plugins/antimeta-compact-home/background-mobile-v043.jpg')!important;background-size:100% 100%,100% auto!important;background-position:center center,center center!important}
}

/* Shared finishing pass: color fills only; dimensions and label opacity are preserved. */
body.am-shared-style.amcompact{background-image:linear-gradient(#060b106b,#060b1080),url('/wp-content/plugins/antimeta-compact-home/background-desktop-v043.jpg')!important}
body.am-shared-style.amcompact :is(.amc-card,.amc-info){background:linear-gradient(135deg,#10212b59,#0b141e66 68%)!important;box-shadow:inset 0 1px #d0ffbd26,0 6px 22px #0003}
body.am-shared-style.amcompact .amc-ranking{background:linear-gradient(135deg,#1834483d,#09122252)!important}
body.am-shared-style.amcompact :is(.amc-life,.amc-deck-row){background:#10212b33!important}
body.am-shared-style.amcompact :is(input,.amc-secondary,.amc-tools button){background:#14233140!important}
body.am-shared-style.amcompact .amc-button{background:linear-gradient(165deg,#356d364d,#12382959)!important}
body.am-shared-style :is(.amcv-dialog,.am-card-dialog,.amshop-panel){background:linear-gradient(135deg,#10212bad,#0b141eb8)!important;backdrop-filter:blur(12px)}
body.am-shared-style .amcv-close{background:#12382980!important}
body.am-shared-style .amcv-body :is(button,.am-card-list-btn,.am-detail-build){background:#12382959!important}
@media(max-width:700px){body.am-shared-style.amcompact{background-image:linear-gradient(#060b106b,#060b1080),url('/wp-content/plugins/antimeta-compact-home/background-mobile-v043.jpg')!important}}

/* Typography polish: native fonts, no remote font request or layout shift. */
body.am-shared-style{--amss-font:"Avenir Next","Segoe UI Variable Text","Segoe UI",Roboto,"Noto Sans Thai",Tahoma,sans-serif;--amss-heading:"Avenir Next","Trebuchet MS","Segoe UI",Tahoma,sans-serif;font-family:var(--amss-font)!important}
body.am-shared-style :is(main,.am-content,.amc-shell,.am-builder,.am-card-db-v027,.aml-page,.amml-page,.amocg-header,.amocg-footer){font-family:var(--amss-font)!important}
body.am-shared-style :is(button,input,select,textarea,.button,.amc-button,.am-analysis span,.am-analysis strong,.am-analysis small,.am-analysis p,.am-role-editor label,.am-role-editor legend):not(#wpadminbar *){font-family:var(--amss-font)!important}
body.am-shared-style :is(h1,h2,h3,h4,h5,h6):not(#wpadminbar *){font-family:var(--amss-heading)!important;font-weight:700;letter-spacing:-.018em}
body.am-shared-style :is(button,.button,.amc-button):not(#wpadminbar *):not(.am-deck-card){font-weight:600}
body.am-shared-style :is(.am-draw-odds,.am-deck-count,.am-analysis-stat strong,.amc-life output,#amc-time){font-variant-numeric:tabular-nums}
/* Phone-only density: remove empty padding, retain all controls and tap areas. */
@media(max-width:700px){
 body.am-shared-style.amcompact :is(.amc-card,.amc-info){padding:10px!important}
 body.am-shared-style.amcompact .amc-card .amc-button{min-height:44px;padding:7px 10px!important}
 body.am-shared-style.amcompact .amc-card :is(h2,p){margin-top:4px;margin-bottom:6px}
 body.am-shared-style.amcompact .amc-tabs button{padding:7px 9px!important;min-height:44px}
 body.am-shared-style .am-builder .am-analysis{padding:8px;margin-bottom:8px}
 body.am-shared-style .am-builder .am-analysis-head{gap:6px;margin-bottom:6px;flex-wrap:wrap}
 body.am-shared-style .am-builder .am-analysis-bar{gap:4px}
 body.am-shared-style .am-builder .am-analysis-stat{padding:6px;gap:2px;text-align:left}
 body.am-shared-style .am-builder .am-analysis-head button{padding:6px 9px;min-height:44px}
 body.am-shared-style .am-builder .am-builder-layout{gap:8px}
 body.am-shared-style .am-builder :is(.am-zone,.am-builder-layout>aside){padding:8px}
 body.am-shared-style .am-builder .am-zone h3{margin-top:2px;margin-bottom:8px}
 body.am-shared-style .am-builder .am-deck-toolbar{gap:4px}
 body.am-shared-style .am-builder .am-deck-toolbar button{padding:5px;min-height:44px;line-height:1.15}
 body.am-shared-style .am-builder .am-deck-toolbar :is(input:not([type=checkbox]):not([type=file]),select,textarea){font-size:16px;min-height:44px}
}

/* Compact finishing: existing layout and all controls retained. */
body.am-shared-style.amcompact .amc-card{padding:14px}
body.am-shared-style.amcompact .amc-card :is(h2,p){margin-top:4px;margin-bottom:8px}
body.am-shared-style .am-builder .am-analysis{margin-bottom:8px;padding:8px}
body.am-shared-style .am-builder .am-analysis-stat{padding:6px;gap:2px}
body.am-shared-style .am-builder .am-analysis-head{margin-bottom:6px}
body.am-shared-style .am-builder .am-zone{padding:10px}
body.am-shared-style .am-builder .am-zone h3{margin-top:2px;margin-bottom:8px}
body.am-shared-style .am-builder .am-deck-toolbar{gap:5px}
body.am-shared-style :is(.amc-card,.amc-info,.am-analysis,.am-zone){border-radius:10px}
@media(max-width:700px){
body.am-shared-style.amcompact .amc-card{padding:9px!important}
body.am-shared-style.amcompact .amc-card :is(h2,p){margin-top:3px;margin-bottom:5px}
body.am-shared-style .am-builder .am-zone{padding:7px}
body.am-shared-style .am-builder .am-analysis-stat{padding:5px}
body.am-shared-style .am-builder .am-deck-toolbar{gap:4px}
}

/* Remove actual unused builder space rather than shrinking text. */
body.am-shared-style .am-builder.am-builder-v2 .am-builder-top{margin-bottom:7px;gap:6px}
body.am-shared-style .am-builder.am-builder-v2 .am-builder-layout{align-items:start;gap:8px}
body.am-shared-style .am-builder.am-builder-v2 .am-builder-results{margin-top:4px;min-height:0}
body.am-shared-style .am-builder.am-builder-v2 .am-builder-hint{margin:0;padding:2px 0;line-height:1.3;font-size:11px}
body.am-shared-style .am-builder.am-builder-v2 .am-draw-tools{margin:5px 0;padding:6px}
body.am-shared-style .am-builder.am-builder-v2 #am-hand-caption{margin:3px 0}
body.am-shared-style .am-builder.am-builder-v2 .am-deck-toolbar{grid-auto-flow:row;margin-bottom:6px;gap:4px}
body.am-shared-style .am-builder.am-builder-v2 .am-builder-msg:empty{display:none}
body.am-shared-style .am-builder.am-builder-v2 .am-zone{min-height:0}
@media(min-width:480px) and (max-width:900px){
body.am-shared-style .am-builder.am-builder-v2 .am-deck-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}
body.am-shared-style .am-builder.am-builder-v2 .am-deck-toolbar :is(#am-deck-name,#am-deck-description,#am-saved-decks){grid-column:span 2}
body.am-shared-style .am-builder.am-builder-v2 .am-deck-toolbar #am-deck-event{grid-column:auto}
}
@media(max-width:900px){
body.am-shared-style .am-builder.am-builder-v2 .am-builder-layout>aside{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:7px;align-content:start}
body.am-shared-style .am-builder.am-builder-v2 #am-builder-search{width:100%;box-sizing:border-box;min-height:40px;padding:7px 9px;font-size:16px}
body.am-shared-style .am-builder.am-builder-v2 .am-draw-tools{margin:0}
body.am-shared-style .am-builder.am-builder-v2 .am-builder-results{margin-top:0}
}

/* Lower builder: compact headings, cards and analysis on every width. */
body.am-shared-style .am-builder.am-builder-v2 .am-zone{margin-bottom:7px;padding:7px}
body.am-shared-style .am-builder.am-builder-v2 .am-zone h3{font-size:17px;line-height:1.25;margin:0 0 6px}
body.am-shared-style .am-builder.am-builder-v2 .am-zone-grid{gap:4px}
body.am-shared-style .am-builder.am-builder-v2 .am-analysis{padding:7px;margin-bottom:7px}
body.am-shared-style .am-builder.am-builder-v2 .am-analysis-stat{padding:5px;gap:1px;align-content:start}
body.am-shared-style .am-builder.am-builder-v2 .am-analysis-stat :is(span,strong,small){margin:0}
body.am-shared-style .am-builder.am-builder-v2 .am-analysis>p{margin-top:4px;line-height:1.3}
body.am-shared-style .am-builder.am-builder-v2 .am-validation{padding:7px 9px;gap:6px}
@media(min-width:480px){body.am-shared-style .am-builder.am-builder-v2 .am-analysis-bar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:600px) and (max-width:900px){body.am-shared-style .am-builder.am-builder-v2 .am-zone-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:479px){
body.am-shared-style .am-builder.am-builder-v2 .am-zone{padding:5px}
body.am-shared-style .am-builder.am-builder-v2 .am-zone-grid{gap:3px}
body.am-shared-style .am-builder.am-builder-v2 .am-analysis{padding:6px}
body.am-shared-style .am-builder.am-builder-v2 .am-analysis-stat strong{font-size:15px}
}
