/* ================================================================
   Rebrand upgrade pass — feel + look. Loads last; wins ties.
   Palette discipline: red / royal blue / gold only.
   ================================================================ */

/* Background blobs: strictly the trio (kills the violet/green ghosts) */
body::before{
  background:
    radial-gradient(420px 300px at 8% 4%, rgba(212,175,55,.15), transparent 70%),
    radial-gradient(520px 380px at 95% 10%, rgba(47,95,232,.16), transparent 70%),
    radial-gradient(460px 340px at 88% 88%, rgba(210,31,44,.13), transparent 70%),
    radial-gradient(500px 360px at 4% 92%, rgba(212,175,55,.10), transparent 70%),
    radial-gradient(320px 240px at 55% 45%, rgba(47,95,232,.08), transparent 70%);
}

/* Page transitions: soft rise as each page opens */
@keyframes rstPageIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.page.on{animation:rstPageIn .38s cubic-bezier(.22,.9,.3,1) both}

/* Press feedback + calmer button motion */
.btn{transition:transform .12s ease, box-shadow .2s ease, filter .2s ease}
.btn:active,.rst-pill-action:active{transform:scale(.97)}

/* Keyboard focus: gold ring, always visible */
:focus-visible{outline:2px solid var(--rst-gold);outline-offset:2px;border-radius:6px}

