/* Night Collection. The deck, balance and six player routes use the live UI. */
:root {
  --design-ink: #120e17;
  --design-panel: #201822;
  --design-raised: #2a202b;
  --design-gold: #f0ce9d;
  --design-paper: #f7ecdf;
  --design-muted: #c3aebc;
  --design-line: #604757;
  --design-wine: #75384e;
  --design-serif: Georgia, "Times New Roman", serif;
  --design-metal: linear-gradient(116deg, #f2d6ae 0%, #e9bf8a 56%, #dca871 100%);
  --bg: var(--design-ink);
  --panel: var(--design-panel);
  --line: var(--design-line);
  --text: var(--design-paper);
  --muted: var(--design-muted);
  --gold: var(--design-gold);
}

body.soft-velvet,
body.soft-velvet.home-b-active {
  background: radial-gradient(ellipse at 50% 0, #281b2a 0, transparent 440px), var(--design-ink);
  color: var(--design-paper);
}

body.soft-velvet > .app-header {
  min-height: 48px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #9876853d;
  gap: 7px;
}

body.soft-velvet .app-header .brand {
  gap: 8px;
}

body.soft-velvet .app-header .brand h1 {
  color: var(--design-paper);
  font: 700 clamp(11px, 3.5vw, 21px)/1.1 var(--design-serif);
  letter-spacing: .035em;
  text-transform: none;
}

body.soft-velvet .app-header .brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #d2ac7d80;
  border-radius: 10px 10px 10px 2px;
  background: linear-gradient(145deg, #412b36, #211821);
  color: var(--design-gold);
  box-shadow: inset 0 0 0 2px #1e141c, 0 2px 12px #0004;
  font-size: 21px;
}

body.soft-velvet .app-header :is(.wallet-strip, .rules-button, #settings-open) {
  background: #291f2b;
  border-color: #725664;
  color: var(--design-paper);
  box-shadow: inset 0 1px 0 #ffffff08;
}

body.soft-velvet .app-header .rules-button::after { color: var(--design-paper); }
body.soft-velvet .app-header .wallet-strip strong { color: var(--design-gold); }

body.soft-velvet > .local-build-label {
  width: fit-content;
  margin: 0 0 11px;
  padding: 2px 7px 3px;
  border: 1px solid #72566470;
  border-radius: 4px;
  color: #d8c2ca;
  background: #2e222c;
  font-size: 9px;
  letter-spacing: .06em;
}

body.soft-velvet .main-nav {
  gap: 2px;
  padding: 5px;
  border: 1px solid #785e68;
  border-radius: 17px;
  background: linear-gradient(180deg, #2b212c, #211823);
  box-shadow: 0 12px 30px #08060cba, inset 0 1px 0 #e4b98e1c;
}

body.soft-velvet .main-nav button[data-tab] {
  border: 1px solid transparent;
  border-radius: 11px;
  color: #d1bec9;
}

body.soft-velvet .main-nav button[data-tab].active {
  background: #46323c;
  border-color: #a17b64;
  color: #ffdfaf;
  box-shadow: inset 0 1px 0 #f7d49e36;
}

body.soft-velvet .main-nav .exchange-badge {
  color: #35212a;
  background: var(--design-gold);
}

body.soft-velvet main > section > .heading > h2 {
  color: var(--design-paper);
  font: 600 clamp(26px, 5.5vw, 36px)/1.03 var(--design-serif);
  letter-spacing: -.026em;
}

body.soft-velvet :is(.secondary, .unav-back, .unified-small) {
  border-color: #725664;
  background: var(--design-raised);
  color: var(--design-paper);
}

body.soft-velvet .primary {
  background: var(--design-metal);
  border-color: #edc797;
  color: #281824;
  box-shadow: 0 4px 14px #08050b55, inset 0 1px 0 #fff4db80;
}

body.soft-velvet .text-button { color: var(--design-gold); }
body.soft-velvet .pill {
  border-color: #725664;
  background: #342634;
  color: #ebd7e0;
}

body.soft-velvet :is(button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--design-gold);
  outline-offset: 2px;
}

body.soft-velvet .shop-item {
  border-color: #684d5d;
  background: linear-gradient(150deg, var(--design-raised), var(--design-panel));
  color: var(--design-paper);
}
body.soft-velvet .shop-item small { color: var(--design-muted); }
body.soft-velvet .shop-item .shop-icon { background: #49303e; color: var(--design-gold); }

/* Keep the artwork dimensions and transforms under home-b.js control. */
body.soft-velvet #drop .hb-background { display: none; }

body.soft-velvet #drop #reel-window {
  border-color: #765763;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 34%, #7b43565f, transparent 64%),
    radial-gradient(ellipse at 50% 100%, #8c654828, transparent 57%),
    repeating-linear-gradient(120deg, #fff1df02 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #332330, #1c1521 83%);
  box-shadow: inset 0 0 0 5px #120d1744, inset 0 1px 0 #f8d5b030, 0 12px 28px #09060e70;
}

body.soft-velvet #drop #reel img {
  filter: brightness(.56) saturate(.68);
  opacity: .58;
}

body.soft-velvet #drop #reel img.hb-center {
  filter: none;
  opacity: 1;
  border-radius: 8px;
  box-shadow: 0 9px 34px #0d0712bd, 0 0 0 1px #e5bc8a40;
}

body.soft-velvet #drop .hb-swipe-tip {
  color: var(--design-gold);
  font-size: 17px;
}

body.soft-velvet #drop .hb-swipe-tip::before,
body.soft-velvet #drop .hb-swipe-tip::after {
  content: "";
  display: inline-block;
  width: min(11%, 43px);
  height: 1px;
  margin: 0 9px 4px;
  background: #dcb38664;
}

