/* Arena Teney — Shop S1.4 detail card 0218s14r02
 * Presentation-only skin for the existing S0.3 mirrored item detail modal.
 * Canonical ui007 preview data and purchase action remain authoritative.
 */

@media (max-width: 960px) {
  html.shop-s1-rework .s03f3-modal-sheet {
    position: relative;
    width: min(calc(100vw - 18px), 720px);
    max-height: min(84dvh, 800px);
    margin: 0 9px max(8px, env(safe-area-inset-bottom));
    padding: 14px 14px 16px;
    overflow-y: auto;
    border: 1px solid rgba(190, 148, 75, .68);
    border-radius: 14px 14px 11px 11px;
    color: #eee2c9;
    background:
      radial-gradient(circle at 88% 0, rgba(206, 151, 57, .14), transparent 28%),
      radial-gradient(circle at 8% 16%, rgba(91, 62, 31, .12), transparent 27%),
      linear-gradient(180deg, #1d1710 0%, #100d09 42%, #080807 100%) !important;
    box-shadow:
      0 -30px 86px rgba(0, 0, 0, .78),
      inset 0 1px 0 rgba(255, 238, 198, .07),
      inset 0 0 42px rgba(124, 79, 27, .04);
  }

  html.shop-s1-rework .s03f3-modal-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 44px;
    right: 44px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(235, 193, 111, .72), transparent);
    pointer-events: none;
  }

  html.shop-s1-rework .s03f3-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    width: 46px;
    height: 46px;
    margin: 0;
    border: 1px solid rgba(197, 151, 75, .58);
    border-radius: 9px;
    color: #f0dfb8;
    background:
      radial-gradient(circle at 50% 0, rgba(221, 177, 93, .08), transparent 58%),
      linear-gradient(180deg, rgba(23, 19, 14, .98), rgba(8, 8, 7, .99));
    box-shadow:
      0 8px 22px rgba(0, 0, 0, .38),
      inset 0 1px 0 rgba(255, 239, 201, .055);
    font-size: 24px;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 108px;
    padding: 9px 54px 16px 2px;
    border-bottom: 1px solid rgba(177, 135, 67, .34);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head > span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(190, 148, 75, .62);
    border-radius: 11px;
    background:
      radial-gradient(circle at 50% 30%, rgba(238, 205, 135, .18), transparent 50%),
      linear-gradient(155deg, rgba(50, 37, 22, .98), rgba(8, 8, 7, .99));
    box-shadow:
      inset 0 1px 0 rgba(255, 240, 207, .06),
      inset 0 0 24px rgba(154, 102, 39, .055),
      0 8px 20px rgba(0, 0, 0, .28);
    font-size: 40px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head small {
    display: block;
    color: #b5a58b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head h3 {
    margin: 5px 0 4px;
    overflow-wrap: anywhere;
    color: #f4e7ca;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 6.2vw, 30px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: .002em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .78);
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status {
    min-height: 46px;
    display: flex;
    align-items: center;
    margin: 13px 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(133, 112, 78, .42);
    border-radius: 9px;
    color: #c5b89f;
    background: linear-gradient(180deg, rgba(18, 16, 12, .94), rgba(9, 9, 8, .96));
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.ok {
    border-color: rgba(93, 145, 94, .62);
    color: #afd49e;
    background: linear-gradient(180deg, rgba(22, 46, 25, .82), rgba(11, 27, 14, .90));
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.warn {
    border-color: rgba(153, 116, 58, .58);
    color: #ddc17f;
    background: linear-gradient(180deg, rgba(48, 36, 18, .82), rgba(24, 19, 12, .90));
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-status.future {
    border-color: rgba(105, 86, 142, .54);
    color: #c7b4df;
    background: linear-gradient(180deg, rgba(36, 29, 48, .84), rgba(19, 17, 28, .92));
  }

  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 12px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-grid > div {
    min-width: 0;
    min-height: 74px;
    padding: 11px 12px;
    border: 1px solid rgba(137, 116, 82, .36);
    border-radius: 9px;
    background:
      radial-gradient(circle at 100% 0, rgba(188, 143, 69, .055), transparent 52%),
      linear-gradient(180deg, rgba(15, 13, 10, .94), rgba(7, 7, 6, .98));
    box-shadow: inset 0 1px 0 rgba(255, 239, 205, .025);
  }

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

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

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-section {
    margin: 0;
    padding: 14px 2px;
    border-top: 1px solid rgba(137, 116, 82, .30);
  }

  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: #d0c2aa;
    font-size: 13px;
    line-height: 1.55;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
  }

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

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas .up {
    border: 1px solid rgba(89, 140, 86, .62);
    color: #acd39c;
    background: rgba(20, 48, 23, .72);
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-deltas .down {
    border: 1px solid rgba(150, 70, 65, .64);
    color: #dda098;
    background: rgba(53, 22, 20, .76);
  }

  html.shop-s1-rework .s03f3-modal-content .action {
    width: 100%;
    min-height: 58px;
    margin-top: 12px;
    border: 1px solid rgba(236, 190, 102, .86);
    border-radius: 10px;
    color: #fff0c8;
    background:
      radial-gradient(circle at 50% 0, rgba(255, 224, 151, .14), transparent 55%),
      linear-gradient(180deg, #a96f25 0%, #704616 58%, #4b2e11 100%) !important;
    box-shadow:
      0 10px 26px rgba(0, 0, 0, .34),
      inset 0 1px 0 rgba(255, 239, 200, .13),
      inset 0 -12px 24px rgba(54, 28, 8, .14);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .72);
  }
}

@media (max-width: 520px) {
  html.shop-s1-rework .s03f3-modal-sheet {
    width: calc(100vw - 14px);
    max-height: 84dvh;
    margin-inline: 7px;
    padding: 12px 12px 14px;
  }

  html.shop-s1-rework .s03f3-modal-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    min-height: 101px;
    padding: 8px 50px 14px 2px;
  }

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

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

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

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

@media (max-width: 390px) {
  html.shop-s1-rework .s03f3-modal-content .ui007-preview-head {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding-right: 47px;
  }

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

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

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

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