/* AuraMU: one look for every form control on the site. :where() keeps these rules at zero
   specificity, so a page's own field style still wins where it has one. */
:root{color-scheme:dark;accent-color:var(--amber,#f0a41e)}

/* text fields */
:where(input:not([type]),input[type=text],input[type=email],input[type=password],input[type=number],input[type=search],input[type=url],input[type=tel],textarea){
  background:#0b0907cc;border:1px solid #f0ce8b2e;border-radius:11px;color:#fff6e6;padding:11px 13px;font:500 14px Manrope,Heebo,sans-serif;
  transition:border-color .18s,box-shadow .18s,background .18s;outline:0}
:where(input,textarea)::placeholder{color:#8f8471;opacity:1}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea):hover{border-color:#f0ce8b55}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea):focus{border-color:var(--amber,#f0a41e);box-shadow:0 0 0 3px #f0a41e22;background:#0d0a07}
:where(input,textarea):disabled{opacity:.55;cursor:not-allowed}
:where(textarea){resize:vertical;min-height:90px}
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus{-webkit-text-fill-color:#fff6e6;-webkit-box-shadow:0 0 0 1000px #15110c inset;caret-color:#fff;transition:background-color 9999s}
/* number fields: no spin arrows */
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;width:14px;height:14px;cursor:pointer;
  background:linear-gradient(45deg,transparent 45%,#c9b48f 45% 55%,transparent 55%),linear-gradient(-45deg,transparent 45%,#c9b48f 45% 55%,transparent 55%)}

/* check boxes and radio buttons */
input:is([type=checkbox],[type=radio]){-webkit-appearance:none;appearance:none;width:18px;height:18px;margin:0;flex:none;display:inline-grid;place-content:center;
  border:1.5px solid #f0ce8b66;background:#0b0907;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;vertical-align:middle}
input[type=checkbox]{border-radius:5px}
input[type=radio]{border-radius:50%}
input[type=checkbox]::before{content:"";width:10px;height:10px;transform:scale(0);transition:transform .15s;background:var(--amber-ink,#1a1204);
  clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%)}
input[type=radio]::before{content:"";width:8px;height:8px;border-radius:50%;transform:scale(0);transition:transform .15s;background:var(--amber-ink,#1a1204)}
input:is([type=checkbox],[type=radio]):checked{background:linear-gradient(180deg,var(--amber-light,#ffd264),var(--amber,#f0a41e));border-color:transparent;box-shadow:0 0 10px #f0a41e55}
input:is([type=checkbox],[type=radio]):checked::before{transform:scale(1)}
input:is([type=checkbox],[type=radio]):hover{border-color:var(--amber,#f0a41e)}
input:is([type=checkbox],[type=radio]):focus-visible{outline:2px solid #f0a41e88;outline-offset:2px}

/* the Aura dropdown (controls.js) */
.aura-select{position:relative;display:inline-block;min-width:120px;vertical-align:middle}
.aura-select>select{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}
.aura-select-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;border-radius:10px;cursor:pointer;
  border:1px solid #f0ce8b33;background:linear-gradient(180deg,#1d1811,#120f0b);color:#fff6e6;font:600 13px Manrope,Heebo,sans-serif;text-align:start;
  box-shadow:inset 0 1px 0 #ffffff0a;transition:border-color .18s,box-shadow .18s}
.aura-select-button:hover{border-color:#f0ce8b66}
.aura-select-button:focus-visible,.aura-select-open .aura-select-button{border-color:var(--amber,#f0a41e);box-shadow:0 0 0 3px #f0a41e22;outline:0}
.aura-select-button:disabled{opacity:.55;cursor:not-allowed}
.aura-select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aura-select-button svg{width:16px;height:16px;flex:none;color:var(--amber,#f0a41e);transition:transform .2s}
.aura-select-open .aura-select-button svg{transform:rotate(180deg)}
.aura-select-list{position:absolute;z-index:80;inset-inline:0;top:calc(100% + 6px);min-width:100%;width:max-content;max-width:min(320px,90vw);max-height:280px;overflow:auto;
  margin:0;padding:6px;list-style:none;border-radius:12px;border:1px solid #f0ce8b33;background:#16120d;box-shadow:0 18px 50px #000d,0 0 0 1px #00000080;
  opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s,transform .15s,visibility .15s;scrollbar-width:thin;scrollbar-color:#f0a41e66 transparent}
.aura-select-up .aura-select-list{top:auto;bottom:calc(100% + 6px);transform:translateY(4px)}
.aura-select-open .aura-select-list{opacity:1;visibility:visible;transform:none}
.aura-select-list li{padding:8px 12px;border-radius:8px;color:#ddd2bd;font:600 13px Manrope,Heebo,sans-serif;cursor:pointer;white-space:nowrap}
.aura-select-list li.active{background:#f0a41e1f;color:#fff}
.aura-select-list li[aria-selected=true]{color:var(--amber-light,#ffd264)}
.aura-select-list li[aria-selected=true]::after{content:"✓";float:inline-end;margin-inline-start:14px;color:var(--amber,#f0a41e)}
.aura-select-list li[aria-disabled=true]{opacity:.4;cursor:not-allowed}

/* thin scroll bars in the site's colours */
*{scrollbar-width:thin;scrollbar-color:#f0a41e55 #0b0907}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#0b0907}
::-webkit-scrollbar-thumb{background:#3a2e1d;border-radius:10px;border:2px solid #0b0907}
::-webkit-scrollbar-thumb:hover{background:#f0a41e88}
/* the logo never shrinks under the menu (1000-1200px) */
.header-inner>.brand{flex-shrink:0}
@media (min-width:1001px) and (max-width:1200px){.header .nav{gap:0}.header .nav>a,.header .nav summary{padding-inline:7px}.header-actions{gap:8px}.header-actions .button{padding-inline:16px}.header-actions .button svg{display:none}.header-actions .account-link{padding-inline:14px}}
@media (min-width:1001px) and (max-width:1200px){.header-actions:has(.account-link.signed)>.button{display:none}}
/* check boxes and radios keep their size (style.css sizes every input like a text field) */
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-width:18px;min-height:0;padding:0;flex:none}

/* ---- smooth movement: between pages, new content and windows ---- */
/* moving between pages: the browser cross-fades the old page into the new one */
@view-transition{navigation:auto}
::view-transition-old(root){animation:aura-page-out .22s ease both}
::view-transition-new(root){animation:aura-page-in .34s cubic-bezier(.2,.8,.2,1) both}
@keyframes aura-page-out{to{opacity:0}}
@keyframes aura-page-in{from{opacity:0;transform:translateY(8px)}}
/* the page itself fades in once its text is ready */
html.i18n-ready #main{animation:aura-rise .45s cubic-bezier(.2,.8,.2,1) both}
/* content swapped in by a tab (panel, GM panel, market) rises in softly */
.pn-body>*,#pn-body>*,.mk-body>*,[data-results]>*,[data-log-list]>*,#gm-result>*{animation:aura-rise .38s cubic-bezier(.2,.8,.2,1) both}
@keyframes aura-rise{from{opacity:0;transform:translateY(10px)}}
/* market cards arrive one after another */
.mk-grid>.mk-card,.mk-list>.mk-row:not(.head),.mk-minis>*{animation:aura-rise .42s cubic-bezier(.2,.8,.2,1) both}
.mk-grid>.mk-card:nth-child(2),.mk-list>.mk-row:nth-child(3){animation-delay:.04s}
.mk-grid>.mk-card:nth-child(3),.mk-list>.mk-row:nth-child(4){animation-delay:.08s}
.mk-grid>.mk-card:nth-child(4),.mk-list>.mk-row:nth-child(5){animation-delay:.12s}
.mk-grid>.mk-card:nth-child(5),.mk-list>.mk-row:nth-child(6){animation-delay:.16s}
.mk-grid>.mk-card:nth-child(n+6),.mk-list>.mk-row:nth-child(n+7){animation-delay:.2s}
/* windows fade out instead of vanishing */
dialog.mk-modal.closing{animation:aura-win-out .19s ease forwards}
dialog.mk-modal.closing::backdrop{animation:aura-fade-out .19s ease forwards}
dialog.mk-modal[open]::backdrop{animation:aura-fade-in .25s ease}
@keyframes aura-win-out{to{opacity:0;transform:translateY(10px) scale(.97)}}
@keyframes aura-fade-out{to{opacity:0}}
@keyframes aura-fade-in{from{opacity:0}}
/* the toast slides up gently */
#toast{transition:opacity .3s ease,transform .35s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  html.i18n-ready #main,.pn-body>*,#pn-body>*,.mk-body>*,[data-results]>*,[data-log-list]>*,#gm-result>*,.mk-grid>.mk-card,.mk-list>.mk-row,.mk-minis>*{animation:none}
}

/* the notification bell (notify.js) */
.bell{position:relative}
.bell>summary{list-style:none;position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;cursor:pointer;color:#f3dfb8;border:1px solid #f0ce8b33;background:#ffffff08;transition:.18s}
.bell>summary::-webkit-details-marker{display:none}
.bell>summary:hover,.bell[open]>summary{border-color:var(--amber,#f0a41e);background:#f0a41e1a}
.bell>summary svg{width:19px;height:19px}
.bell-badge{position:absolute;top:-3px;inset-inline-end:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;display:grid;place-items:center;font:800 10px Manrope,sans-serif;color:#fff;background:#e4482f;box-shadow:0 0 0 2px #120f0b,0 0 10px #e4482f99}
.bell:has(.bell-badge:not([hidden]))>summary svg{animation:bell-ring 2.4s ease-in-out 1s 2}
@keyframes bell-ring{0%,20%,100%{transform:rotate(0)}5%{transform:rotate(14deg)}10%{transform:rotate(-12deg)}15%{transform:rotate(6deg)}}
.bell-panel{position:absolute;z-index:90;top:calc(100% + 10px);inset-inline-end:-60px;width:min(340px,86vw);padding:12px;border-radius:16px;border:1px solid #f0ce8b33;background:#16120d;box-shadow:0 22px 60px #000d;animation:aura-rise .22s cubic-bezier(.2,.8,.2,1)}
.bell-panel>small{display:block;padding:2px 6px 8px;font:800 11px Manrope,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#a8977a}
.bell-list{display:grid;gap:4px}
.bell-item{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:11px;color:#e9e1d2;text-decoration:none;font:500 13px/1.45 Manrope,Heebo,sans-serif;transition:background .15s}
.bell-item:hover{background:#f0a41e14}
.bell-item>i{font-style:normal;font-size:16px;line-height:1.2}
.bell-item b{color:var(--amber-light,#ffd264)}
.bell-empty{margin:0;padding:10px;font-size:13px;color:#8f8471}
@media (prefers-reduced-motion:reduce){.bell>summary svg{animation:none}}
.avatar.av-img{padding:0;overflow:hidden;background:#000;border:1.5px solid #f0ce8b55}.avatar.av-img img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;display:block}