body.soft-velvet #drop #opening-season {
  border-color: #755968;
  border-radius: 10px;
  background: #2a202d;
  color: var(--design-paper);
}

body.soft-velvet #drop .opening-shared {
  border: 0;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
}

body.soft-velvet #drop .opening-shared strong,
body.soft-velvet #drop .opening-shared span {
  color: var(--design-muted);
}

body.soft-velvet #drop #open {
  border: 1px solid #f2c99a;
  border-radius: 13px;
  background: var(--design-metal);
  color: #2b1a25;
  box-shadow: inset 0 1px #fff3dc9e, 0 5px 15px #08050b7a;
  letter-spacing: .015em;
}

body.soft-velvet #drop :is(#paid-open, #countdown) {
  border-radius: 13px;
  border-color: #8b6a6e;
  background: #322431;
  color: var(--design-paper);
}

body.soft-velvet #drop #paid-open > strong { color: var(--design-gold); }
body.soft-velvet #drop #paid-open > small { color: #d1b8c5; }
body.soft-velvet #drop #countdown > span { color: var(--design-muted); }

body.soft-velvet #reward.art-dialog,
body.soft-velvet #detail.art-dialog {
  background: var(--design-panel);
  border-color: #9f7769;
  color: var(--design-paper);
}
body.soft-velvet #reward.art-dialog > .art-shell,
body.soft-velvet #detail.art-dialog > .art-shell {
  background: radial-gradient(ellipse at 50% 27%, rgba(var(--ru-light, 228, 183, 129), .12), transparent 65%), linear-gradient(145deg, #332432, #201722);
}
body.soft-velvet #reward .ru-name-row h2 { font-family: var(--design-serif); }
body.soft-velvet #reward #reward-next:not(:disabled) {
  background: var(--design-metal);
  border-color: #edc797;
  color: #2b1a25;
}

/* Home title and free counter are redundant with the primary action. */
body.soft-velvet #drop > .heading { display: none; }
body.soft-velvet #collection > .heading { display: none; }
body.soft-velvet #vitrine > .heading,
body.soft-velvet #exchanges > .heading,
body.soft-velvet #social-find-exchange { display: none; }
/* Selected navigation already names these sections; the wallet is in the header. */
#market-scroll .trade-hero,
#market-scroll #unified-shop > .unified-title,
#unified-shop > .unified-balance,
#unified-shop > .unified-kicker,
#exchange-page-trades > .social-section-title { display: none; }

/* Short landscape keeps the artwork and actions in the existing two columns. */
@media (orientation: portrait), (min-height: 521px) {
  body.soft-velvet #drop {
    grid-template-rows: auto minmax(0,1fr) auto auto minmax(52px,max-content);
    gap: 8px;
  }

  body.soft-velvet #drop > .season-choice { grid-row: 1; }
  body.soft-velvet #drop #reel-window { grid-row: 2; }
  body.soft-velvet #drop #hb-notices { grid-row: 3; }
  body.soft-velvet #drop #sv-skip { grid-row: 4; }
  body.soft-velvet #drop #hb-actions { grid-row: 5; }
  body.soft-velvet #drop .opening-shared strong {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  body.soft-velvet #drop > .season-choice > label {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
}

@media (max-width: 350px) {
  body.soft-velvet .app-header .brand h1 { font-size: 11px; letter-spacing: 0; }
  body.soft-velvet .app-header .brand-mark { width: 28px; height: 28px; font-size: 18px; }
  body.soft-velvet .app-header .brand { gap: 5px; }
}

@media (orientation: portrait) and (max-height: 650px) {
  body.soft-velvet > .app-header { min-height: 43px; margin-bottom: 7px; padding-bottom: 5px; }
  body.soft-velvet > .local-build-label { margin-bottom: 7px; }
  body.soft-velvet #drop { gap: 6px; }
}

