.theme-royal{--bg-rgb:13,12,9;--bg-color:rgb(var(--bg-rgb));--bg-hover-color:#1b1811;--inactive-bg-color:#1b1811;--inactive-color:#2a2517;--footer-bg-color:#080704;--footer-color:#9b8a5e;--table-bg-rgb:var(--bg-rgb);--table-bg-color:var(--bg-color);--table-row-sep-color:rgba(212,175,55,.16);--table-border-color:var(--table-row-sep-color);--table-hover-bg-rgb:27,24,17;--table-hover-bg-color:rgb(var(--table-hover-bg-rgb));--table-header-bg-color:#1e1a0f;--table-bg-hover-color:#1b1811;--table-text-color:#b3a684;--table-input-border-color:rgba(232,194,90,.3);--table-actions-bg-color:rgba(15,13,9,.96);--header-bg-rgb:var(--bg-rgb);--header-bg-color:rgba(13,12,9,.94);--header-tab-color-rgb:214,196,148;--header-tab-color-active:#f2d678;--settings-bg-rgb:var(--bg-rgb);--settings-bg-color:rgb(var(--settings-bg-rgb));--settings-bg-hover-color:#221d12;--field-bg-color:#17140d;--field-accent-color:#d4af37;--btn-default-bg-color:#17140d;--btn-default-bg-hover-color:#221d12;--btn-primary-color:#1a1405;--btn-primary-bg-rgb:212,175,55;--btn-primary-bg-color:rgb(var(--btn-primary-bg-rgb));--btn-primary-bg-hover-color:#e9c95f;--btn-primary-disabled-color:#7a6520;--btn-header-bg-rgb:26,22,13;--btn-header-bg-color:rgb(var(--btn-header-bg-rgb));--btn-header-bg-hover-rgb:40,33,18;--btn-header-bg-hover-color:rgb(var(--btn-header-bg-hover-rgb));--dropdown-bg-color:#17140d;--dropdown-bg-hover-color:#221d12;--dropdown-secondary-color:#9b8f74;--list-bg-rgb:17,15,10;--list-bg-color:rgb(var(--list-bg-rgb));--filters-header-bg-color:#17140d;--filters-icon-color:#a2967c;--accent-rgb:232,194,90;--accent-color:rgb(var(--accent-rgb));--accent-bg-color:rgba(var(--accent-rgb),.12);--tooltip-bg-color:#241f12;--hint-color:#a99c80;--countdown-digit-bg-color:var(--list-bg-color);--primary-color:var(--accent-color);--primary-color-alpha:var(--accent-bg-color);--text-color:#a99c80;--value-color:#f7edd2}
/* ---- Market Royal gold flair ---- */
html.theme-royal .btn-primary{background-image:linear-gradient(180deg,#f0cf6e 0%,#d4af37 48%,#bd9628 100%);border-color:#a5821f;color:#1a1405;text-shadow:0 1px 0 rgba(255,255,255,.22);box-shadow:0 1px 8px rgba(212,175,55,.28)}
html.theme-royal .btn-primary:hover,html.theme-royal .btn-primary:focus{background-image:linear-gradient(180deg,#f9e29b 0%,#e2bd44 48%,#c9a02c 100%);color:#1a1405;box-shadow:0 1px 12px rgba(232,194,90,.4)}
html.theme-royal .btn-primary:disabled{background-image:none;box-shadow:none;color:#7a6520}
html.theme-royal .tm-header-tab.tab-active{color:#f2d678;text-shadow:0 0 16px rgba(232,194,90,.4)}
html.theme-royal .tm-header-tab.tab-active:after,html.theme-royal .tm-section-tab.tab-active:after{background-image:linear-gradient(90deg,rgba(232,194,90,0),#e8c25a 30%,#e8c25a 70%,rgba(232,194,90,0))}
html.theme-royal ::selection{background:rgba(212,175,55,.45);color:#fff}
html.theme-royal ::-webkit-scrollbar-thumb{background:#3d3317;border-radius:8px}
html.theme-royal ::-webkit-scrollbar-thumb:hover{background:#5c4c20}
html.theme-royal{scrollbar-color:#3d3317 #0d0c09}
html.theme-royal .tm-logo{filter:drop-shadow(0 0 10px rgba(212,175,55,.28))}
html.theme-royal .tm-footer-copy{color:#d4af37}
html.theme-royal a:not(.btn):not(.tm-header-tab){transition:color var(--def-transition)}
html.theme-royal .tm-table>tbody>tr:hover>td{background-color:#1b1811}

/* ==================================================================
   Market Royal — custom luxury layer 2 (ambient + interactions)
   ================================================================== */
html.theme-royal body{background-image:radial-gradient(900px 420px at 18% -8%,rgba(212,175,55,.08),transparent 62%),radial-gradient(760px 380px at 82% -6%,rgba(212,175,55,.06),transparent 60%),radial-gradient(1100px 700px at 50% 118%,rgba(212,175,55,.045),transparent 65%);background-attachment:fixed}

/* gold hairline + soft glow under header */
html.theme-royal .tm-header{box-shadow:0 1px 0 rgba(212,175,55,.16),0 10px 26px -20px rgba(212,175,55,.3)}

/* hero option cards — royal lift + gold top accent */
html.theme-royal .tm-main-premium-option{position:relative;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
html.theme-royal .tm-main-premium-option::before{content:"";position:absolute;top:0;left:14%;right:14%;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,rgba(212,175,55,.9),transparent);opacity:0;transition:opacity .25s ease;z-index:1}
html.theme-royal .tm-main-premium-option:hover{transform:translateY(-4px);box-shadow:0 16px 38px -14px rgba(212,175,55,.3);background-color:#17140d}
html.theme-royal .tm-main-premium-option:hover::before{opacity:1}
html.theme-royal .tm-main-premium-option .icon-link-more{transition:gap .2s ease,color .2s ease}
html.theme-royal .tm-main-premium-option:hover .icon-link-more{color:#f2d678}

/* sheen sweep on primary gold buttons */
html.theme-royal .btn-primary{position:relative;overflow:hidden}
html.theme-royal .btn-primary::after{content:"";position:absolute;top:-40%;bottom:-40%;left:-80%;width:55%;transform:skewX(-22deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transition:left .55s ease;pointer-events:none}
html.theme-royal .btn-primary:hover::after{left:130%}

/* collection table rows — gold inset edge on hover */
html.theme-royal .tm-row-selectable{transition:background-color .18s ease,box-shadow .18s ease}
html.theme-royal .tm-row-selectable:hover{box-shadow:inset 3px 0 0 #d4af37}

/* collection thumbs — gold ring on row hover */
html.theme-royal .tm-cell-thumb{transition:box-shadow .2s ease,transform .2s ease}
html.theme-royal .tm-row-selectable:hover .tm-cell-thumb{box-shadow:0 0 0 2px rgba(212,175,55,.45)}

/* section headings — gold gradient text */
html.theme-royal .tm-section-header-text{background:linear-gradient(100deg,#f3dd94 0%,#d4af37 45%,#caa235 100%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* search field — gold focus glow */
html.theme-royal .tm-search-field:focus{box-shadow:0 0 0 1px rgba(212,175,55,.4),0 0 16px -4px rgba(212,175,55,.35)}
html.theme-royal .tm-main-search-form:focus-within{box-shadow:0 0 0 1px rgba(212,175,55,.35),0 0 20px -6px rgba(212,175,55,.3)}

/* footer — gold hairline + glowing links */
html.theme-royal .tm-footer{position:relative}
html.theme-royal .tm-footer::before{content:"";position:absolute;top:0;left:10%;right:10%;height:1px;background:linear-gradient(90deg,transparent,rgba(212,175,55,.5) 20%,rgba(243,221,148,.85) 50%,rgba(212,175,55,.5) 80%,transparent)}
html.theme-royal .tm-footer-nav-link,html.theme-royal .tm-footer-icon{transition:color .18s ease,text-shadow .18s ease}
html.theme-royal .tm-footer-nav-link:hover,html.theme-royal .tm-footer-icon:hover{color:#f2d678;text-shadow:0 0 12px rgba(232,194,90,.45)}
/* ===== Market Royal - live price ticker ===== */
html.theme-royal .tm-ticker{position:relative;z-index:5;margin-top:56px;}@media (max-width:767px){html.theme-royal .tm-ticker{margin-top:98px;}background:linear-gradient(180deg,#0d0b06,#131008 60%,#0d0b06);border-bottom:1px solid rgba(212,175,55,.22);box-shadow:0 10px 24px -18px rgba(212,175,55,.5)}
html.theme-royal .tm-ticker-inner{display:flex;align-items:center;gap:14px;max-width:1440px;margin:0 auto;padding:7px 20px;overflow-x:auto;scrollbar-width:none}
html.theme-royal .tm-ticker-inner::-webkit-scrollbar{display:none}
html.theme-royal .tm-ticker-live{width:7px;height:7px;border-radius:50%;background:#d4af37;box-shadow:0 0 8px 2px rgba(212,175,55,.65);animation:tmPulse 2.2s infinite}
html.theme-royal .tm-ticker-title{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#d4af37;white-space:nowrap}
html.theme-royal .tm-ticker-cells{display:flex;align-items:center;gap:26px;padding-left:4px}
html.theme-royal .tm-ticker-cell{display:flex;align-items:baseline;gap:7px;white-space:nowrap}
html.theme-royal .tm-ticker-label{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8d8266}
html.theme-royal .tm-ticker-value{font-size:13px;font-weight:700;color:#f3dd94;font-variant-numeric:tabular-nums}
html.theme-royal .tm-ticker-sub{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
@keyframes tmPulse{0%,100%{opacity:1}50%{opacity:.35}}
html.theme-royal .tm-ticker[data-failed="1"]{opacity:.45}
html.theme-royal .tm-live-badge{display:inline-flex;align-items:center;gap:5px;margin-left:10px;vertical-align:middle;font-size:11px;font-weight:700;letter-spacing:.08em;color:#d4af37;text-transform:uppercase}
html.theme-royal .tm-live-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#d4af37;box-shadow:0 0 6px 1px rgba(212,175,55,.6);animation:tmPulse 2.2s infinite}

/* ================= Task 8: buttons, wallet menu, skeletons ================= */

/* Every button on the site gets a rounded border radius (user request).
   Tailwind rounded-* classes on React buttons win by specificity, so this
   only affects the original-site buttons and any naked <button>. */
html.theme-royal button{border-radius:11px}
html.theme-royal .btn{border-radius:11px}
html.theme-royal .tm-header-button{border-radius:11px}
html.theme-royal .dropdown-menu{border-radius:12px}
html.theme-royal .dropdown-menu-item:first-child{border-radius:8px 8px 0 0}
html.theme-royal .dropdown-menu-item:last-child{border-radius:0 0 8px 8px}

/* wallet chip in the header */
html.theme-royal .tm-wallet-chip{display:inline-flex;align-items:center;gap:7px;cursor:pointer;background:linear-gradient(180deg,#f0cf6e 0%,#d4af37 48%,#bd9628 100%);color:#1a1405;border:1px solid rgba(212,175,55,.7);box-shadow:0 2px 14px rgba(212,175,55,.35)}
html.theme-royal .tm-wallet-chip svg{opacity:.75}

/* clean connected-wallet dropdown */
html.theme-royal .ma-wallet-menu{position:fixed;z-index:2000;width:302px;max-width:calc(100vw - 20px);background:#14110b;border:1px solid rgba(212,175,55,.35);border-radius:16px;box-shadow:0 24px 60px -18px rgba(0,0,0,.85),0 8px 28px -12px rgba(212,175,55,.35),inset 0 1px 0 rgba(243,221,148,.12);overflow:hidden}
html.theme-royal .ma-wallet-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:10px;font-size:13.5px;font-weight:600;color:#e6ecf3;text-align:left;transition:background .15s,color .15s}
html.theme-royal .ma-wallet-menu-item:hover{background:rgba(212,175,55,.1);color:#f2d57e}
html.theme-royal .ma-wallet-menu-danger{color:#ff8a84}
html.theme-royal .ma-wallet-menu-danger:hover{background:rgba(232,80,74,.12);color:#ff9a94}

/* loading skeleton pulse (Fragment live prices) */
html.theme-royal .ma-pulse{animation:maPulse 1.6s ease-in-out infinite}
@keyframes maPulse{0%,100%{opacity:.45}50%{opacity:.9}}

/* ticker: give cells breathing room on narrow screens */
@media (max-width:768px){
  html.theme-royal .tm-ticker-cell{gap:5px}
  html.theme-royal .tm-ticker-value{font-size:12px;display:inline-flex;align-items:center;gap:4px}
  html.theme-royal .tm-ticker-value img{width:13px;height:13px}
  html.theme-royal .tm-ticker-sub{font-size:10px}
}