/* Selection + scrollbar in brand gold */
::selection{background:rgba(212,175,55,.85);color:#14100a}
html{scrollbar-color:#8a6d1f #0b0b0e}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#0b0b0e}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#8a6d1f,#5e4a14);border-radius:99px;border:2px solid #0b0b0e}

/* Hero headline: the red→gold→blue gradient slowly sheens */
.rst-welcome h1 span{background-size:220% auto;animation:rstSheen 7s linear infinite}
@keyframes rstSheen{to{background-position:220% center}}

/* Rebrand banner: slow seal glow breathing between red and gold */
@keyframes rstSealGlow{
  0%,100%{box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 1px rgba(212,175,55,.25),0 0 34px rgba(210,31,44,.18)}
  50%{box-shadow:0 18px 50px rgba(0,0,0,.55),0 0 0 1px rgba(212,175,55,.55),0 0 54px rgba(212,175,55,.28)}
}
.rst-rebrand-hero{animation:rstSealGlow 6s ease-in-out infinite}

/* Cards lift gently under the cursor (real pointers only) */
@media (hover:hover) and (pointer:fine){
  article.card{transition:transform .18s ease, box-shadow .25s ease, border-color .2s ease}
  article.card:hover{transform:translateY(-3px)}
}

@media (prefers-reduced-motion: reduce){
  .page.on,.rst-welcome h1 span,.rst-rebrand-hero{animation:none}
}

/* Owner quick-access bar (home, owner sessions only) */
.rst-ownerbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 18px;padding:12px 14px;
  border:1px solid rgba(212,175,55,.45);border-radius:14px;
  background:linear-gradient(120deg,rgba(212,175,55,.10),rgba(47,95,232,.08))}
.rst-ownerbar-label{font-weight:900;letter-spacing:.06em;color:var(--rst-gold-bright);margin-right:4px}

/* Watch page + home band + community crew carousels */
.rst-embed{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000;border:1px solid rgba(212,175,55,.35)}
.rst-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.rst-embed.short{aspect-ratio:9/16;max-width:300px;margin:0 auto}
.rst-watch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.rst-shorts-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
.rst-watch-cap{font-weight:700;margin:8px 0 14px}
.rst-watch-band{margin:26px 0}
.rst-watch-band-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.rst-watch-thumb{display:block;width:100%;text-align:left;background:#121218;border:1px solid rgba(212,175,55,.3);border-radius:14px;overflow:hidden;cursor:pointer;padding:0;color:inherit}
.rst-watch-thumb img{width:100%;display:block;aspect-ratio:16/9;object-fit:cover}
.rst-watch-thumb span{display:block;padding:10px 12px;font-weight:800}
.rst-crew-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-bottom:22px}
.rst-crew-card{background:#121218;border:1px solid rgba(212,175,55,.28);border-radius:14px;overflow:hidden}
.rst-crew-img{width:100%;display:block}
.rst-crew-body{padding:12px 14px}
.rst-crew-body h3{margin:4px 0 6px}
.rst-carousel{position:relative;overflow:hidden}
.rst-carousel-track{display:flex;transition:transform .35s ease}
.rst-carousel-track img{width:100%;flex:0 0 100%;display:block}
.rst-car-btn{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;border:1px solid rgba(212,175,55,.6);background:rgba(5,5,10,.72);color:#f3d27a;font-size:22px;line-height:1;cursor:pointer;z-index:2}
.rst-car-btn.prev{left:8px}.rst-car-btn.next{right:8px}
.rst-car-dots{position:absolute;bottom:8px;left:0;right:0;display:flex;gap:6px;justify-content:center;z-index:2}
.rst-car-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35)}
.rst-car-dots span.on{background:#f3d27a}

/* === Form controls: dark theme for EVERY input (Oct 31 fix) ===
   The base form rule only matched input[type=text] etc. — the 127
   inputs with no type attribute (global search, market search,
   inventory search, listing fields...) fell back to browser-default
   WHITE boxes. This rule covers them all. */
:root{color-scheme:dark}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
select,textarea{
  width:100%;padding:.7em .9em;font:inherit;color:var(--rst-ink);
  background:var(--rst-surface);border:2px solid var(--rst-edge);
  border-radius:var(--rst-radius-sm);
  transition:border-color var(--rst-speed),box-shadow var(--rst-speed);
}
input::placeholder,textarea::placeholder{color:var(--rst-ink-soft);opacity:.75}
input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{
  -webkit-box-shadow:0 0 0 80px var(--rst-surface) inset;
  -webkit-text-fill-color:var(--rst-ink);caret-color:var(--rst-ink);
}
/* The one light pill in the system goes dark like everything else */
.tag.gray{background:var(--rst-surface-2);color:var(--rst-ink-soft)}

/* Phone guards: wide tables scroll sideways instead of stretching the
   page, and form fields sit at 16px so iOS never auto-zooms on tap. */
@media (max-width:820px){
  table.table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  input,select,textarea{font-size:16px}
}

/* === Image containment net (Oct 31) ===
   Jahvon's report: card/inventory photos rendered WAY too big. Cause:
   .thumb was styled as an <img> class but seller cards wrap the photo
   in a <div class="thumb">, leaving the photo itself with no size
   rules at all — natural size, layout destroyed. These rules make a
   blowout structurally impossible in every card/list context. Card
   art is always shown WHOLE (contain), never cropped. */
img{max-width:100%}
.thumb:has(>img){overflow:hidden;display:grid;place-items:center;background:var(--rst-bg-soft)}
.thumb>img{width:100%;height:100%;object-fit:contain;display:block}
.seller-market-card .thumb{width:100%;height:auto;aspect-ratio:1/1.02;border-radius:12px}
.catalog-search-row img{width:52px;height:72px;object-fit:contain;border-radius:6px;flex:none}
.rst-crew-img{max-height:520px;object-fit:contain;background:var(--rst-bg-soft)}
.rst-carousel{aspect-ratio:1/1;background:var(--rst-bg-soft)}
.rst-carousel-track{height:100%}
.rst-carousel-track img{height:100%;object-fit:contain}

/* === Seal Rewards (Nov 7) — Gotya-style giveaway quests in Seal colours === */
.rst-nav-chip{color:var(--rst-gold-bright);font-weight:800}
.rst-q-prize{background:linear-gradient(180deg,#221a08,#171208);border:1px solid var(--rst-gold);border-radius:16px;padding:16px 18px;margin-bottom:14px}
.rst-q-prize-tag{color:var(--rst-gold-bright);font-weight:800;font-size:12px;letter-spacing:.06em}
.rst-q-prize h3{margin:6px 0 4px}
.rst-q-prize p{color:var(--rst-ink-soft);margin:0;line-height:1.55}
.rst-q-wallet{display:inline-block;background:var(--rst-surface-2);border:1px solid var(--rst-gold);color:var(--rst-ink);border-radius:99px;padding:6px 14px;font-weight:700;margin-bottom:14px}
.rst-q-wallet b{color:var(--rst-gold-bright)}
.rst-q-card{display:flex;align-items:center;gap:14px;background:var(--rst-surface);border:1px solid var(--rst-edge);border-radius:16px;padding:14px 16px;margin-bottom:10px}
.rst-q-ico{width:52px;height:52px;flex:none;display:grid;place-items:center;font-size:26px;background:var(--rst-surface-2);border:1px solid var(--rst-edge);border-radius:12px}
.rst-q-main{flex:1;min-width:0}
.rst-q-title{font-weight:800;font-size:17px}
.rst-q-pts{display:inline-block;background:#2a2110;color:var(--rst-gold-bright);border:1px solid var(--rst-gold);font-size:12px;font-weight:800;padding:2px 9px;border-radius:99px;margin-left:6px;vertical-align:2px;white-space:nowrap}
.rst-q-sub{color:var(--rst-ink-soft);margin-top:3px;line-height:1.45}
.rst-q-count{display:block;color:var(--rst-gold-bright);font-size:13px;margin-top:4px;font-weight:700}
.rst-q-btn{flex:none;background:linear-gradient(180deg,var(--rst-gold-bright),var(--rst-gold));color:#191203;border:none;font-weight:800;font-size:15px;padding:13px 20px;border-radius:12px;cursor:pointer;box-shadow:0 6px 22px rgba(212,175,55,.35);white-space:nowrap}
.rst-q-btn.confirm{background:linear-gradient(180deg,#3ddc84,#22b866);color:#06280f;box-shadow:0 6px 22px rgba(34,184,102,.35)}
.rst-q-btn.done{background:var(--rst-surface-2);color:var(--rst-ink-soft);border:1px solid var(--rst-edge);box-shadow:none;cursor:default}
.rst-q-earn{border:1.5px dashed var(--rst-gold);border-radius:16px;padding:14px 18px;margin:14px 0;background:rgba(212,175,55,.05);line-height:2}
.rst-q-earn-h{font-weight:800;margin-bottom:2px}
.rst-q-enter{width:100%;background:linear-gradient(180deg,var(--rst-gold-bright),var(--rst-gold));color:#191203;border:none;font-weight:800;font-size:19px;letter-spacing:.04em;padding:17px;border-radius:14px;cursor:pointer;box-shadow:0 8px 28px rgba(212,175,55,.4)}
.rst-q-enter[disabled]{opacity:.55;cursor:default;box-shadow:none}
.rst-q-enter.in{background:var(--rst-surface-2);color:var(--rst-gold-bright);border:1px solid var(--rst-gold);opacity:1}
.rst-q-note{color:var(--rst-ink-soft);text-align:center;margin:8px 0 0}
.rst-q-rules{color:var(--rst-ink-soft);font-size:13px;line-height:1.55;margin-top:12px}
.rst-q-teaser{display:flex;align-items:center;gap:14px;background:linear-gradient(90deg,#221a08,var(--rst-surface));border:1px solid var(--rst-gold);border-radius:16px;padding:14px 18px;margin:14px 0;cursor:pointer}
.rst-q-teaser-ico{font-size:30px}
.rst-q-teaser-main{flex:1;display:flex;flex-direction:column}
.rst-q-teaser-main small{color:var(--rst-ink-soft)}
.rst-q-teaser-n{background:#2a2110;color:var(--rst-gold-bright);border:1px solid var(--rst-gold);font-weight:800;padding:6px 13px;border-radius:99px}
@media (max-width:640px){.rst-q-card{flex-wrap:wrap}.rst-q-btn{width:100%}}
