/* Arena Teney — Shop S1.5 product detail visual rebuild 0219s15r01
 * Presentation-only pass over the existing F3 modal and canonical ui007 preview.
 * No catalogue/economy/purchase/state/HUD/dock/X-lock ownership.
 */

@media (max-width: 960px) {
  html.shop-s1-rework .s03f3-modal-backdrop {
    background: rgba(2, 2, 2, .82);
    -webkit-backdrop-filter: blur(5px) saturate(.8);
    backdrop-filter: blur(5px) saturate(.8);
  }

  html.shop-s1-rework .s03f3-modal-sheet {
    width: min(calc(100vw - 10px), 720px);
    max-height: min(88dvh, 860px);
    margin: 0 5px max(5px, env(safe-area-inset-bottom));
    padding: 0 14px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(193, 150, 78, .72);
    border-top-width: 2px;
    border-radius: 20px 20px 14px 14px;
    color: #eadfc9;
    background:
      radial-gradient(circle at 88% -4%, rgba(205, 154, 75, .14), transparent 30%),
      radial-gradient(circle at 4% 20%, rgba(99, 65, 31, .11), transparent 28%),
      linear-gradient(180deg, rgba(28, 22, 15, .995) 0%, rgba(13, 11, 8, .998) 42%, rgba(7, 7, 6, 1) 100%) !important;
    box-shadow:
      0 -30px 90px rgba(0, 0, 0, .78),
      inset 0 1px 0 rgba(255, 239, 201, .07),
      inset 0 0 44px rgba(133, 86, 29, .045);
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 140, 74, .45) transparent;
  }

  html.shop-s1-rework .s03f3-modal-sheet::before {
    content: '';
    position: sticky;
    z-index: 20;
    top: 0;
    display: block;
    width: min(58%, 280px);
    height: 2px;
    margin: 0 auto -2px;
    background: linear-gradient(90deg, transparent, rgba(235, 193, 111, .84), transparent);
    pointer-events: none;
  }

  html.shop-s1-rework .s03f3-modal-close {
    position: sticky;
    top: 10px;
    z-index: 40;
    float: right;
    width: 42px;
    height: 42px;
    margin: 10px 0 -42px 10px;
    border: 1px solid rgba(198, 153, 80, .62);
    border-radius: 10px;
    color: #f1dfb8;
    background:
      radial-gradient(circle at 50% 0, rgba(231, 186, 101, .09), transparent 56%),
      linear-gradient(180deg, rgba(25, 20, 14, .98), rgba(8, 8, 7, .995));
    box-shadow:
      0 8px 20px rgba(0, 0, 0, .40),
      inset 0 1px 0 rgba(255, 239, 202, .06);
    font-size: 22px;
  }

  html.shop-s1-rework .s03f3-modal-content {
    clear: both;
    min-width: 0;
    padding-top: 14px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-height: 122px;
    padding: 12px 48px 18px 2px;
    border-bottom: 1px solid rgba(173, 132, 68, .34);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head::after {
    content: '';
    position: absolute;
    left: 112px;
    right: 0;
    bottom: -1px;
    height: 1px;
    opacity: .45;
    background: linear-gradient(90deg, rgba(229, 185, 105, .62), transparent);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head > span {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(196, 154, 83, .72);
    border-radius: 15px;
    background:
      radial-gradient(circle at 50% 30%, rgba(239, 205, 137, .20), transparent 52%),
      linear-gradient(150deg, rgba(55, 41, 24, .99), rgba(10, 9, 7, .998));
    box-shadow:
      inset 0 1px 0 rgba(255, 241, 211, .08),
      inset 0 0 26px rgba(164, 108, 39, .07),
      0 9px 22px rgba(0, 0, 0, .30);
    font-size: 44px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head small {
    display: block;
    overflow: hidden;
    color: #c4ae89;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .045em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head h3 {
    margin: 5px 0 5px;
    overflow-wrap: anywhere;
    color: #f6e9cd;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 6.5vw, 31px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .82);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head p {
    margin: 0;
    color: #a99b84;
    font-size: 11.5px;
    line-height: 1.35;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    padding: 9px 12px;
    border: 1px solid rgba(140, 116, 76, .44);
    border-radius: 10px;
    color: #cdbfa5;
    background:
      linear-gradient(180deg, rgba(19, 17, 13, .95), rgba(9, 9, 8, .98));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.ok {
    border-color: rgba(86, 139, 91, .66);
    color: #b2d5a3;
    background: linear-gradient(180deg, rgba(20, 43, 24, .84), rgba(10, 25, 13, .94));
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.warn {
    border-color: rgba(164, 122, 56, .62);
    color: #dfc27e;
    background: linear-gradient(180deg, rgba(48, 35, 17, .84), rgba(24, 18, 11, .94));
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.future,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.muted {
    border-color: rgba(112, 91, 139, .52);
    color: #c7b7d8;
    background: linear-gradient(180deg, rgba(34, 28, 43, .82), rgba(18, 16, 24, .94));
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid > div {
    min-width: 0;
    min-height: 70px;
    padding: 11px 12px;
    border: 1px solid rgba(137, 113, 77, .37);
    border-radius: 10px;
    background:
      radial-gradient(circle at 100% 0, rgba(190, 145, 69, .06), transparent 52%),
      linear-gradient(180deg, rgba(16, 14, 10, .96), rgba(7, 7, 6, .99));
    box-shadow:
      inset 0 1px 0 rgba(255, 239, 205, .025),
      0 5px 12px rgba(0, 0, 0, .12);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid span,
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section > b {
    color: #a79a83;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid b {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #f1dfb9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.14;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section {
    position: relative;
    margin: 8px 0 0;
    padding: 13px 12px 14px;
    border: 1px solid rgba(137, 113, 77, .31);
    border-radius: 11px;
    background:
      radial-gradient(circle at 100% 0, rgba(187, 141, 65, .045), transparent 48%),
      linear-gradient(180deg, rgba(14, 12, 9, .88), rgba(8, 8, 7, .93));
    box-shadow: inset 0 1px 0 rgba(255, 240, 209, .018);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    width: 44px;
    height: 1px;
    background: rgba(224, 178, 95, .48);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section p,
  html.shop-s1-rework .s03f3-modal-content .ui007-compare-empty {
    margin: 8px 0 0;
    color: #d5c8b0;
    font-size: 13px;
    line-height: 1.58;
    letter-spacing: .002em;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    min-height: 48px;
    max-width: 100%;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 10.8px;
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas span b {
    align-self: center;
    font-size: 13px;
    line-height: 1;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas .up {
    border: 1px solid rgba(82, 139, 85, .64);
    color: #b0d6a1;
    background: linear-gradient(180deg, rgba(20, 48, 23, .70), rgba(12, 31, 15, .78));
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas .down {
    border: 1px solid rgba(151, 70, 66, .66);
    color: #e0a099;
    background: linear-gradient(180deg, rgba(55, 23, 21, .72), rgba(36, 16, 16, .80));
  }

  html.shop-s1-rework .s03f3-modal-content .action {
    position: sticky;
    z-index: 30;
    bottom: 0;
    width: 100%;
    min-height: 56px;
    margin: 12px 0 0;
    border: 1px solid rgba(235, 190, 103, .90);
    border-radius: 11px;
    color: #fff0c9;
    background:
      radial-gradient(circle at 50% 0, rgba(255, 227, 159, .16), transparent 55%),
      linear-gradient(180deg, #a46a22 0%, #734716 58%, #4a2c10 100%) !important;
    box-shadow:
      0 -14px 28px rgba(7, 7, 6, .88),
      0 10px 24px rgba(0, 0, 0, .28),
      inset 0 1px 0 rgba(255, 241, 205, .14),
      inset 0 -12px 24px rgba(54, 28, 8, .14);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .74);
  }

  html.shop-s1-rework .s03f3-modal-content .action.secondary,
  html.shop-s1-rework .s03f3-modal-content .action:disabled {
    border-color: rgba(154, 126, 82, .58);
    color: #cbb994;
    background: linear-gradient(180deg, rgba(53, 43, 28, .98), rgba(28, 24, 17, .99)) !important;
    opacity: 1;
  }
}

@media (max-width: 520px) {
  html.shop-s1-rework .s03f3-modal-sheet {
    width: calc(100vw - 8px);
    max-height: 89dvh;
    margin-inline: 4px;
    padding-inline: 12px;
    border-radius: 18px 18px 12px 12px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-height: 112px;
    padding: 10px 44px 16px 1px;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head::after {
    left: 100px;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid > div {
    min-height: 66px;
    padding: 10px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section {
    padding: 12px 11px 13px;
  }
}

@media (max-width: 390px) {
  html.shop-s1-rework .s03f3-modal-sheet {
    padding-inline: 10px;
  }

  html.shop-s1-rework .s03f3-modal-close {
    right: 0;
    width: 40px;
    height: 40px;
  }

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

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head::after {
    left: 88px;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head h3 {
    font-size: 21px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head p {
    font-size: 10.5px;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section p,
  html.shop-s1-rework .s03f3-modal-content .ui007-compare-empty {
    font-size: 12.3px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas {
    grid-template-columns: 1fr;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas span {
    min-height: 44px;
    font-size: 10.5px;
  }

  html.shop-s1-rework .s03f3-modal-content .action {
    min-height: 54px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.shop-s1-rework .s03f3-modal-sheet,
  html.shop-s1-rework .s03f3-modal-backdrop,
  html.shop-s1-rework .s03f3-modal-close,
  html.shop-s1-rework .s03f3-modal-content .action {
    transition: none !important;
  }
}