/* Task list: one rhythm for activities, with dividers inside each group. */
body.soft-velvet #activities {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
#activities > .heading { margin: 4px 0 6px; align-items: baseline; }
#activities #activities-earned { color: var(--design-gold); font-size: .85rem; }
#activities #activities-earned-note { margin: 0 0 18px; }
#activities .activity-entry {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #725664;
  border-radius: 12px;
  background: var(--design-panel);
}
#activities .activity-entry .shop-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #f0ce9d32;
  border-radius: 8px;
  background: #3a2a35;
  color: var(--design-gold);
}
#activities .activity-entry small { color: var(--design-muted); }
#activities #activities-content > .daily-activity {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #72566466;
  border-radius: 0;
  margin: 0 0 10px;
  padding: 14px 0 12px;
}
#activities #activities-content .heading { margin: 0 0 6px; }
#activities #activities-content .panel-note { margin: 5px 0; }
#activities #activities-content .puzzle-home .primary {
  width: auto;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
}
#activities .compact-stage-pills > * {
  background: var(--design-panel);
  border-color: #725664;
  color: var(--design-gold);
}
#activities #activities-content .activity-round {
  border: 0;
  border-top: 1px solid #72566455;
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 9px 0;
}
#activities .activity-round .compact-task-copy { min-width: 0; }
#activities .activity-round .compact-task-copy small { color: var(--design-muted); }
#activities #activities-content .activity-round button { min-height: 44px; }
#activities #activities-content .panel-note:empty { display: none; }
#activities #activities-content > .daily-activity { padding-block: 12px 10px; }

/* Daily activities match the compact card hierarchy of the reference. */
body.soft-velvet #activities { max-width: 440px; }
#activities > .heading { margin: 0 0 12px; gap: 8px; }
body.soft-velvet #activities-title { font: 750 clamp(21px, 5.7vw, 27px)/1.14 system-ui, sans-serif; }
#activities .pill { padding: 3px 7px; border: 0; border-radius: 20px; background: #3a303f; color: var(--design-paper); white-space: nowrap; }
#activities .daily-spin-card,
#activities #activities-content > .daily-activity,
#activities .activity-entry[data-tab="photos"] {
  padding: 12px;
  margin: 0 0 10px;
  background: #292130;
  border: 0;
  border-radius: 15px;
}
#activities .daily-spin-card { border: 1px solid var(--design-line); }
#activities .daily-spin-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#activities .daily-spin-heading small { display: block; color: var(--design-muted); margin-top: 4px; }
#activities .daily-spin-heading .shop-icon { background: #40304a; color: var(--design-gold); }
#daily-spin-progress { margin-left: auto; }
#activities .daily-spin-card > button { width: 100%; min-height: 44px; border-radius: 11px; }
#activities .compact-stage-pills { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
#activities .compact-stage-pills > span { background: #43364b; text-align: center; padding: 7px 3px; border: 0; }
#activities #activities-content .puzzle-home .primary { background: #403249; border-color: #65536f; color: var(--design-paper); box-shadow: none; }
#activities #activities-content .activity-round { padding-block: 7px; }
#activities #activities-content .activity-round:first-child { border-top: 0; }
#activities .daily-extra-title { margin: 14px 0 9px; font-size: 14px; }
#activities .daily-photo-icon { color: var(--design-gold); }
#activities .compact-stage-pills:empty { display: none; }

/* Answered daily questions show their outcome on the task itself. */
#activities #activities-content .activity-round.is-correct,
#activities #activities-content .activity-round.is-wrong {
  border:0; border-radius:10px; padding:8px 9px; margin:4px 0;
}
#activities #activities-content .activity-round.is-correct {
  background:#17392d; box-shadow:inset 3px 0 #63dca9;
}
#activities #activities-content .activity-round.is-wrong {
  background:#43232c; box-shadow:inset 3px 0 #f28a98;
}
#activities #activities-content .activity-round.is-correct .compact-task-copy small {color:#b8f4d3}
#activities #activities-content .activity-round.is-wrong .compact-task-copy small {color:#ffd1d9}

/* Preserve meaningful result colours through the shared secondary-button theme. */
body.soft-velvet #activity-options button.activity-correct:disabled {
  background:#153d30; border:2px solid #63dca9; color:#d0ffe5; opacity:1;
  box-shadow:inset 0 0 0 1px #63dca922;
}
body.soft-velvet #activity-options button.activity-wrong:disabled {
  background:#48202a; border:2px solid #f28a98; color:#ffe0e4; opacity:1;
  box-shadow:inset 0 0 0 1px #f28a9822;
}
body.soft-velvet .puzzle-game-dialog .puzzle-success {
  background:#153d30; border-color:#63dca9; color:#d0ffe5;
}
body.soft-velvet .puzzle-game-dialog .puzzle-stages button.puzzle-completed,
body.soft-velvet .puzzle-game-dialog .puzzle-stages button.puzzle-completed[aria-pressed=true] {
  background:#153d30; border-color:#63dca9; color:#d0ffe5; opacity:1;
}
body.soft-velvet #activities .compact-stage-pills > span.earned {
  background:#153d30; color:#d0ffe5; box-shadow:inset 0 0 0 1px #63dca9;
}
body.soft-velvet .puzzle-game-dialog .puzzle-piece.correct::after {
  background:#63dca9; box-shadow:0 0 0 2px #153d30;
}
/* Keep the question title and both close controls on one line on small phones. */
body.soft-velvet #activity-dialog > .heading{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
body.soft-velvet #activity-dialog > .heading h2{flex:1;min-width:0;font-size:clamp(16px,4.7vw,22px);line-height:1.15}
body.soft-velvet #activity-dialog > .heading .unav-back{flex:0 0 auto;margin:0;padding:8px 10px}
body.soft-velvet #activity-dialog > .heading .icon-button{flex:0 0 38px;width:38px;height:38px;min-height:38px}

