.mtg-level-rewards,.mtg-trophy-gallery{margin:20px auto 0;padding:16px;border:1px solid #b898544d;border-radius:12px;background:#232a25;color:#e9d5a9}
.mtg-trophy-gallery{margin-bottom:20px;text-align:center}
.mtg-level-rewards h3,.mtg-trophy-gallery h3{margin:0 0 10px;color:#efcf8a}
.mtg-level-rewards details+details{margin-top:10px}
.mtg-level-rewards summary{cursor:pointer;color:#f1d797}
.mtg-level-rewards label{display:block;margin:8px 0}
.mtg-level-rewards select{display:block;width:100%;margin-top:6px}
.mtg-trophy-gallery ul{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;list-style:none;margin:0;padding:0}
.mtg-trophy-gallery li{max-width:160px}
.mtg-trophy-gallery img{display:block;object-fit:contain;margin:0 auto 6px}
.mtg-honor-title{display:block;margin:4px 0;color:#d9b875;font-size:12px;font-weight:600;line-height:1.3}


/* Public profile gallery and personal reward controls. */
.mtg-trophy-gallery,.mtg-level-rewards.mtg-reward-dashboard{
 background:linear-gradient(125deg,#2b2d29,#212826);
 border-radius:18px;
 padding:clamp(16px,3vw,28px);
}
.mtg-trophy-gallery h3,.mtg-reward-dashboard h3{
 font:600 clamp(20px,3vw,25px)/1.25 Georgia,"Times New Roman",serif;
 color:#f4dfb0;
 margin:0 0 16px;
}
.mtg-trophy-gallery h3::after{
 content:"";display:block;width:80px;height:1px;margin:12px auto 18px;
 background:linear-gradient(90deg,transparent,#b99253,transparent);
}
.mtg-trophy-gallery ul{gap:clamp(12px,3vw,30px)}
.mtg-trophy-gallery li{flex:0 1 125px;min-width:0;color:#e9d5a9}
.mtg-trophy-gallery img{filter:drop-shadow(0 3px 7px #0006)}
.mtg-reward-dashboard{scroll-margin-top:115px}
.mtg-reward-dashboard [role=status]{margin:0 0 14px;padding:7px 10px;border-left:2px solid #b99253;color:#ebd9ad;background:#b9925312}
.mtg-reward-dashboard .mtg-reward-item{margin:0;border-top:1px solid #c39e5740}
.mtg-reward-dashboard .mtg-reward-item:last-child{border-bottom:1px solid #c39e5740}
.mtg-reward-dashboard .mtg-reward-item>summary{
 display:grid;grid-template-columns:36px minmax(0,1fr) 12px;align-items:center;
 gap:12px;padding:12px 8px;list-style:none;cursor:pointer;
}
.mtg-reward-dashboard summary::-webkit-details-marker{display:none}
.mtg-reward-dashboard summary:hover,.mtg-reward-dashboard details[open]>summary{background:#e4bd7410}
.mtg-reward-dashboard summary::after{
 content:"";width:7px;height:7px;border-right:1px solid #e7c787;border-bottom:1px solid #e7c787;transform:rotate(45deg);
}
.mtg-reward-dashboard details[open]>summary::after{transform:rotate(225deg)}
.mtg-reward-symbol{
 display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
 background:#b8914522;border:1px solid #b8914577;color:#f2ce82;font-size:17px;
}
.mtg-reward-summary-text{display:grid;gap:3px;min-width:0}
.mtg-reward-summary-text small{color:#c5ab7c;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.mtg-reward-summary-text strong{font-size:clamp(13px,2.4vw,16px);line-height:1.3;color:#f2dfb5}
.mtg-reward-dashboard .mtg-reward-item>:not(summary){margin:0;padding:12px clamp(10px,3vw,24px);overflow-wrap:anywhere}
.mtg-reward-dashboard .mtg-reward-item>ul{padding-left:32px}
.mtg-reward-dashboard label:has(input){padding:7px 10px;border:1px solid #b8914533;border-radius:8px;background:#181d1a;color:#e9ddc4}
.mtg-reward-dashboard input[type=checkbox]{accent-color:#d5b476}
.mtg-reward-dashboard select{
 appearance:none;min-height:44px;padding:8px 36px 8px 12px;border:1px solid #c39e5780;border-radius:8px;
 color:#f2dfb5;background:#1d211e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23d8b875' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center/13px no-repeat;
}
.mtg-reward-dashboard option{background:#232724;color:#f2dfb5}
.mtg-reward-dashboard button.mtg-gold-btn{
 margin:12px 0 4px!important;min-height:40px;border-radius:8px!important;
 background:linear-gradient(110deg,#f2d599,#c49b51)!important;color:#241c11!important;
}
.mtg-reward-dashboard button.mtg-gold-btn:hover{filter:brightness(1.1)}
.mtg-reward-dashboard :is(summary,select,input,button):focus-visible{outline:2px solid #edc779;outline-offset:3px}

/* Premium-inspired controls. Native form inputs retain keyboard and mobile support. */
.mtg-level-rewards.mtg-reward-dashboard{
 background:radial-gradient(ellipse at top left,#392a15 0%,transparent 58%),#15120e;
 border-color:#a77e37;
 box-shadow:0 10px 24px #08060355,inset 0 1px #f1c47120;
}
.mtg-reward-dashboard h3{color:#f4dfad;font-weight:500}
.mtg-reward-dashboard .mtg-reward-item{border:1px solid #aa803752;border-radius:10px;background:#11110e;margin:0 0 8px}
.mtg-reward-dashboard .mtg-reward-item:last-child{border-bottom-color:#aa803752;margin-bottom:0}
.mtg-reward-dashboard .mtg-reward-item[open]{border-color:#b28a46}
.mtg-reward-dashboard .mtg-reward-item>summary{padding:10px 14px;border-radius:9px}
.mtg-reward-dashboard .mtg-reward-item[open]>summary{border-bottom:1px solid #aa803752;border-radius:9px 9px 0 0}
.mtg-reward-dashboard .mtg-reward-symbol{color:#e7bc62;background:#bf954419;border-color:#ae853e75}
.mtg-reward-dashboard svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.mtg-reward-dashboard .mtg-trophy-choices{
 max-height:320px;overflow:auto;scrollbar-width:thin;scrollbar-color:#977238 #11110e;
 border:1px solid #96713566;border-radius:9px;background:#10110d;padding:4px
}
.mtg-reward-dashboard label.mtg-trophy-choice{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr) 22px;align-items:center;gap:10px;
 min-height:42px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:5px;
 background:transparent;color:#efdfba;cursor:pointer;
}
.mtg-reward-dashboard label.mtg-trophy-choice+label{border-top-color:#a27b322e}
.mtg-trophy-choice>input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.mtg-trophy-choice-name{overflow-wrap:anywhere}
.mtg-trophy-choice-mark{display:grid;place-items:center;color:#f5cd73;visibility:hidden}
.mtg-trophy-choice:has(input:checked)>.mtg-trophy-choice-mark{visibility:visible}
.mtg-reward-dashboard label.mtg-trophy-choice:hover{background:#c39e5717}
.mtg-reward-dashboard label.mtg-trophy-choice:has(input:checked){background:#c39e5721;border-color:#b38a465c}
.mtg-trophy-choice:has(input:focus-visible){outline:2px solid #edc779;outline-offset:-2px}
.mtg-reward-dashboard select{background-color:#11110e;color:#f2dfb5;border-color:#a77e37;cursor:pointer}
@supports (appearance: base-select){
 .mtg-reward-dashboard select,.mtg-reward-dashboard select::picker(select){appearance:base-select}
 .mtg-reward-dashboard select{background-image:none;padding-right:12px}
 .mtg-reward-dashboard select::picker-icon{color:#e0b85c}
 .mtg-reward-dashboard select::picker(select){
  margin-top:4px;padding:4px;max-height:280px;border:1px solid #a77e37;border-radius:8px;
  color:#f2dfb5;background:#10110d;box-shadow:0 10px 24px #0009;scrollbar-color:#977238 #11110e;
 }
 .mtg-reward-dashboard option{padding:8px 10px;border-radius:4px;background:transparent}
 .mtg-reward-dashboard option:hover,.mtg-reward-dashboard option:focus,.mtg-reward-dashboard option:checked{background:#c39e5724}
 .mtg-reward-dashboard option::checkmark{color:#f5cd73}
}

.mtg-reward-dashboard .mtg-trophy-limit-status{color:#eac97d;font-size:12px;margin:6px 0 0}
.mtg-reward-dashboard .mtg-trophy-limit-status:empty{margin:0}
.mtg-reward-dashboard button.mtg-gold-btn{
 min-height:32px;padding:6px 14px!important;border-radius:999px!important;
 font-size:12px!important;font-weight:600;line-height:1.3;text-transform:none!important;
 box-shadow:inset 0 1px #fff3,0 2px 5px #0005;
}
@supports (appearance: base-select){
 .mtg-reward-dashboard select{
  display:flex!important;flex-flow:row nowrap;align-items:center;gap:8px;
 }
 .mtg-reward-dashboard select::picker-icon{margin-inline-start:auto;flex:none}
}

.mtg-reward-dashboard .mtg-reward-item > .mtg-unlocked-audio-list{
 list-style:none;
 margin:0;
 padding:4px clamp(10px,2vw,20px) 7px;
}
.mtg-unlocked-audio-list > li{margin:0;padding:0}
.mtg-unlocked-audio-list > li + li{
 border-top:1px solid transparent;
 border-image:linear-gradient(90deg,transparent,#c29c5366 18%,#c29c5366 82%,transparent) 1;
}
.mtg-reward-dashboard .mtg-unlocked-audio-list a{
 display:grid;
 grid-template-columns:28px minmax(0,1fr) 16px;
 align-items:center;
 gap:10px;
 min-height:46px;
 padding:8px 9px;
 border-radius:7px;
 color:#ead6a4!important;
 text-decoration:none!important;
 background:transparent;
 transition:background .18s ease,color .18s ease;
}
.mtg-unlocked-audio-title{font-size:clamp(13px,2.5vw,15px);line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.mtg-unlocked-audio-play{
 display:grid;place-items:center;width:28px;height:28px;
 border:1px solid #b68a435e;border-radius:50%;color:#e6bc6b;background:#bc92421a;
}
.mtg-unlocked-audio-list .mtg-unlocked-audio-play svg{width:15px;height:15px}
.mtg-unlocked-audio-list svg.mtg-unlocked-audio-arrow{
 width:15px;height:15px;color:#c49e55;transition:transform .18s ease;
}
.mtg-reward-dashboard .mtg-unlocked-audio-list a:hover,
.mtg-reward-dashboard .mtg-unlocked-audio-list a:focus-visible{
 color:#fff0c2!important;background:#c29c531c;
}
.mtg-unlocked-audio-list a:is(:hover,:focus-visible) .mtg-unlocked-audio-arrow{color:#f1cf80;transform:translateX(3px)}
.mtg-unlocked-audio-list a:focus-visible{outline:2px solid #e6bc6b;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){
 .mtg-reward-dashboard .mtg-unlocked-audio-list a,.mtg-unlocked-audio-list svg.mtg-unlocked-audio-arrow{transition:none}
}

.mtg-trophy-gallery li[data-mtr-award]{cursor:pointer}
.mtg-trophy-gallery li[data-mtr-award]:focus-visible{outline:1px solid #e9c77d;outline-offset:4px;border-radius:6px}
.mtg-trophy-gallery li>small{display:block;font-size:13px;line-height:1.25;margin:0}

/* v0.6.10 — warm champagne-gold palette for unlocked rewards, without orange tint. */
.mtg-level-rewards.mtg-reward-dashboard{
 background:radial-gradient(ellipse at 12% 0%,rgba(208,184,120,.14),transparent 62%),linear-gradient(145deg,#24251f,#151b18 78%);
 border:1px solid #c6ab6d;
 box-shadow:0 12px 30px #05080566,inset 0 1px 0 #f7e7b62b;
}
.mtg-reward-dashboard h3{color:#f4e5bd}
.mtg-reward-dashboard .mtg-reward-item{background:linear-gradient(135deg,#171d19,#111714);border-color:#bda56a66}
.mtg-reward-dashboard .mtg-reward-item[open]{border-color:#d4bc7e}
.mtg-reward-dashboard .mtg-reward-item[open]>summary{border-bottom-color:#bda56a55}
.mtg-reward-dashboard .mtg-reward-symbol{color:#ebd49b;background:#d4bd7e17;border-color:#c5aa6a88}
.mtg-reward-dashboard .mtg-reward-summary-text small{color:#d5c08c}
.mtg-reward-dashboard .mtg-reward-summary-text strong{color:#f3e7c9}
.mtg-reward-dashboard summary::after{border-color:#dfc993}
.mtg-reward-dashboard summary:hover,.mtg-reward-dashboard details[open]>summary{background:#e6d09a12}
.mtg-reward-dashboard .mtg-trophy-choices{border-color:#c0a86b66;background:#111914;scrollbar-color:#bda56a #111914}
.mtg-reward-dashboard label.mtg-trophy-choice:hover{background:#d6bd7b16}
.mtg-reward-dashboard label.mtg-trophy-choice:has(input:checked){background:#d6bd7b20;border-color:#c9b07770}
.mtg-reward-dashboard select{background-color:#151c17;border-color:#bfa66b;color:#f3e7c9}
.mtg-reward-dashboard button.mtg-gold-btn{background:linear-gradient(110deg,#f4e7be,#d2b976)!important;color:#24241c!important}


/* v0.6.13 — thematic titles on public profile and community */
.mtg-honor-title, .mtg-community-honor-title {display:block!important;margin:5px 0 4px!important;font-family:Arial,Helvetica,sans-serif!important;font-size:10px!important;font-weight:750!important;line-height:1.5!important;letter-spacing:.19em!important;text-transform:uppercase!important;text-shadow:0 0 9px currentColor!important;}
.mtg-honor-title.mtg-honor-monk,.mtg-community-honor-title.mtg-honor-monk{color:#e4bd68!important}
.mtg-honor-title.mtg-honor-scientist,.mtg-community-honor-title.mtg-honor-scientist{color:#65b8ef!important}
.mtg-honor-title.mtg-honor-philosopher,.mtg-community-honor-title.mtg-honor-philosopher{color:#e75b66!important}
@media(max-width:600px){.mtg-honor-title,.mtg-community-honor-title{font-size:9px!important;letter-spacing:.12em!important}}
/* Public profile: restore readable Astra logo/menu and remove excessive desktop offset. */
@media(min-width:768px){body.mtpd-public-page #mtpd-public-profile#mtpd-public-profile{padding-top:80px!important}}
body.mtpd-public-page #masthead :is(.site-title,.site-title a,.site-description,.main-header-menu a,.ast-builder-menu a,.ast-header-navigation-arrow,.ast-menu-toggle,.menu-link){color:#fff!important;text-shadow:0 1px 3px #0008!important}
body.mtpd-public-page #masthead :is(.custom-logo,.site-logo-img img,.ast-site-identity img){filter:brightness(0) invert(1)!important}


/* v0.6.14 — public profile dropdown contrast and character title colors */
body.mtpd-public-page #masthead .sub-menu, body.mtpd-public-page #masthead .ast-desktop-submenu {color:#1b1b1b!important}
body.mtpd-public-page #masthead .sub-menu a,body.mtpd-public-page #masthead .sub-menu .menu-link,body.mtpd-public-page #masthead .ast-desktop-submenu a,body.mtpd-public-page #masthead .ast-desktop-submenu .menu-link{color:#1c1c1c!important;text-shadow:none!important}
body.mtpd-public-page #masthead .sub-menu a:hover,body.mtpd-public-page #masthead .sub-menu a:focus,body.mtpd-public-page #masthead .ast-desktop-submenu a:hover,body.mtpd-public-page #masthead .ast-desktop-submenu a:focus{color:#111!important}
body.mtpd-public-page .mtg-honor-title.mtg-honor-monk{color:#e4bd68!important}
body.mtpd-public-page .mtg-honor-title.mtg-honor-scientist{color:#65b8ef!important}
body.mtpd-public-page .mtg-honor-title.mtg-honor-philosopher{color:#e75b66!important}
