/* Arena Teney - Shop S1 full visual skin 0216s1r04
 * Presentation-only visual constitution. S0 storefront/catalog/modal/purchase stay authoritative.
 */

@media (max-width: 960px) {
  html.shop-s1-rework {
    --shop-bg-deep: #050504;
    --shop-bg-ash: #0a0908;
    --shop-bg-panel: rgba(15, 12, 10, .94);
    --shop-bg-panel-strong: rgba(22, 17, 13, .98);
    --shop-wood: #21170f;
    --shop-leather: #2a1811;
    --shop-metal: #7d6849;
    --shop-metal-dim: rgba(125, 104, 73, .44);
    --shop-gold: #d5a650;
    --shop-gold-soft: rgba(213, 166, 80, .16);
    --shop-ivory: #efe2c8;
    --shop-muted: #9c907f;
    --shop-danger: #b85e55;
    --shop-success: #7ea96f;
    --shop-shadow: rgba(0, 0, 0, .58);
    --shop-radius: 10px;
    --shop-radius-soft: 13px;
    --shop-line: rgba(159, 122, 63, .42);
    --shop-line-cold: rgba(116, 107, 92, .34);
    --shop-rarity-common: #b8b0a0;
    --shop-rarity-uncommon: #86a873;
    --shop-rarity-rare: #6d8fad;
    --shop-rarity-epic: #9b76b8;
    --shop-rarity-legendary: #d39a45;
    --shop-rarity-cursed: #aa5553;
  }

  html.shop-s1-rework body[data-screen="shop"] {
    background:
      radial-gradient(circle at 77% 5%, rgba(181, 111, 35, .18), transparent 31rem),
      radial-gradient(circle at 18% 18%, rgba(92, 62, 31, .18), transparent 22rem),
      linear-gradient(180deg, #070606 0%, #0d0a08 48%, #050505 100%) !important;
  }

  html.shop-s1-rework #screen-shop {
    padding-inline: 0 !important;
  }

  html.shop-s1-rework #screen-shop .ui007-shop {
    gap: 12px;
    color: var(--shop-ivory);
  }

  html.shop-s1-rework #screen-shop .ui007-shop > .card,
  html.shop-s1-rework #screen-shop .ui007-shop-nav,
  html.shop-s1-rework #screen-shop .ui007-shop-main {
    border-radius: var(--shop-radius-soft) !important;
    border-color: var(--shop-line) !important;
    background:
      radial-gradient(circle at 84% 0, rgba(208, 145, 57, .09), transparent 30%),
      linear-gradient(180deg, rgba(24, 18, 13, .96), rgba(8, 7, 6, .985)) !important;
    box-shadow:
      0 18px 48px var(--shop-shadow),
      inset 0 1px 0 rgba(255, 235, 190, .045) !important;
  }

  html.shop-s1-rework #screen-shop .ui007-shop-nav {
    padding: 0 !important;
    overflow: hidden;
  }

  html.shop-s1-rework #s03-shop-mobile-hero {
    position: relative;
    min-height: clamp(270px, 72vw, 430px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 18px 15px 14px;
    border: 0;
    border-radius: var(--shop-radius-soft);
    background:
      linear-gradient(90deg, rgba(4, 4, 4, .98) 0%, rgba(7, 6, 5, .87) 36%, rgba(7, 6, 5, .34) 70%, rgba(7, 6, 5, .05) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .08) 48%, rgba(3, 3, 3, .82) 100%),
      url('/assets/core053/shop-s1-merchant-scene-0215.webp?v=0216s1r04') center right / cover no-repeat;
    isolation: isolate;
  }

  html.shop-s1-rework #s03-shop-mobile-hero::before,
  html.shop-s1-rework #s03-shop-mobile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  html.shop-s1-rework #s03-shop-mobile-hero::before {
    background:
      radial-gradient(circle at 75% 60%, rgba(222, 134, 37, .16), transparent 26%),
      linear-gradient(180deg, rgba(255, 230, 180, .035), transparent 38%, rgba(0, 0, 0, .52));
  }

  html.shop-s1-rework #s03-shop-mobile-hero::after {
    inset: 10px;
    border: 1px solid rgba(210, 166, 88, .26);
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32);
  }

  html.shop-s1-rework #s03-shop-mobile-hero > * {
    position: relative;
    z-index: 1;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-hero {
    display: block;
    max-width: min(64%, 245px);
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-kicker {
    color: var(--shop-gold);
    font-size: 9px;
    line-height: 1.32;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px #000;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-title {
    max-width: 180px;
    margin: 7px 0 7px;
    color: var(--shop-ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 11vw, 48px);
    line-height: .95;
    letter-spacing: 0;
    text-shadow: 0 4px 18px #000;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-sale {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid rgba(202, 161, 84, .38);
    border-radius: 8px;
    color: #e5cf9d;
    background: rgba(18, 13, 9, .74);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.25;
    box-shadow: inset 0 1px 0 rgba(255, 236, 197, .045);
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s1-merchant-line {
    max-width: 225px;
    margin: 9px 0 0;
    color: #d2c3aa;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 1.38;
    text-shadow: 0 2px 12px #000;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-gold {
    position: absolute;
    top: 18px;
    right: 18px;
    min-width: 88px;
    display: inline-flex;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid rgba(214, 167, 78, .54);
    border-radius: 8px;
    color: #f2d284;
    background:
      linear-gradient(180deg, rgba(43, 29, 13, .88), rgba(16, 12, 8, .92));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 237, 192, .06);
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 1px 8px #000;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-actions {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 8px;
    margin-top: 14px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-action {
    min-height: 39px;
    border: 1px solid var(--shop-line-cold);
    border-radius: 8px;
    color: #d8cfbc;
    background:
      linear-gradient(180deg, rgba(27, 21, 16, .90), rgba(10, 9, 8, .96));
    box-shadow: inset 0 1px 0 rgba(255, 240, 205, .035);
    font-size: 11px;
    font-weight: 850;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-action.primary {
    border-color: rgba(214, 166, 80, .56);
    color: #f8e4ad;
    background: linear-gradient(180deg, rgba(73, 47, 19, .94), rgba(29, 21, 12, .98));
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-action[aria-expanded="true"] {
    border-color: rgba(214, 166, 80, .72);
    color: var(--shop-ivory);
    background: linear-gradient(180deg, rgba(80, 48, 23, .98), rgba(26, 17, 11, .98));
  }

  html.shop-s1-rework #screen-shop .ui007-departments {
    display: flex !important;
    gap: 7px;
    margin: 0;
    padding: 10px 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html.shop-s1-rework #screen-shop .ui007-departments::-webkit-scrollbar {
    display: none;
  }

  html.shop-s1-rework #screen-shop .ui007-department {
    flex: 0 0 auto;
    min-height: 38px;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px 7px 8px;
    border: 1px solid rgba(127, 111, 83, .42);
    border-radius: 9px;
    color: #c9beaa;
    background: linear-gradient(180deg, rgba(21, 18, 14, .96), rgba(9, 8, 7, .98));
    box-shadow: inset 0 1px 0 rgba(255, 238, 203, .025);
    white-space: nowrap;
  }

  html.shop-s1-rework #screen-shop .ui007-department > span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-color: rgba(157, 129, 78, .36);
    border-radius: 6px;
    background: rgba(44, 31, 18, .74);
    font-size: 13px;
    filter: sepia(.32) saturate(.82) brightness(.94);
  }

  html.shop-s1-rework #screen-shop .ui007-department b {
    font-size: 10px;
    letter-spacing: .01em;
  }

  html.shop-s1-rework #screen-shop .ui007-department em {
    display: none;
  }

  html.shop-s1-rework #screen-shop .ui007-department.active,
  html.shop-s1-rework #screen-shop .ui007-department[aria-current="true"] {
    border-color: rgba(216, 171, 91, .74);
    color: #f3ddb2;
    background: linear-gradient(180deg, rgba(68, 43, 17, .98), rgba(20, 14, 9, .98));
    box-shadow: 0 0 0 1px rgba(216, 171, 91, .07), inset 0 1px 0 rgba(255, 236, 194, .06);
  }

  html.shop-s1-rework #screen-shop .ui007-rotation-note {
    margin: 9px 10px 10px;
    padding: 8px 10px;
    border: 1px solid rgba(157, 129, 78, .34);
    border-radius: 8px;
    background: rgba(10, 9, 7, .70);
  }

  html.shop-s1-rework #screen-shop .ui007-rotation-note span {
    color: #e4cb92;
    font-size: 11px;
  }

  html.shop-s1-rework #screen-shop .ui007-shop-main {
    padding: 10px !important;
  }

  html.shop-s1-rework #screen-shop .ui007-toolbar {
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(148, 119, 70, .36);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(20, 16, 12, .96), rgba(8, 8, 7, .98)) !important;
  }

  html.shop-s1-rework #screen-shop .ui007-toolbar label > span {
    color: var(--shop-muted);
    font-size: 8px;
    letter-spacing: .08em;
  }

  html.shop-s1-rework #screen-shop .ui007-toolbar input,
  html.shop-s1-rework #screen-shop .ui007-toolbar select {
    min-height: 42px;
    border: 1px solid rgba(138, 120, 88, .38);
    border-radius: 8px;
    color: var(--shop-ivory);
    background: rgba(6, 6, 5, .82);
    font-size: 12px;
  }

  html.shop-s1-rework #screen-shop .ui007-toolbar input:focus,
  html.shop-s1-rework #screen-shop .ui007-toolbar select:focus {
    outline: 2px solid rgba(213, 166, 80, .18);
    border-color: rgba(213, 166, 80, .68);
  }

  html.shop-s1-rework #screen-shop .ui007-result-head {
    min-height: 30px;
    margin: 2px 2px 9px;
    color: #c7b99f;
    font-size: 11px;
  }

  html.shop-s1-rework #screen-shop .ui007-result-head b {
    color: #928673;
  }

  html.shop-s1-rework #screen-shop .ui007-items {
    gap: 9px;
  }

  html.shop-s1-rework #screen-shop .ui007-item {
    min-height: 126px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(124, 110, 86, .38);
    border-radius: 10px;
    background:
      linear-gradient(90deg, rgba(213, 166, 80, .10), transparent 3px),
      radial-gradient(circle at 92% 8%, rgba(214, 155, 65, .055), transparent 30%),
      linear-gradient(180deg, rgba(19, 15, 12, .98), rgba(8, 8, 7, .995)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 240, 205, .03), 0 10px 26px rgba(0, 0, 0, .22);
  }

  html.shop-s1-rework #screen-shop .ui007-item::after {
    content: '';
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(213, 166, 80, .26), transparent);
  }

  html.shop-s1-rework #screen-shop .ui007-item.selected,
  html.shop-s1-rework #screen-shop .ui007-item.is-selected,
  html.shop-s1-rework #screen-shop .ui007-item:hover {
    border-color: rgba(213, 166, 80, .78);
    box-shadow: inset 0 0 0 1px rgba(213, 166, 80, .10), 0 14px 30px rgba(0, 0, 0, .30);
  }

  html.shop-s1-rework #screen-shop .ui007-item.quality-uncommon { border-left-color: var(--shop-rarity-uncommon); }
  html.shop-s1-rework #screen-shop .ui007-item.quality-rare { border-left-color: var(--shop-rarity-rare); }
  html.shop-s1-rework #screen-shop .ui007-item.quality-epic { border-left-color: var(--shop-rarity-epic); }
  html.shop-s1-rework #screen-shop .ui007-item.quality-legendary { border-left-color: var(--shop-rarity-legendary); }
  html.shop-s1-rework #screen-shop .ui007-item.quality-cursed { border-left-color: var(--shop-rarity-cursed); }

  html.shop-s1-rework #screen-shop .ui007-item-top {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  html.shop-s1-rework #screen-shop .ui007-item-icon {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(148, 119, 70, .36);
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% 32%, rgba(239, 210, 142, .13), transparent 45%),
      linear-gradient(180deg, rgba(35, 26, 17, .96), rgba(8, 8, 7, .98));
    font-size: 25px;
    filter: sepia(.18) saturate(.92);
  }

  html.shop-s1-rework #screen-shop .ui007-item-top small {
    color: #a99a83;
    font-size: 9px;
  }

  html.shop-s1-rework #screen-shop .ui007-item-top h4 {
    margin: 3px 0;
    overflow: visible;
    color: var(--shop-ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.13;
    text-overflow: clip;
    white-space: normal;
  }

  html.shop-s1-rework #screen-shop .ui007-item-top p {
    color: #918674;
    font-size: 9px;
  }

  html.shop-s1-rework #screen-shop .ui007-item-stats {
    gap: 5px;
    margin-top: 8px;
  }

  html.shop-s1-rework #screen-shop .ui007-item-stats > span {
    padding: 4px 6px;
    border: 1px solid rgba(120, 105, 80, .32);
    border-radius: 6px;
    color: #b8ad98;
    background: rgba(6, 6, 5, .56);
    font-size: 9px;
  }

  html.shop-s1-rework #screen-shop .ui007-item-stats > span b {
    color: #e8d5a6;
  }

  html.shop-s1-rework #screen-shop .ui007-item-bottom {
    gap: 8px;
    margin-top: 9px;
  }

  html.shop-s1-rework #screen-shop .ui007-item-bottom strong {
    color: #ecc86d;
    font-size: 13px;
    white-space: nowrap;
  }

  html.shop-s1-rework #screen-shop .ui007-availability,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status {
    border: 1px solid rgba(124, 110, 86, .36);
    border-radius: 7px;
    color: #b7ad9a;
    background: rgba(9, 8, 7, .72);
    font-size: 8px;
  }

  html.shop-s1-rework #screen-shop .ui007-availability.ok,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.ok {
    border-color: rgba(126, 169, 111, .55);
    color: #a9d49c;
    background: rgba(18, 39, 20, .60);
  }

  html.shop-s1-rework #screen-shop .ui007-availability.warn,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.warn {
    border-color: rgba(184, 94, 85, .50);
    color: #d79086;
    background: rgba(48, 20, 17, .62);
  }

  html.shop-s1-rework #screen-shop .ui007-availability.future,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.future {
    border-color: rgba(155, 118, 184, .42);
    color: #c5a6d9;
    background: rgba(31, 22, 39, .62);
  }

  html.shop-s1-rework #screen-shop .ui007-pagination button {
    border: 1px solid rgba(126, 111, 83, .38);
    border-radius: 8px;
    color: #c5baa8;
    background: rgba(12, 11, 9, .88);
  }

  html.shop-s1-rework #screen-shop .ui007-pagination button.active {
    border-color: rgba(213, 166, 80, .72);
    color: #f0d797;
    background: rgba(68, 43, 17, .90);
  }

  html.shop-s1-rework .s03f3-modal-backdrop {
    background: rgba(2, 2, 2, .80) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }

  html.shop-s1-rework .s03f3-modal-sheet {
    width: min(calc(100vw - 14px), 720px);
    max-height: min(82dvh, 780px);
    padding: 12px 12px 14px;
    border: 1px solid rgba(169, 131, 68, .54);
    border-radius: 13px 13px 10px 10px;
    color: var(--shop-ivory);
    background:
      radial-gradient(circle at 84% 0, rgba(215, 151, 55, .12), transparent 30%),
      linear-gradient(180deg, #1d1711 0%, #0e0c09 67%, #070706 100%) !important;
    box-shadow: 0 -28px 80px rgba(0, 0, 0, .74), inset 0 1px 0 rgba(255, 235, 190, .055);
  }

  html.shop-s1-rework .s03f3-modal-close {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
    border: 1px solid rgba(159, 122, 63, .50);
    border-radius: 8px;
    color: #eedfbd;
    background: rgba(10, 9, 7, .96);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 2px 1px 12px;
    border-bottom: 1px solid rgba(159, 122, 63, .30);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head > span {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(169, 131, 68, .45);
    border-radius: 9px;
    background:
      radial-gradient(circle at 50% 34%, rgba(239, 210, 142, .16), transparent 45%),
      linear-gradient(180deg, rgba(42, 30, 18, .96), rgba(7, 7, 6, .98));
    font-size: 33px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head small,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head p {
    color: #a79b87;
    font-size: 10px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head h3 {
    margin: 4px 0 3px;
    color: var(--shop-ivory);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 5.4vw, 25px);
    line-height: 1.08;
    letter-spacing: 0;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status {
    margin: 12px 0 10px;
    padding: 9px 10px;
    text-align: left;
    font-size: 11px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid > div {
    padding: 10px;
    border: 1px solid rgba(126, 111, 83, .34);
    border-radius: 8px;
    background: rgba(7, 7, 6, .58);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid span,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section > b {
    color: #9d927f;
    font-size: 9px;
    letter-spacing: .08em;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid b {
    color: #eadbb9;
    font-size: 13px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section {
    padding: 11px 0;
    border-top: 1px solid rgba(126, 111, 83, .30);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section p,
  html.shop-s1-rework .s03f3-modal-content .ui007-compare-empty {
    color: #cbbfa9;
    font-size: 11px;
    line-height: 1.52;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas span {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 9px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas .up {
    border-color: rgba(126, 169, 111, .52);
    color: #a9d49c;
    background: rgba(17, 38, 20, .72);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas .down {
    border-color: rgba(184, 94, 85, .52);
    color: #d79086;
    background: rgba(48, 20, 17, .72);
  }

  html.shop-s1-rework .s03f3-modal-content .action {
    min-height: 52px;
    border: 1px solid rgba(221, 174, 82, .70);
    border-radius: 9px;
    color: #fff0c2;
    background: linear-gradient(180deg, #9d6823 0%, #5d3a14 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 241, 198, .20), 0 10px 22px rgba(73, 42, 9, .32);
    font-size: 14px;
  }

  html.shop-s1-rework #screen-shop .ui007-empty,
  html.shop-s1-rework #screen-shop .ui007-loading,
  html.shop-s1-rework #screen-shop .ui007-error {
    border-color: rgba(126, 111, 83, .36);
    border-radius: 10px;
    color: #a89d89;
    background: rgba(7, 7, 6, .72);
  }
}

@media (max-width: 390px) {
  html.shop-s1-rework #s03-shop-mobile-hero {
    min-height: 258px;
    padding-inline: 14px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-hero {
    max-width: 62%;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-title {
    font-size: 38px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s1-merchant-line {
    max-width: 200px;
    font-size: 11px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-gold {
    top: 16px;
    right: 16px;
    min-width: 82px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.shop-s1-rework #s03-shop-mobile-hero,
  html.shop-s1-rework #screen-shop .ui007-item,
  html.shop-s1-rework .s03f3-modal-sheet,
  html.shop-s1-rework .s03f3-modal-backdrop {
    transition: none !important;
  }
}


/* 0216s1r04 screenshot corrections: title/gold collision, overly tall hero, raw technical stat labels. */
@media (max-width: 960px) {
  html.shop-s1-rework #s03-shop-mobile-hero {
    min-height: clamp(238px, 62vw, 360px);
    padding: 15px 14px 13px;
    background:
      linear-gradient(90deg, rgba(4, 4, 4, .98) 0%, rgba(7, 6, 5, .84) 34%, rgba(7, 6, 5, .28) 70%, rgba(7, 6, 5, .04) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .06) 48%, rgba(3, 3, 3, .78) 100%),
      url('/assets/core053/shop-s1-merchant-scene-0215.webp?v=0216s1r04') center right / cover no-repeat;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-hero {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-title {
    max-width: min(48vw, 210px);
    margin: 6px 0 7px;
    font-size: clamp(34px, 10vw, 44px);
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-sale {
    max-width: min(58vw, 250px);
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s1-merchant-line {
    max-width: min(58vw, 245px);
    font-size: 11.5px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-gold {
    position: static;
    justify-self: end;
    align-self: start;
    min-width: 82px;
    margin-top: 1px;
    padding: 7px 9px;
    transform: translateY(1px);
    font-size: 12px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-actions {
    margin-top: 11px;
  }

  html.shop-s1-rework #screen-shop .ui007-shop-main {
    margin-top: 0 !important;
  }

  html.shop-s1-rework #screen-shop .ui007-item-stats > span,
  html.shop-s1-rework .s03f3-modal-content .ui007-deltas span {
    text-transform: none;
  }
}

@media (max-width: 390px) {
  html.shop-s1-rework #s03-shop-mobile-hero {
    min-height: 236px;
    padding-inline: 13px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-hero {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-title {
    max-width: 172px;
    font-size: 34px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s1-merchant-line {
    max-width: 205px;
    font-size: 10.5px;
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-gold {
    top: auto;
    right: auto;
    min-width: 78px;
    padding-inline: 7px;
    font-size: 11px;
  }
}


/* 0216s1r04 HUD relocation hotfix: user-marked gold placement and Shop-only economy badge removal. */
@media (max-width: 960px) {
  html.shop-s1-rework body[data-screen="shop"] .performance-button {
    display: none !important;
  }

  html.shop-s1-rework body[data-screen="shop"] .top-hud,
  html.shop-s1-rework body[data-screen="shop"] .hud-progress-box {
    position: relative;
  }

  html.shop-s1-rework body[data-screen="shop"] .top-hud .hud-progress-box {
    padding-right: 126px !important;
  }

  html.shop-s1-rework body[data-screen="shop"] .s1-hud-gold {
    position: absolute;
    top: 13px;
    right: 14px;
    z-index: 3;
    min-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(214, 167, 78, .62);
    border-radius: 8px;
    color: #f2d284;
    background:
      radial-gradient(circle at 24% 10%, rgba(255, 235, 185, .14), transparent 42%),
      linear-gradient(180deg, rgba(43, 29, 13, .94), rgba(12, 10, 7, .96));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 237, 192, .08);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 8px #000;
    white-space: nowrap;
    pointer-events: none;
  }

  html.shop-s1-rework body[data-screen="shop"] .s1-hud-gold span {
    filter: sepia(.18) saturate(.92);
  }

  html.shop-s1-rework #s03-shop-mobile-hero .s03-mobile-gold {
    display: none !important;
  }

  html.shop-s1-rework .s03f3-modal-sheet {
    position: relative;
    padding-top: 14px;
  }

  html.shop-s1-rework .s03f3-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  html.shop-s1-rework .s03f3-modal-content {
    padding-top: 36px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    padding-right: 46px;
    align-items: start;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head h3 {
    max-width: 100%;
    font-size: clamp(19px, 5vw, 23px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  html.shop-s1-rework body[data-screen="shop"] .top-hud .hud-progress-box {
    padding-right: 112px !important;
  }

  html.shop-s1-rework body[data-screen="shop"] .s1-hud-gold {
    top: 12px;
    right: 11px;
    min-width: 88px;
    padding: 7px 8px;
    font-size: 12px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding-right: 42px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head > span {
    width: 68px;
    height: 68px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head h3 {
    font-size: clamp(18px, 5vw, 21px);
  }
}