#market-scroll #unified-shop { padding: 4px 0 12px; margin: 0; }
#market-scroll #unified-shop .unified-kicker { display: none; }
#market-scroll #unified-shop .unified-title { margin-bottom: 12px; }
#market-scroll #unified-shop-title { font-size: 24px; }
#market-scroll #unified-shop .shop-group-title { margin-top: 16px; }

/* Two distinct destinations in the same trading screen. */
#market-scroll .trade-modes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:4px 0 14px; }
#market-scroll .trade-modes button { min-height:44px; margin:0; padding:8px; border-radius:11px; background:#241b2b; color:var(--design-paper); border:1px solid #665071; font-size:clamp(11px,3.4vw,14px); }
#market-scroll .trade-modes [aria-pressed="true"] { background:#d0ace9; color:#25152f; border-color:#d0ace9; font-weight:750; }
#market-scroll .trade-modes [data-trade-view="shop"][aria-pressed="true"] { background:var(--design-metal); color:#2b1a25; border-color:var(--design-gold); }
#market-scroll .trade-hero { position:relative; overflow:hidden; padding:12px 10px; margin-bottom:9px; border-radius:12px; background:linear-gradient(105deg,#211626,#321e3c); }
#market-scroll .trade-hero h2 { margin:0 0 4px; font:700 clamp(21px,6vw,30px)/1.1 var(--design-serif); }
#market-scroll .trade-hero p { margin:0; color:var(--design-muted); font-size:12px; }
#market-scroll #unified-shop .unified-title { padding:12px; border-radius:12px; background:linear-gradient(105deg,#281c2a,#49302e); }
#market-scroll #unified-shop .unified-title h2 { font-family:var(--design-serif); }
#market-scroll #unified-shop .spin-mark,
#market-scroll #unified-shop .shop-group-title h3 { color:var(--design-gold); }
#market-scroll #unified-shop .shop-list { gap:0; padding:0 9px; border:1px solid #715365; border-radius:14px; background:#241b2b; }
#market-scroll #unified-shop .shop-item { padding:10px 2px; border:0; border-radius:0; background:transparent; }
#market-scroll #unified-shop .shop-item + .shop-item { border-top:1px solid #71536562; }
#market-scroll #unified-shop .shop-item strong { color:var(--design-gold); }
#market-scroll #unified-shop .shop-icon { background:#453044; color:var(--design-gold); }
#market-scroll #unified-shop .shop-history-button { border-color:#8e6b91; }

/* Align the trade header, controls and results to the same reading column. */
body.soft-velvet #market-page > .panel-header,
body.soft-velvet #market-page > #market-scroll {
  box-sizing: border-box;
  width: 100%;
  max-width: 650px;
  margin-inline: auto;
}
body.soft-velvet #market-page #market-scroll :is(.market-toolbar,.market-filters) {
  width: 100%;
  max-width: none;
}
#market-scroll .trade-hero {
  padding: 8px 0 10px;
  margin: 0 0 6px;
  border-radius: 0;
  border-bottom: 1px solid #72566462;
  background: transparent;
}
#market-scroll .trade-modes [data-trade-view="market"][aria-pressed="true"] {
  background: #483252;
  border-color: #aa82bd;
  color: #f6e4ff;
}
body.soft-velvet #market-page #market-scroll :is(.market-toolbar,.market-sell-switch,.market-collection-filters,.market-rarity-filters) button.active {
  background: #3c2c48;
  color: #f1defd;
  border-color: #9972ad;
}
body.soft-velvet #market-page #market-scroll .market-empty {
  margin: 12px 0;
  padding: 20px 12px;
  border: 1px dashed #72566480;
  border-radius: 12px;
  background: #241b2b80;
  grid-column: 1 / -1;
}

/* Size rarity buttons to the label, wrapping whole buttons on narrow screens. */
body.soft-velvet #market-page .market-rarity-filters { flex-wrap: wrap; }
body.soft-velvet #market-page .market-rarity-filters button {
  flex: 1 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Pair the season selector with the search field above it. */
body.soft-velvet #market-page .market-season-filter {
  grid-template-columns: minmax(0,1fr);
  gap: 6px;
  margin: 12px 0 0;
}
body.soft-velvet #market-page .market-season-filter label {
  font-size: 10px;
  line-height: 1.4;
}
body.soft-velvet #market-page .market-filters > input,
body.soft-velvet #market-page #market-season {
  box-sizing: border-box;
  height: 44px;
  margin: 0;
  padding: 8px 10px;
  background: #29202f;
  border-color: #725664;
  color: var(--design-paper);
  font-size: 12px;
}
/* Earned showcase honors stay in one compact, horizontally scrollable row. */
body.soft-velvet .vitrine-achievements.vitrine-honors-compact {
  margin: 12px 0; padding: 0; border: 0; background: none; border-radius: 0;
}
.vitrine-honors-row { display: flex; gap: 7px; max-width: 100%; overflow-x: auto; padding: 3px 0 8px; }
.vitrine-honor-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #826945; border-radius: 20px; background: #302433; color: #efd4a5; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.vitrine-honor-chip > span:first-child { font-size: 16px; }
/* Achievement cabinet: earned medals and collection tiles. */
body.soft-velvet #achievements { max-width: 650px; margin-inline: auto; }
body.soft-velvet #achievements > .heading { margin: 4px 0 18px; }
body.soft-velvet #achievements-title { font: 700 25px/1.15 var(--design-serif); }
body.soft-velvet #achievements > .panel-note:first-of-type,
body.soft-velvet #achievements #home-achievements { display: none; }
body.soft-velvet #social-achievement-panel { padding: 0; margin: 0; border: 0; background: none; }
#social-achievement-panel > h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 14px; }
#social-achievement-panel > h3:not(:first-child) { margin-top: 24px; }
#social-achievement-panel .pill { padding: 3px 7px; font-size: 11px; }
#achievements #social-badges, #achievements #social-achievements, #achievements .achievement-extra-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
body.soft-velvet #achievements .compact-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 13px; border: 1px solid #51405f; border-radius: 16px; background: linear-gradient(145deg,#30233b,#211a29); }
body.soft-velvet #achievements .compact-badge.earned { border-color: #947348; background: radial-gradient(ellipse at top left,#60452b55,transparent 75%),#251e2b; }
#achievements .compact-honor-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #6e557d; border-radius: 50%; background: #463052; color: #ddc4f4; font-size: 20px; }
#achievements .earned .compact-honor-icon { color: #f5d69a; border-color: #9c794a; background: #694b2b66; }
#achievements .compact-badge strong { font-size: 12px; line-height: 1.4; font-weight: 600; }
#achievements .compact-badge small { margin-top: auto; font-size: 11px; color: #c0adc9; }
#achievements .compact-badge.earned small { color: #dfc38e; }
#achievements progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 5px; overflow: hidden; background: #44344f; accent-color: #bd91de; }
#achievements progress::-webkit-progress-bar { background: #44344f; border-radius: 5px; }
#achievements progress::-webkit-progress-value { background: #bd91de; border-radius: 5px; }
#achievements .earned progress::-webkit-progress-value { background: #e0bd80; }
body.soft-velvet #achievements .achievement-tile { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; min-width: 0; border: 1px solid #51405f; border-radius: 16px; background: linear-gradient(145deg,#30233b,#211a29); }
body.soft-velvet #achievements .achievement-tile.earned { border-color: #927044; }
body.soft-velvet #achievements .achievement-tile > img { width: 56px; height: 84px; object-fit: cover; border-radius: 6px; align-self: center; }
#achievements .achievement-tile > div { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 5px; }
#achievements .achievement-tile strong { font-size: 14px; margin: 0; color: #f2e6da; }
#achievements .achievement-tile small { font-size: 10px; line-height: 1.4; margin: 0; color: #beacc8; }
#achievements .achievement-tile progress { margin-top: auto; }
body.soft-velvet #achievements .achievement-tile button { order: 1; margin: 5px 0 0; width: 100%; min-height: 36px; padding: 7px; font-size: 11px; border-radius: 10px; }
#achievements .compact-more-sets { grid-column: 1 / -1; }
#achievements .compact-more-sets > summary { padding: 12px; margin-bottom: 10px; border: 1px solid #584062; border-radius: 12px; font-size: 12px; color: #d1b8e5; cursor: pointer; }
#achievements > .panel-note:last-child { font-size: 11px; line-height: 1.5; margin-top: 16px; color: var(--design-muted); }

/* Keep the personal showcase navigation free of role labels. */
body.soft-velvet #vitrine > .founder-mark { display: none; }
/* LOCAL PREVIEW: season / set showcase navigation. */
.showcase-browser { margin-top: 18px; }
.showcase-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.showcase-breadcrumb h3 { margin:0; font-size:17px; }
.showcase-breadcrumb button { padding:8px 12px; min-height:36px; font-size:12px; }
.showcase-level-count { color:#c5afcb; font-size:12px; margin-left:auto; }
.showcase-season-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body.soft-velvet .showcase-tile { position:relative; display:grid; grid-template-columns:46px minmax(0,1fr); gap:10px; padding:12px; text-align:left; min-width:0; border:1px solid #66506f; border-radius:16px; background:linear-gradient(145deg,#302437,#201a27); color:#f4e7da; }
body.soft-velvet .showcase-tile.complete { border-color:#97764c; background:linear-gradient(145deg,#49352d,#241e2a); }
.showcase-tile img { width:46px; height:69px; object-fit:cover; border-radius:5px; }
.showcase-tile-copy { display:flex; flex-direction:column; gap:6px; min-width:0; }
.showcase-tile-copy strong { font:700 16px/1.15 Georgia,serif; overflow-wrap:anywhere; }
.showcase-tile-copy small { font-size:10px; line-height:1.4; color:#c5afcb; }
.showcase-tile-copy b { font-size:12px; color:#efd2a2; margin-top:auto; }
.showcase-tile progress { grid-column:1/-1; width:100%; height:5px; border:0; border-radius:5px; overflow:hidden; accent-color:#c7a0e1; }
.showcase-tile progress::-webkit-progress-bar { background:#4b3955; }
.showcase-tile progress::-webkit-progress-value { background:#c7a0e1; }
.showcase-tile.complete progress::-webkit-progress-value { background:#e4bf80; }
.showcase-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.showcase-card-grid .vitrine-card { width:100%; min-width:0; }
.showcase-missing { aspect-ratio:0.62; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; padding:8px; border:1px dashed #685572; border-radius:12px; background:#211a28; color:#a992b5; text-align:center; }
.showcase-missing > span { font-size:28px; }
.showcase-missing small { font-size:10px; }
@media(max-width:350px){body.soft-velvet .showcase-tile{grid-template-columns:34px minmax(0,1fr);padding:10px;gap:8px}.showcase-tile img{width:34px;height:51px}.showcase-tile-copy strong{font-size:14px}}
/* Keep both the opened set and single-card viewer at a readable scale. */
.showcase-browser { max-width:650px; margin-inline:auto; }
.showcase-card-grid { width:100%; max-width:480px; margin-inline:auto; }
#gallery-card { width:min(390px,calc(100% - 24px)); }
#gallery-card .gallery-full-image { width:auto; height:auto; max-width:100%; max-height:min(52dvh,440px); object-fit:contain; }
.showcase-player-count { display:block; color:#c8b4d0; font-size:12px; margin:10px 0 8px; }
.showcase-player-progress { display:block; width:100%; height:5px; border:0; border-radius:5px; overflow:hidden; background:#493651; accent-color:#c7a0e1; }
.showcase-player-progress::-webkit-progress-bar { background:#493651; }
.showcase-player-progress::-webkit-progress-value { background:#c7a0e1; border-radius:5px; }
/* Showcase opens directly as a player directory; ownership stays in Collection. */
body.soft-velvet #vitrine > .vitrine-switch,
body.soft-velvet #vitrine-own { display:none; }
.showcase-visibility { display:flex; align-items:center; gap:12px; margin:0 0 14px; padding:14px; border:1px solid #66506f; border-radius:14px; background:#29202f; font-size:13px; line-height:1.4; cursor:pointer; }
.showcase-visibility input { flex:0 0 auto; width:20px; height:20px; accent-color:#c7a0e1; }
.showcase-visibility:has(input:disabled) { cursor:wait; }
.showcase-visibility-status #gallery-message:empty { display:none; }
.showcase-visibility-status .panel-note { margin:0 0 12px; font-size:12px; }
body.soft-velvet .exchange-switch { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
body.soft-velvet .exchange-switch button { padding:10px 4px; font-size:11px; min-width:0; white-space:normal; }
#exchange-history-search { display:flex; gap:8px; margin:14px 0 8px; }
#exchange-history-query { min-width:0; flex:1; width:100%; padding:10px; }
#exchange-history-search button { width:auto; padding:8px 12px; }
.public-trade { margin:8px 0; border:1px solid #5d4868; border-radius:14px; background:#251d2d; overflow:hidden; }
.public-trade > summary { display:flex; align-items:center; gap:8px; padding:11px; list-style:none; cursor:pointer; }
.public-trade > summary::-webkit-details-marker { display:none; }
.public-trade-copy { display:flex; flex-direction:column; flex:1; min-width:0; gap:5px; }
.public-trade-copy strong { font-size:12px; overflow-wrap:anywhere; }
.public-trade-copy small,.public-trade time { font-size:10px; color:#c1adca; }
.public-trade time { max-width:44px; text-align:right; line-height:1.4; }
.public-trade-chevron { color:#c7a0e1; }
.public-trade-preview { display:flex; flex:0 0 auto; gap:3px; }
.public-trade-preview img { width:24px; height:36px; object-fit:cover; border-radius:3px; }
.public-trade-side { margin:0 12px 12px; padding-top:10px; border-top:1px solid #47344f; }
.public-trade-side h4 { margin:0 0 8px; font-size:12px; }
.public-trade-cards { display:flex; flex-wrap:wrap; gap:8px; }
.public-trade-card { display:flex; flex-direction:column; width:65px; gap:5px; }
.public-trade-card img { width:65px; height:97px; object-fit:contain; border-radius:4px; }
.public-trade-card small { font-size:10px; line-height:1.3; color:#d4bfdc; }
#exchange-history-more { width:100%; margin-top:10px; }

/* Card opening presentation; no game or economy state is stored here. */
#drop #reel-window.drop-envelope-enabled{isolation:isolate;overflow:hidden}
#drop #reel-window.drop-envelope-enabled>#reel,#drop #reel-window.drop-envelope-enabled>.sv-deck,#drop #reel-window.drop-envelope-enabled>.marker,#drop #reel-window.drop-envelope-enabled>.target-frame,#drop #reel-window.drop-envelope-enabled>.sv-stage-particles,#drop #reel-window.drop-envelope-enabled>.sv-last-card{display:none!important}
.envelope-layer{position:absolute;inset:0;display:grid;place-items:center;z-index:4;overflow:hidden;background:radial-gradient(ellipse at 50% 48%,#8052a03b,transparent 57%)}
.envelope-stars{position:absolute;inset:0;pointer-events:none;color:#dcc2e7}.envelope-stars i{position:absolute;opacity:.5;font:normal 17px Georgia,serif}.envelope-stars i:nth-child(1){top:15%;left:14%}.envelope-stars i:nth-child(2){top:25%;right:14%;font-size:9px}.envelope-stars i:nth-child(3){bottom:20%;left:15%}.envelope-stars i:nth-child(4){bottom:18%;right:16%;font-size:26px}
.envelope-pack{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;height:min(75%,290px);aspect-ratio:2/3;max-width:65%;padding:0;color:#f3ddc4;border:1px solid #e2b98b8a;border-radius:5px 5px 9px 9px;background:linear-gradient(115deg,#a583c0 0,#543a65 8%,#241932 23%,#4a315a 48%,#251a31 75%,#9b78ab 100%);box-shadow:0 13px 30px #08020e99,inset 0 0 0 5px #1b14239a;cursor:pointer;overflow:visible}.envelope-pack[hidden],.envelope-card[hidden],.envelope-prompt[hidden]{display:none!important}.envelope-pack::after{content:"";position:absolute;left:5px;right:5px;bottom:5px;height:13px;background:repeating-linear-gradient(90deg,#e9c0a444 0 2px,transparent 2px 5px);opacity:.75}.envelope-tear{position:absolute;left:1px;right:1px;top:0;height:23px;z-index:3;border:1px solid #dab799;background:repeating-linear-gradient(90deg,#d0aed344 0 2px,transparent 2px 5px),linear-gradient(90deg,#6c5078,#b99abf,#54405f);transform-origin:left center;box-shadow:0 3px 8px #0006}.envelope-brand,.envelope-bottom{position:absolute;font-size:7px;letter-spacing:.15em}.envelope-brand{top:32px}.envelope-bottom{bottom:30px;font-size:6px}.envelope-outline{position:absolute;inset:42px 15px;border:1px solid #dfb58f7d;border-radius:50% 50% 8px 8px}.envelope-symbol{font-size:47px;color:#f2d4b1;text-shadow:0 0 20px #f9d2a988}.envelope-season{position:relative;max-width:82%;font:13px/1.35 Georgia,serif;letter-spacing:.06em;text-align:center;overflow-wrap:anywhere}
.envelope-opening .envelope-pack{animation:env-open 1.45s ease both;pointer-events:none}.envelope-opening .envelope-tear{animation:env-tear 1.45s cubic-bezier(.2,.65,.25,1) both}
.envelope-card{position:relative;width:auto;height:min(78%,300px);aspect-ratio:600/840;max-width:72%;padding:0;border:0;background:transparent;perspective:1000px;filter:drop-shadow(0 10px 18px #090312aa);cursor:pointer;animation:env-arrive .55s both}.envelope-card-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .65s cubic-bezier(.2,.7,.2,1)}.envelope-flipping .envelope-card-inner{transform:rotateY(180deg)}.envelope-card-back,.envelope-card-face{position:absolute;inset:0;display:block;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:10px;overflow:hidden}.envelope-card-back{padding:9px;background:linear-gradient(140deg,#e4c3a0,#7d5c64 8%,#271d32 18%,#5d406b 52%,#211a29 82%,#c6a78d);border:1px solid #eccda5}.envelope-card-face{transform:rotateY(180deg)}.envelope-card-face img{width:100%;height:100%;object-fit:contain}.envelope-card-border{position:relative;height:100%;border:1px solid #deb38b99;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(circle at center,#775388,#25192e 70%);border-radius:4px;box-shadow:inset 0 0 0 4px #211727aa}.envelope-card-border small,.envelope-card-border em{font:normal 7px Georgia,serif;letter-spacing:.1em;color:#e0bdab}.envelope-card-border b{font:normal 44px Georgia,serif;color:#efd6ba;text-shadow:0 0 20px #eac8c6aa}.envelope-card-border strong{text-align:center;font:700 14px/1.4 Georgia,serif;letter-spacing:.14em;color:#f2dbc9}.envelope-card-border em{position:absolute;bottom:15px;font-size:6px}.envelope-prompt{position:absolute;bottom:5px;left:0;right:0;text-align:center;color:#e3d0ec;font-size:11px;pointer-events:none}.envelope-pack:focus-visible,.envelope-card:focus-visible{outline:3px solid white;outline-offset:4px}
@keyframes env-open{20%{transform:rotate(-4deg) scale(1.03)}45%{transform:rotate(4deg) scale(1.06);filter:brightness(1.4)}100%{opacity:0;transform:translateY(35px) scale(.83)}}@keyframes env-tear{0%,20%{transform:translateY(0) rotate(0);opacity:1}54%{transform:translate(28px,-32px) rotate(-17deg);opacity:1}100%{transform:translate(75px,-70px) rotate(-35deg);opacity:0}}@keyframes env-arrive{from{opacity:0;transform:translateY(25px) scale(.88)}to{opacity:1;transform:translateY(0) scale(1)}}
.envelope-short .envelope-pack,.envelope-short .envelope-tear{animation-duration:.65s}.envelope-short .envelope-card{animation-duration:.3s}.envelope-explicit-motion .envelope-card-inner{transition:transform .65s cubic-bezier(.2,.7,.2,1)!important}
#drop #reel-window.drop-envelope-enabled>.hb-swipe-tip{display:none!important}

.envelope-season-cover{position:relative;display:block;width:27px;height:38px;object-fit:cover;border-radius:3px;border:1px solid #efcfad9c;box-shadow:0 2px 6px #10081599;margin:0 0 6px}.envelope-season-cover[hidden]{display:none}

.envelope-season{max-height:4.1em;overflow:hidden;font-size:clamp(10px,2.5vh,13px)}

@media(max-height:650px){.envelope-card-border b{font-size:30px}.envelope-card-border strong{font-size:10px;line-height:1.25;letter-spacing:.09em;white-space:nowrap}.envelope-card-border small{font-size:6px}.envelope-card-border em{font-size:5px;bottom:7px}}
/* Season name remains on the envelope; the miniature card is not shown. */
#drop #reel-window .envelope-season-cover{display:none!important}
/* Scale the envelope and unrevealed card with the available opening stage. */
.envelope-pack{height:min(75%,800px)}
.envelope-card{height:min(78%,800px)}
.envelope-pack:disabled{opacity:1}
@media(min-width:700px) and (min-height:700px){
 .envelope-brand{top:6%;font-size:clamp(8px,1vw,13px)}
 .envelope-bottom{bottom:6%;font-size:clamp(7px,.85vw,11px)}
 .envelope-outline{inset:10% 8%}
 .envelope-symbol{font-size:clamp(47px,6vw,82px)}
 .envelope-season{font-size:clamp(14px,1.5vw,22px)}
 .envelope-card-border small{font-size:clamp(7px,.95vw,12px)}
 .envelope-card-border b{font-size:clamp(44px,5vw,80px)}
 .envelope-card-border strong{font-size:clamp(14px,1.8vw,24px);white-space:nowrap}
 .envelope-card-border em{bottom:5%;font-size:clamp(6px,.8vw,10px)}
}
@media(max-height:520px){
 .envelope-brand,.envelope-bottom{display:none}
 .envelope-outline{inset:15px 8px}
 .envelope-symbol{font-size:24px}
 .envelope-season{font-size:10px;line-height:1.1;max-height:2.2em}
 .envelope-tear,.envelope-pack::after{height:8px}
}
/* Keep market-card content aligned while allowing long names to wrap. */
body.soft-velvet #market-page .market-grid > .market-lot {
  display:flex;
  flex-direction:column;
}
body.soft-velvet #market-page .market-grid > .market-lot > .market-art-button {
  flex:0 0 auto;
}
body.soft-velvet #market-page .market-grid > .market-lot > .market-lot-meta {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  min-width:0;
}
body.soft-velvet #market-page .market-grid > .market-lot .market-card-name {
  min-height:3.75em;
  margin-bottom:auto;
  padding-bottom:4px;
}
