/* FENIX v2: live purchase card, order page and «Мои покупки». Matches the Codex design tokens. */
.hy .market-purchase .fx-field,.hy .market-purchase .fx-group-wrap{display:flex;flex-direction:column;gap:7px;font-size:13px;color:rgba(255,255,255,.72)}
.hy .market-purchase .fx-input{box-sizing:border-box;width:100%;min-width:0;height:48px;padding:0 14px;border-radius:13px;border:1px solid rgba(255,255,255,.14);background:rgba(1,10,31,.55);color:#fff;font:500 15px Onest,Arial,sans-serif;outline:none}
.hy .market-purchase select.fx-input{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#c9d6ee 50%),linear-gradient(135deg,#c9d6ee 50%,transparent 50%);background-position:calc(100% - 22px) 52%,calc(100% - 16px) 52%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.hy .market-purchase select.fx-input option{background:#0b1a3a;color:#fff}
.hy .market-purchase .fx-input::placeholder{color:rgba(220,230,250,.45)}
.hy .market-purchase .fx-group{display:flex;gap:8px;flex-wrap:wrap}
.hy .market-purchase .fx-chip{cursor:pointer;border:0;min-height:42px;max-width:100%;padding:6px 14px;line-height:1.25;white-space:normal;text-align:center;border-radius:12px;font:600 14px Onest,Arial,sans-serif;background:rgba(255,255,255,.1);color:#fff;transition:background .2s,color .2s}
.hy .market-purchase .fx-chip:hover{background:rgba(255,255,255,.18)}
.hy .market-purchase .fx-chip.fx-on{background:#fff;color:#06102b}
.hy .market-purchase .fx-err{min-height:0;font-size:13.5px;line-height:1.45;color:#ffb4b4}
.hy .market-purchase .fx-err:empty{display:none}
.hy .market-purchase .fx-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.hy .market-purchase .fx-total>span:first-child{font-size:14px;color:rgba(255,255,255,.72)}
.hy .market-purchase .fx-total>span:last-child{font-size:30px;font-weight:700;color:#fff;text-align:right}
.hy .market-purchase .fx-pay{height:54px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:#fff;color:#06102b;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none;user-select:none}
.hy .market-purchase .fx-pay.fx-disabled{opacity:.45;cursor:not-allowed}
.hy .market-purchase>span:last-child,.hy .market-purchase>.fx-purchase-note{font-size:12.5px;line-height:1.45;color:rgba(255,255,255,.62);text-align:center}
.fx-game-guide { border-top:1px solid rgba(220,233,255,.16); color:#e4edfc; }
.fx-game-guide summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; gap:12px; cursor:pointer; font-size:14px; font-weight:650; }
.fx-game-guide summary::-webkit-details-marker { display:none; }
.fx-game-guide summary::after { content:''; width:8px; height:8px; margin-right:4px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.fx-game-guide[open] summary::after { transform:rotate(225deg); }
.fx-game-guide ol { margin:0; padding:0 0 4px 1.4em; font-size:14px; line-height:1.5; }
.fx-game-guide li+li { margin-top:6px; }
.fx-game-guide a { display:inline-block; margin-top:5px; font-size:14px; color:#d5e6ff; text-decoration:underline; text-underline-offset:3px; }
.hy .market-purchase .fx-soon{display:block;margin-top:4px;font-size:15px;line-height:1.55;color:rgba(235,242,255,.86)}
.hy .market-purchase .fx-skeleton{display:block;height:48px;border-radius:13px;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.12),rgba(255,255,255,.05));background-size:200% 100%;animation:fxShimmer 1.4s linear infinite}
@keyframes fxShimmer{to{background-position:-200% 0}}

/* Order page and «Мои покупки» replace the storefront sections, header stays. */
#root.fx-on-page .hy>section:not(#fx-page),#root.fx-on-page .hy>div:last-child{display:none!important}
.fx-page{position:relative;margin:112px 64px 64px;color:#fff;font-family:Onest,Arial,sans-serif}
.fx-sheet{max-width:760px;margin:0 auto;padding:36px 40px 40px;border-radius:28px;background:rgba(13,26,60,.62);-webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%);border:1px solid rgba(160,190,255,.18);box-shadow:0 30px 80px rgba(0,0,0,.35)}
.fx-back{border:0;background:none;color:rgba(255,255,255,.72);font:600 14px Onest,Arial,sans-serif;cursor:pointer;padding:0;margin-bottom:22px}
.fx-back:hover{color:#fff}
.fx-title{margin:14px 0 10px;font-family:Oswald,Impact,sans-serif;text-transform:uppercase;font-size:40px;line-height:1;font-weight:700}
.fx-lead{margin:0 0 18px;font-size:16px;line-height:1.55;color:rgba(255,255,255,.78)}
.fx-status{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;font-size:14px;font-weight:600;background:rgba(255,255,255,.08)}
.fx-status i{width:9px;height:9px;border-radius:50%;background:#f6c453;box-shadow:0 0 12px rgba(246,196,83,.7)}
.fx-status.ok i{background:#5fe0a1;box-shadow:0 0 12px rgba(95,224,161,.7)}
.fx-status.stop i{background:#ff8b8b;box-shadow:0 0 12px rgba(255,139,139,.6)}
.fx-summary{display:grid;gap:0;margin:22px 0;border-top:1px solid rgba(255,255,255,.1)}
.fx-summary>div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:15px}
.fx-summary dt{color:rgba(255,255,255,.62)}.fx-summary dd{margin:0;text-align:right;word-break:break-word}
.fx-mono{font-family:ui-monospace,Menlo,monospace;font-size:13px}
.fx-btn{display:flex;align-items:center;justify-content:center;width:100%;height:54px;margin:8px 0;border:0;border-radius:999px;background:#fff;color:#06102b;font:700 16px Onest,Arial,sans-serif;text-decoration:none;cursor:pointer}
.fx-btn:disabled{opacity:.5;cursor:wait}
.fx-link{border:0;background:none;padding:0;color:#b9d4ff;font:600 14px Onest,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fx-notice{margin:14px 0;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);font-size:14.5px;line-height:1.55;color:rgba(255,255,255,.84)}
.fx-error{margin:6px 0;font-size:14px;color:#ffb4b4}.fx-error:empty{display:none}
.fx-orderlink{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.1);font-size:14px;color:rgba(255,255,255,.7)}
.fx-small{margin:14px 0 0;font-size:14px;color:rgba(255,255,255,.62)}.fx-small a{color:#b9d4ff}
.fx-code{display:grid;gap:8px;margin:18px 0;padding:18px;border-radius:18px;background:rgba(1,10,31,.6);border:1px solid rgba(160,190,255,.25)}
.fx-code>span{font-size:13px;color:rgba(255,255,255,.65)}.fx-code code{font:700 22px ui-monospace,Menlo,monospace;letter-spacing:.04em;word-break:break-all}.fx-code small{color:rgba(255,255,255,.55)}
.fx-form{display:grid;gap:14px;margin:16px 0}
.fx-form label{display:grid;gap:7px;font-size:13.5px;color:rgba(255,255,255,.75)}
.fx-form .fx-input{box-sizing:border-box;width:100%;height:50px;padding:0 14px;border-radius:13px;border:1px solid rgba(255,255,255,.16);background:rgba(1,10,31,.6);color:#fff;font:500 16px Onest,Arial,sans-serif;outline:none}
.fx-form .fx-consent{display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.fx-choice{display:flex!important;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05)}
.fx-choice img{width:48px;height:48px;border-radius:10px;object-fit:cover}
/* Purchase history follows the same column as the storefront header and catalogue. */
#root.fx-on-page .market-header .tab { color: #b6c3d6 !important; font-weight: 500 !important; }
.market-header [data-shop-link="#orders"][aria-current] { background: #d7e8ff; color: #0c1932; box-shadow: inset 0 0 0 1px #e6f0ff; }
.fx-page.fx-history { box-sizing: border-box; padding: 18px 0 0; margin-bottom: 26px; }
.fx-history-header, .fx-services > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.fx-history .fx-title { margin: 0; font-size: clamp(42px, 4.1vw, 66px); line-height: 1.08; }
.fx-history .fx-lead { max-width: 700px; margin: 12px 0 0; color: #b4c4db; }
.fx-history .fx-back, .fx-services > header a { flex: none; font-size: 15px; color: #d3e2f6; text-decoration: none; }
.fx-history .fx-back { margin: 0; padding: 11px 18px; border: 1px solid #354760; border-radius: 12px; background: #101f36; }
.fx-olist { display: grid; margin-top: 30px; border: 1px solid #283c57; border-radius: 22px; background: #0c1a31; overflow: hidden; }
.fx-ocard {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(145px, .60fr) minmax(110px, .24fr) 16px;
  align-items: center; gap: clamp(14px, 1.5vw, 28px); padding: 22px clamp(18px, 2vw, 34px);
  color: #eff5ff; text-decoration: none; background: #0c1a31; transition: background-color .18s ease;
}
.fx-ocard + .fx-ocard { border-top: 1px solid #263751; }
.hy a.fx-ocard:focus-visible { outline-offset: -3px; }
.fx-order-picture { display: block; }
.fx-order-icon { display: block; width: 58px; height: 58px; border-radius: 14px; object-fit: contain; }
.fx-order-name, .fx-order-amount { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.fx-order-name strong { font-size: clamp(16px, 1.35vw, 21px); line-height: 1.3; }
.fx-order-name small, .fx-order-amount small { font-size: 14px; color: #a7b8d0; line-height: 1.4; }
.fx-order-amount { text-align: right; font-variant-numeric: tabular-nums; }
.fx-order-amount strong { font-size: 19px; }
.fx-order-status { display: flex; align-items: center; gap: 9px; color: #b6c8e0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.fx-order-status::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: #8597b0; }
.fx-order-status[data-tone=ok]::before { background: #68d6ae; }
.fx-order-status[data-tone=stop]::before { background: #e6a196; }
.fx-order-status[data-tone=wait]::before { background: #e9c47b; }
.fx-order-chevron { color: #9eb4d0; font-size: 26px; line-height: 1; text-align: right; }
.fx-empty { display: grid; gap: 8px; margin-top: 30px; padding: clamp(26px, 3vw, 44px); border: 1px solid #283c57; border-radius: 22px; background: #0c1a31; }
.fx-empty strong { font-size: 24px; }
.fx-empty span { color: #b4c4db; line-height: 1.5; }
.fx-services { margin-top: clamp(30px, 3vw, 44px); }
.fx-services h2 { margin: 0; font-size: clamp(23px, 2vw, 30px); letter-spacing: -.025em; }
.fx-services > header a { font-weight: 600; }
.fx-services > header a:hover { text-decoration: underline; }
.fx-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.fx-shortcut {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start; box-sizing: border-box; min-height: clamp(140px, 10.6vw, 188px); padding: clamp(20px, 2vw, 32px);
  color: #f5f8ff; text-decoration: none; background: linear-gradient(110deg, #0b192c, var(--png-field));
  border: 1px solid #35445c; border-radius: 20px;
}
.fx-shortcut-art { position: absolute; z-index: -1; inset: 0 0 0 35%; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 45%); }
.hy .fx-shortcut-art img { height: 114%; top: -5%; right: -2%; opacity: .92; mask-image: linear-gradient(90deg, transparent, #000 27%); }
.fx-shortcut strong { max-width: 70%; font-size: clamp(20px, 1.8vw, 29px); line-height: 1.18; letter-spacing: -.025em; }
.fx-shortcut-action { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: #d3e2f6; }
.fx-history-help { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #263751; color: #adbed4; font-size: 14px; }
.fx-history-help a { color: #dae8f7; text-underline-offset: 3px; }
@media (min-width: 901px) {
  .fx-short-history .fx-shortcut { min-height: clamp(180px, calc(65svh - 400px), 380px); }
  .fx-short-history .fx-ocard { padding-block: clamp(18px, calc(5svh - 27px), 38px); }
  .fx-short-history .fx-shortcut-art { left: 18%; }
  .fx-short-history .fx-empty { padding-block: clamp(44px, 8svh, 100px); }
}
.fx-shortcut-arrow { font-size: 24px; color: #dae8f7; line-height: 1; }
@media (max-width: 900px) {
  .fx-page.fx-history { padding-top: 4px; }
  .fx-ocard { grid-template-columns: 48px minmax(0, 1fr) minmax(110px, .5fr) minmax(110px, .28fr) 12px; gap: 14px; padding: 17px 18px; }
  .fx-order-icon { width: 48px; height: 48px; border-radius: 12px; }
}
@media (min-width: 761px) and (max-width: 1279px) {
  .fx-page.fx-history { margin-top: 24px; }
}
@media (max-width: 680px) {
  .fx-page.fx-history { margin-inline: var(--page-gutter); }
  .fx-history-header { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .fx-history .fx-back { padding: 3px 0; background: transparent; border: 0; }
  .fx-history .fx-lead { font-size: 14px; }
  .fx-olist { margin-top: 20px; border-radius: 16px; }
  .fx-ocard { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 12px; padding: 17px 12px; }
  .fx-order-picture { grid-row: span 2; align-self: start; }
  .fx-order-icon { width: 40px; height: 40px; border-radius: 10px; }
  .fx-order-name { gap: 2px; }
  .fx-order-name strong { font-size: 15px; }
  .fx-order-amount { grid-column: 3; grid-row: 1 / span 2; gap: 5px; max-width: 98px; }
  .fx-order-amount strong { font-size: 15px; }
  .fx-order-name small, .fx-order-amount small, .fx-order-status { font-size: 12px; }
  .fx-order-status { grid-column: 2; grid-row: 2; gap: 6px; }
  .fx-order-status::before { flex-basis: 5px; height: 5px; }
  .fx-order-chevron { display: none; }
  .fx-shortcuts { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .fx-shortcut { min-height: 94px; justify-content: center; gap: 6px; padding: 18px; border-radius: 15px; }
  .fx-shortcut-action { font-size: 13px; }
  .fx-shortcut-arrow { font-size: 16px; }
}
.fx-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;padding:12px 18px;border-radius:14px;background:#fff;color:#06102b;font:600 14px Onest,Arial,sans-serif;box-shadow:0 12px 40px rgba(0,0,0,.35);transition:opacity .25s,transform .25s;z-index:50;pointer-events:none}
.fx-toast.show{opacity:1;transform:translate(-50%,0)}

/* Interaction feedback in purchase history. The hit targets stay stationary. */
.fx-history .fx-ocard:is(:focus-visible, :active, .fx-pressed) { background: #152942; }
.fx-history .fx-shortcut:is(:focus-visible, :active, .fx-pressed) { border-color: #839cbb; }
.fx-history :is(.fx-ocard,.fx-shortcut):focus-visible {
  outline: 2px solid #a6cfff;
  outline-offset: -3px;
  --history-arrow-x: 3px;
  --history-art-scale: 1.035;
}
@media (hover: hover) and (pointer: fine) {
  .fx-history .fx-ocard:hover { background: #152942; }
  .fx-history .fx-shortcut:hover { border-color: #839cbb; }
  .fx-history :is(.fx-ocard,.fx-shortcut):hover {
    --history-arrow-x: 3px;
    --history-art-scale: 1.035;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .fx-history .fx-shortcut { transition: border-color .2s ease; }
  .fx-history :is(.fx-shortcut-arrow,.fx-order-chevron) {
    translate: var(--history-arrow-x, 0) 0;
    transition: translate .2s ease-out;
  }
  .fx-history :is(.fx-shortcut-art img,.fx-order-icon) {
    scale: var(--history-art-scale, 1);
    transition: scale .26s ease-out, opacity .22s ease-out;
  }
  .fx-history :is(.fx-history-header,.fx-services) { animation: history-arrives .32s ease-out backwards; }
  .fx-history .fx-services { animation-delay: 50ms; }
  @keyframes history-arrives {
    from { opacity: .65; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-history :is(.fx-ocard,.fx-shortcut-art img) { transition: none; }
}
.hy .market-header .glass{cursor:pointer}
.hy .market-header .market-search { position: relative; cursor: text; }
.market-search svg { flex: none; pointer-events: none; }
.market-search input {
  position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; min-width: 0;
  padding: 0 16px 0 44px; border: 0; border-radius: inherit; background: transparent;
  color: #fff; font: 500 15px Onest, Arial, sans-serif;
}
.market-search input::placeholder { color: #b4c3d9; opacity: 1; }
.hy .market-search input:focus-visible { outline: none !important; }
.market-search:focus-within { outline: 2px solid #bfd7ff; outline-offset: 2px; }
@media (max-width:760px){
 #root.fx-on-page .hy{--constellation-width:12px}
 .fx-page{margin:20px 12px 40px}
 .fx-sheet{padding:24px 18px 26px;border-radius:22px}
 .fx-title{font-size:30px}
 .fx-orderlink{flex-direction:column;align-items:flex-start}
 .hy .market-purchase .fx-total>span:last-child{font-size:26px}
}

.how-step-number {
  color: #233965;
  -webkit-text-stroke: 1.5px #869dc7;
}
@media (prefers-reduced-motion: no-preference) {
  .how-steps-playing .how-step-number {
    animation: how-step-highlight 6s ease-in-out infinite;
    animation-delay: calc(var(--step-phase, 0ms) + var(--step-offset, 0ms));
  }
  .how-steps > :nth-child(2) { --step-offset: 1500ms; }
  .how-steps > :nth-child(3) { --step-offset: 3000ms; }
  @keyframes how-step-highlight {
    0%, 25%, 100% { color: #233965; -webkit-text-stroke-color: #869dc7; }
    7%, 19% { color: #b7d9ff; -webkit-text-stroke-color: #d3e8ff; }
  }
}


/* Wide screens: keep the page in a centred 1440px column instead of stretching edge to edge. */
@media (min-width:901px){
 .hy{--gut:max(64px,calc((100vw - 1440px) / 2))}
 .hy .market-home{padding-left:var(--gut)!important;padding-right:var(--gut)!important}
 .hy .market-picker{margin-left:var(--gut)!important;margin-right:var(--gut)!important}
 .hy .market-content{max-width:none!important;padding-left:var(--gut)!important;padding-right:var(--gut)!important}
 .fx-page{margin-left:var(--gut);margin-right:var(--gut)}
}

@media (min-width: 1280px) {
  .hy .market-header { left: var(--gut) !important; right: var(--gut) !important; }
}
@media (min-width: 901px) and (max-width: 1279px) {
  .hy .market-header { padding-inline: var(--gut); }
}

.hy {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Approved aurora on the same document coordinate system as the stars. */
html body {
  isolation: isolate;
  --aurora-cycle: clamp(680px, 100svh, 1500px);
  --aurora-width: 108%;
  --aurora-middle: 50%;
  position: relative;
  background-color: #061224 !important;
  background-image: none !important;
}
#root {
  position: relative;
  overflow-x: clip;
}
#root::before, #root::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#root::before {
  z-index: -4;
  inset-inline: -2.25vw;
  background: url("assets/home-aurora-smooth.webp") var(--aurora-middle) top / var(--aurora-width) var(--aurora-cycle) repeat-y;
  mask-image: linear-gradient(transparent, black 7%, black 93%, transparent);
  mask-size: 100% var(--aurora-cycle);
  mask-repeat: repeat-y;
}
#root::after {
  z-index: -3;
  background: url("assets/quiet-starfield.svg") 19px 37px / 2297px 2029px repeat;
}
@media (max-width: 680px) {
  html body { --aurora-width: 165%; --aurora-middle: 70%; }
}
@media (prefers-reduced-motion: no-preference) {
  #root::before { animation: aurora-drift 16s ease-in-out infinite alternate; }
  @keyframes aurora-drift {
    from { transform: translateX(-1.6vw); opacity: .83; }
    to { transform: translateX(1.6vw); opacity: 1; }
  }
}
html body .hy {background-color:transparent!important;background-image:none!important;}

/* Keep stars inside the existing gutters, with room for their glow even on narrow screens. */
.hy::before,
.hy::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--constellation-width, var(--gut, var(--page-gutter)));
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  background-image: var(--constellation-art, url("assets/star-chart.svg"));
  background-repeat: repeat-y;
  background-size: clamp(150px, 100%, 290px) auto;
  background-position: left var(--history-left-chart-y, 0px);
  mask-image: linear-gradient(to right, #000 0% 61%, transparent 98%);
}
.hy::after {
  left: auto;
  right: 0;
  transform: scaleX(-1);
  background-position-y: var(--history-right-chart-y, -194px);
}
@media (max-width: 900px) {
  .hy::before,
  .hy::after {
    /* The first bright star sits 41px from the left of the 150px drawing. */
    background-position-x: calc(var(--constellation-width, var(--page-gutter)) / 2 - 41px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hy { --constellation-art: url("assets/star-chart-twinkle.svg?v=2"); }
}

/* Oversize the artwork into the space behind checkout, keeping its natural proportions. */
.hy .market-picker[data-brand="apple"] > [data-finish="matte"] {
  container-type: size;
}
.hy .market-picker[data-brand="apple"] .approved-artwork {
  width: min(87cqw, 97cqh) !important;
  height: auto;
  right: -10%;
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  transform-origin: center;
  mask-image: none;
  -webkit-mask-image: none;
}
@media (min-width: 901px) and (max-width: 980px) {
  .hy .market-picker[data-brand="apple"] .approved-artwork { right: -4%; }
}
@media (max-width: 900px) {
  .hy .market-picker[data-brand="apple"] .approved-artwork {
    width: min(84%, 400px) !important;
    top: 8px;
    right: -6%;
    transform: rotate(-7deg);
  }
}

/* The comet crosses the same sky on every page, behind the actual storefront. */
.market-sky { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body .hy::before, body .hy::after { z-index: -2; }
  .market-sky {
    --tail: clamp(94px, 13vw, 238px);
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
  }
  .comet-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    transform-origin: 0 0;
  }
  .market-sky .comet {
    position: absolute;
    right: 0;
    top: 0;
    width: var(--tail);
    height: 0;
  }
  .market-sky .comet::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -1.6px;
    height: 3.2px;
    background: linear-gradient(90deg, transparent, #88b7f04d 26%, #a4d5ffa8 65%, #e8f6ff 100%);
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
  }
  .market-sky .comet::after {
    content: "";
    position: absolute;
    top: -2.25px;
    right: -2.25px;
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background: #f1faff;
    box-shadow: 0 0 4px 1px #bde8ff, 0 0 10px 3px #79b7ff80;
  }
}

/* Connect the bottom of the real side charts to the word in the purchase history. */
.sky-word-space {position:relative;height:clamp(124px,12vh,186px);margin-top:clamp(25px,3.8vh,56px);pointer-events:none;user-select:none;}
#fenix-connected-sky {position:absolute;display:block;max-width:none;overflow:visible;pointer-events:none;}
#fenix-connected-sky path {stroke-linecap:round;stroke-linejoin:round;}
.sky-bridge {stroke:#99c1e9;stroke-width:1.12;stroke-opacity:.72;}
.sky-letter-stroke {stroke:#b7d8f6;stroke-width:1.75;stroke-opacity:.94;}
.sky-thread {stroke:#84aace;stroke-width:.9;stroke-opacity:.37;}
.sky-letter-star,.sky-join-star {fill:#e2f1ff;}
.sky-waypoint {fill:#a7c7e6;opacity:.87;}
@media (max-width:680px){
  .sky-word-space{height:100px;margin-top:20px;}
  .sky-bridge{stroke-width:.9;}
  .sky-letter-stroke{stroke-width:1.2;}
  .sky-thread{stroke-width:.7;}
}
@media (prefers-reduced-motion:no-preference){
  #fenix-connected-sky:not(.sky-settled) :is(.sky-bridge,.sky-thread,.sky-letter-stroke){stroke-dasharray:1 1;stroke-dashoffset:1;}
  #fenix-connected-sky.sky-revealed:not(.sky-settled) :is(.sky-bridge,.sky-thread,.sky-letter-stroke){
    animation:fenix-star-trace 1.18s cubic-bezier(.36,.04,.32,1) calc(var(--wait,0ms) - var(--scene-elapsed,0ms)) both;
  }
  @keyframes fenix-star-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
}

/* Keep the same open sky behind every storefront page. */
html body::before, html body::after { display: none; }

/* The link is the stationary hit target. Only its artwork tilts. */
.hy .collection-link { display:grid; min-width:0; border-radius:10px; text-decoration:none; scroll-snap-align:start; }
.hy .collection-link > .poster { pointer-events:none; min-width:0; }
.hy .poster.pick {
  transform: perspective(1000px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg)) translateY(var(--fx-lift, 0px)) !important;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .3s !important;
}
.hy .poster.pick.fx-hover { --fx-lift: -5px; box-shadow: inset 0 0 0 1px rgba(204,225,255,.55), 0 5px 10px -5px rgba(0,0,0,.4) !important; }
.hy .poster.pick::after { opacity: 0 !important;
  background: radial-gradient(circle at var(--fx-px, 50%) var(--fx-py, 50%), rgba(204,229,255,.12), transparent 65%) !important; }
.hy .poster.pick.fx-hover::after { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .hy .poster.pick { transform: none !important; } }
/* The card tilts as one composited layer, so its icons aren't re-drawn on every pointer move (that made them shimmer). */
.hy .poster.pick { will-change: transform; backface-visibility: hidden; }
/* Icons are a static part of the card: no 3D context of their own and no pointer hits, so only the whole card moves. */
.hy .poster.pick [data-finish="tile"] { transform: none !important; backface-visibility: hidden; }
.hy .poster.pick * { pointer-events: none; }
/* Collection icons: a touch brighter and lifted off the dark card with a soft shadow. */
.hy .poster.pick [data-finish="tile"] img { filter: saturate(1.14) brightness(1.08) drop-shadow(0 8px 14px rgba(0, 4, 16, .5)); }

.hy .collection-link:focus-visible {
  outline: 3px solid #bfd7ff;
  outline-offset: -3px;
}

/* The catalog tiles supply their own rounded silhouette and colored edge. */
/* A single header marks the start of the catalogue after the collections. */
.hy .market-content > #all { margin-top:32px!important; }
.hy #all .catalog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:nowrap;
  gap:12px;
  margin-bottom:18px;
  padding:13px 18px;
}
.hy #all .catalog-heading,
.market-picker.is-visible ~ .market-content .product-section-title {
  border:1px solid rgba(138,177,223,.22);
  border-radius:14px;
  background:linear-gradient(112deg,rgba(23,44,74,.96),rgba(12,25,48,.85));
}
.hy #all .catalog-heading h2 {
  display:flex;
  align-items:center;
  gap:11px;
  margin:0;
  font-size:20px;
  line-height:1.25;
  font-weight:650;
}
.catalog-heading svg { flex:none; color:#a8cdf1; }
.catalog-sort { color:#c6d6e8; font-size:13px; white-space:nowrap; }
.catalog-sort > span { color:#9cacc1; }
.catalog-controls { display:flex; align-items:center; gap:14px; margin-top:20px; }
.catalog-controls[hidden], #catalog-grid > [hidden] { display:none !important; }
.catalog-controls::before, .catalog-controls::after { content:""; flex:1; height:1px; background:rgba(155,183,217,.19); }
.catalog-disclosure {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:44px; padding:8px 18px; border:1px solid #536682; border-radius:30px;
  color:#ebf3ff; background:#152847; cursor:pointer;
  font:600 14px/1.2 Onest,Arial,sans-serif;
}
.catalog-disclosure:focus-visible { outline:2px solid #badcff; outline-offset:3px; }
@media(hover:hover) { .catalog-disclosure:hover { background:#203758; } }
#catalog-toggle i {
  width:8px; height:8px; border:solid currentColor; border-width:0 1.6px 1.6px 0;
  transform:translateY(-2px) rotate(45deg); transition:transform .23s;
}
#catalog-toggle[aria-expanded=true] i { transform:translateY(2px) rotate(225deg); }
@media(max-width:520px) {
  .hy .market-content > #all { margin-top:24px!important; }
  .hy #all .catalog-heading { padding:11px 13px; }
  .hy #all .catalog-heading h2 { gap:8px; font-size:18px!important; }
  .catalog-sort { font-size:12px; }
  .catalog-sort > span { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  #catalog-toggle i { transition:none; }
}

.hy #all [data-finish="tile"].art-ready,
.hy .poster.pick [data-finish="tile"].art-ready,
.hy .product-strip .tile > .sq.art-ready {
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.hy #all [data-finish="tile"] > .approved-thumbnail { border-radius: inherit; }

/* Only the contact shadow is rasterized. The foreground stays a vector at display resolution. */
.hy [data-finish="tile"] > picture { display: contents; }
.hy [data-finish="tile"] > picture > img { display: block; pointer-events: none; }
.hy [data-finish="tile"]:not(.art-ready) > picture > img { opacity: 0; }

@media (max-width: 680px) {
  .hy .market-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 8px;
    padding-block: 12px 14px;
  }
  .hy .market-header > span:first-child > nav {
    display:flex!important;
    gap:6px!important;
    overflow-x:auto;
    padding:3px 2px 6px;
  }
  .hy .market-header nav .tab {
    flex:none;
    min-height:44px;
    padding:6px 12px;
    border-radius:12px;
    white-space:nowrap;
    font-size:.875rem;
  }
  .hy .market-header nav .tab:focus-visible {
    outline: 2px solid #a6d9fc;
    outline-offset: 1px;
  }
  .hy .market-header nav .tab:hover { transform: none; }
  .hy .market-header [data-shop-link] { min-height: 44px; }
}

/* Each mobile slide occupies the same grid cell. The tallest copy sets the height
   for all four, including at larger text sizes. Controls have their own bottom space. */
@media (max-width:900px) {
  .hy .market-home .rollwrap {
    height:auto!important;
    border-radius:22px!important;
  }
  .hy .market-home .rollwrap .roll {
    display:grid!important;
    height:auto!important;
  }
  .hy .market-home .rollwrap .roll > div {
    position:relative!important;
    inset:auto;
    grid-area:1 / 1;
    display:grid;
    height:auto!important;
    min-width:0;
    transition:opacity .32s ease;
  }
  .hy .market-home .roll > div > div:nth-child(2) {
    position:relative!important;
    left:auto!important;
    top:auto!important;
    width:auto!important;
    display:grid!important;
    grid-template-rows:auto auto 1fr auto;
    justify-items:start;
    gap:0!important;
    padding:clamp(20px,4.6vw,32px) clamp(18px,4.8vw,32px) 57px;
    translate:none;
  }
  .hy .market-home .roll > div > div:nth-child(2) > .os:first-child {
    font-size:clamp(15px,3.8vw,18px)!important;
    line-height:1.2;
    letter-spacing:.13em!important;
  }
  .hy .market-home .roll > div > div:nth-child(2) > .os:nth-child(2) {
    margin-top:10px;
    font-size:clamp(36px,9.7vw,57px)!important;
    line-height:.97!important;
  }
  .hy .market-home .roll > div > div:nth-child(2) > span:nth-child(3) {
    margin-top:13px;
    max-width:min(100%,40ch)!important;
    font-size:clamp(15px,3.85vw,17px)!important;
    line-height:1.4!important;
    color:#f0f3f5!important;
  }
  .hy .market-home .roll > div > div:nth-child(2) > span:last-child {
    flex-wrap:wrap;
    gap:2px 12px!important;
    margin-top:15px!important;
  }
  .hy .market-home .roll > div > div:nth-child(2) > span:last-child > .pick {
    height:44px!important;
    padding:0 15px!important;
    font-size:14px!important;
  }
  .hy .market-home .roll > div > div:nth-child(2) > span:last-child > .pick + .pick {
    padding:0 2px!important;
    color:#e7edf4!important;
  }
  .hy .market-home .rollwrap .roll .approved-artwork {
    top:0;
    right:-4px;
    width:clamp(130px,47%,340px)!important;
    height:auto;
    opacity:.93;
    translate:none;
    -webkit-mask-image:linear-gradient(to right,transparent,#000 29%),linear-gradient(to bottom,#000 58%,transparent 100%);
    mask-image:linear-gradient(to right,transparent,#000 29%),linear-gradient(to bottom,#000 58%,transparent 100%);
    -webkit-mask-composite:source-in;
    mask-composite:intersect;
  }
  .hy .market-home .rollwrap > div:last-child {
    left:clamp(9px,calc(4.8vw - 10px),22px)!important;
    right:clamp(18px,4.8vw,32px);
    bottom:4px!important;
    height:44px;
    flex-wrap:nowrap;
    justify-content:space-between;
  }
  .hy .market-home .carousel-dots {gap:0!important;}
  .hy .market-home .carousel-dot {width:40px;height:44px;}
  .hy .market-home .carousel-dot::before {width:16px;height:4px;}
  .hy .market-home .rollwrap > div:last-child > span:nth-child(2) {width:clamp(40px,14vw,76px)!important;height:2px!important;}
  .hy .market-home .rollwrap > div:last-child > span:last-child {display:none;}
}
@media (hover:none) {
  .hy .market-home .rollwrap > div:last-child > span:last-child {display:none;}
}
@media (max-width:900px) and (prefers-reduced-motion:reduce) {
  .hy .market-home .rollwrap .roll > div {transition:none!important;}
  .hy .market-home .rollwrap > div:last-child > span:nth-child(2) {visibility:hidden;}
}

/* The long Steam headline shares the top row with its mark. */
@media (max-width:520px) {
  .hy .market-home .roll > div[data-service="steam"] > div:nth-child(2) > .os:nth-child(2) {
    font-size:clamp(30px,8.35vw,41px)!important;
  }
  .hy .market-home .rollwrap .roll > div[data-service="steam"] .approved-artwork {
    width:43%!important;
    right:-6px;
  }
}
@media (max-width:360px) {
  .hy .market-home .roll > div > div:nth-child(2) > span:last-child {column-gap:7px!important;}
  .hy .market-home .roll > div > div:nth-child(2) > span:last-child > .pick {
    padding:0 10px!important;
    font-size:13px!important;
  }
  .hy .market-home .roll > div > div:nth-child(2) > span:last-child > .pick + .pick {padding:0!important;}
}

/* Both collection rails use the native horizontal scroll and snap to whole cards. */
@media (max-width: 900px) {
  .hy .market-content .collection-rail {
    --poster-gap: 14px;
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--poster-gap) !important;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 0 0 6px !important;
    margin-inline: 0 !important;
  }
  .hy .collection-link { scroll-snap-stop:always; border-radius:14px; }
  .hy .market-content .poster.pick {
    --fan-side: clamp(52px, 14vw, 72px);
    --fan-scale: .78;
    display: grid;
    grid-template:
      "art" minmax(clamp(115px, 32vw, 150px), 1fr)
      "name" auto
      "details" auto / minmax(0, 1fr);
    row-gap: 8px;
    min-width: 0;
    height: auto !important;
    padding: clamp(16px, 4vw, 23px);
    box-sizing: border-box;
    border-radius: 14px;
    text-align: left;
  }
  /* Each graphic is one of the original 104px square tiles, scaled equally on both axes. */
  .hy .poster.pick > span:nth-child(n+4):nth-last-child(n+3) {
    grid-area: art;
    place-self: center;
    position: relative !important;
    inset: auto !important;
    width: 0;
    height: 0;
    transform: translate(var(--fan-x), var(--fan-y, 0px)) rotate(var(--fan-angle)) scale(var(--fan-scale)) !important;
  }
  .hy .poster.pick > span:nth-child(n+4):nth-last-child(n+3) > span {
    position: absolute !important;
    top: -52px;
    left: -52px;
  }
  /* Two-tile groups. The optional third tile opens the fan around the centre tile. */
  .hy .poster.pick > span:nth-child(4) {
    --fan-x: calc(var(--fan-side) * -.64);
    --fan-angle: -9deg;
  }
  .hy .poster.pick > span:nth-child(5) {
    --fan-x: calc(var(--fan-side) * .64);
    --fan-angle: 8deg;
  }
  .hy .poster.pick:has(> span:nth-child(6):nth-last-child(3)) > span:nth-child(4) {
    --fan-x: calc(-1 * var(--fan-side));
    --fan-y: 4px;
  }
  .hy .poster.pick:has(> span:nth-child(6):nth-last-child(3)) > span:nth-child(5) {
    --fan-x: 0px;
    --fan-y: -4px;
    --fan-angle: 0deg;
  }
  .hy .poster.pick > span:nth-child(6):nth-last-child(3) {
    --fan-x: var(--fan-side);
    --fan-y: 4px;
    --fan-angle: 9deg;
  }
  .hy .poster.pick > span:nth-last-child(-n+2) {
    position: static !important;
    min-width: 0;
    gap: 0 !important;
  }
  .hy .poster.pick > span:last-child {
    grid-area: name;
    align-self: end;
  }
  .hy .poster.pick > span:last-child > .os {
    font-size: clamp(25px, 6vw, 30px) !important;
    line-height: 1.12 !important;
  }
  .hy .poster.pick > span:nth-last-child(2) {
    grid-area: details;
    font-size: 12px;
  }
  .hy .poster.pick > span:nth-last-child(2) > span:last-child {
    color: #d3dded;
    font-size: 12px !important;
    line-height: 1.32;
    font-weight: 500 !important;
    opacity: 1 !important;
  }
  .hy .poster.pick > span:nth-last-child(2) > .os,
  .hy .poster.pick > span:last-child > span:first-child:empty {
    display: none !important;
  }
  .hy .collection-link:focus-visible {
    outline: 2px solid #c9dcff;
    outline-offset: -3px;
  }
}
@media (min-width: 600px) and (max-width: 900px) {
  .hy .market-content .collection-rail {
    grid-auto-columns: calc((100% - var(--poster-gap)) / 2);
  }
}

@media (max-width: 680px) {
  .hy .market-purchase select.fx-input {
    font-size: 16px;
  }
  .hy .market-purchase .fx-chip,
  .fx-history .fx-back {
    min-height: 44px;
  }
}

/* Keep the signature and its connecting lines legible from the first visible frame. */
@media (max-width: 900px) {
  .hy #fenix-connected-sky:not(.sky-settled) :is(.sky-letter-stroke, .sky-thread, .sky-bridge) {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hy #fenix-connected-sky.sky-revealed:not(.sky-settled) .sky-letter-stroke {
    animation: fenix-mobile-starlight .65s ease-out calc(var(--wait, 0ms) * .25 - var(--scene-elapsed, 0ms)) both;
  }
  @keyframes fenix-mobile-starlight {
    from { stroke-opacity: .74; }
    to { stroke-opacity: 1; }
  }
}

/* All product choices stay visible above the checkout, including the focus ring. */
@media (max-width:900px) {
  .hy .market-products .product-strip {
    --choice-icon:clamp(36px,10.7vw,46px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    gap:10px 14px!important;
    padding:6px!important;
    overflow:visible;
    scroll-snap-type:none;
  }
  .hy .market-products .product-strip .tile {
    display:grid;
    grid-template-columns:var(--choice-icon) minmax(0,1fr);
    gap:8px;
    align-items:center;
    align-content:center;
    min-height:48px;
    scroll-snap-align:none;
  }
  .hy .market-products .product-strip .tile > .sq {
    width:var(--choice-icon)!important;
    height:var(--choice-icon)!important;
    border-radius:11px;
  }
  .hy .market-products .product-strip .tile[aria-pressed=true] > .sq {
    outline:2px solid #fff;
    outline-offset:3px;
  }
  .hy .market-products .product-strip .tile:focus-visible > .sq {
    outline:3px solid #bfd7ff;
    outline-offset:3px;
  }
  .hy .market-products .product-strip .tile > span:last-child {
    min-width:0;
    gap:2px!important;
    line-height:1.22;
  }
  .hy .market-products .product-strip .tile > span:last-child > span:first-child {font-size:13px!important;}
  .hy .market-products .product-strip .tile > span:last-child > span:last-child {
    font-size:12px!important;
    color:#c7d2df!important;
    margin:0;
  }
  .hy .market-products > div:first-child {margin-bottom:8px!important;}
}
@media (min-width:600px) and (max-width:900px) {
  .hy .market-products .product-strip {grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media (any-pointer: coarse) {
  .hy .market-home .rollwrap { touch-action: pan-y pinch-zoom; }
}

@media (min-width: 901px) {
  .market-content > .home-steps-section { margin-top: 24px !important; }
  .market-picker:not(.is-visible) ~ .market-content > .store-collections {
    margin-top: 32px !important;
  }

  /* Keep the section names available to screen-reader heading navigation. */
  .home-steps-section > h2,
  .market-picker:not(.is-visible) ~ .market-content > .store-collections > div:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Product section headings use the same surface as the catalogue header. */
.product-section-title > svg { display: none; }
.market-picker.is-visible ~ .market-content > .product-section {
  margin-top: 24px !important;
}
.market-picker.is-visible ~ .market-content .product-section-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 17px;
  margin: 0 0 12px;
  color: #eef4ff;
  font-size: 18px !important;
  font-weight: 650 !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.market-picker.is-visible ~ .market-content .product-section-title > svg {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #a8cdf1;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market-picker.is-visible ~ .market-content > .store-collections > div:first-child {
  margin-bottom: 12px !important;
}
@media (max-width: 520px) {
  .market-picker.is-visible ~ .market-content > .product-section { margin-top: 20px !important; }
  .market-picker.is-visible ~ .market-content .product-section-title {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 16px !important;
    gap: 8px;
  }
  .market-picker.is-visible ~ .market-content .product-section-title > svg { width: 18px; height: 18px; }
}
@media (max-width: 359px) {
  .market-picker.is-visible ~ .market-content .product-section-title {
    padding-inline: 8px;
    gap: 6px;
    font-size: 15px !important;
  }
}
@media (min-width: 901px) {
  .product-faq-row { align-items: stretch; }
  .product-faq-row > div:first-child > div { flex-grow: 1; }
  .product-support > :nth-child(3) { margin-top: auto; }
  .product-section.store-collections > div:has(> a:nth-child(3):last-child) {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}

/* Product page: one panel per section with the heading inside it; no cards inside cards. «Остались вопросы?» fills the full right side of the FAQ panel. */
.market-picker.is-visible ~ .market-content > .product-section { margin-top:20px!important; }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections) { padding:6px 6px 6px; overflow:hidden; background:linear-gradient(160deg,rgba(18,38,90,.82),rgba(9,20,52,.86))!important; box-shadow:inset 0 0 0 1px rgba(160,190,255,.14), 0 18px 50px rgba(0,0,0,.25)!important; border-radius:24px!important; }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections) > .product-section-title { background:none!important; border:0!important; border-radius:0!important; margin:0!important; padding:14px 18px 12px!important; min-height:0!important; border-bottom:1px solid rgba(160,190,255,.12)!important; }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections) > .product-section-title > svg { display:block!important; }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections):not(:has(.product-faq-row)) > div { gap:0!important; } .market-picker.is-visible ~ .market-content > .product-section:not(.store-collections):not(:has(.product-faq-row)) > div > div + div { border-left:1px solid rgba(160,190,255,.12)!important; }
.market-picker.is-visible ~ .market-content .product-faq-row { gap:12px!important; padding:10px 6px 6px; }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections):not(:has(.product-faq-row)) > div > div { background:none!important; box-shadow:none!important; border:0!important; border-radius:0!important; }
.market-picker.is-visible ~ .market-content .product-faq-row > div:first-child { gap:0!important; } .market-picker.is-visible ~ .market-content .product-faq-row > div:first-child > div { background:none!important; border-radius:0!important; box-shadow:none!important; border:0!important; }
.market-picker.is-visible ~ .market-content .product-faq-row > div:first-child > div + div { border-top:1px solid rgba(160,190,255,.12)!important; }
.market-picker.is-visible ~ .market-content .product-support { background:rgba(255,255,255,.04)!important; border:0!important; box-shadow:inset 0 0 0 1px rgba(160,190,255,.12)!important; -webkit-backdrop-filter:none!important; backdrop-filter:none!important; }
.market-picker.is-visible ~ .market-content > .store-collections > div:first-child { margin-bottom:10px!important; }
@media (max-width:900px){ .market-picker.is-visible ~ .market-content > .product-section:not(.store-collections):not(:has(.product-faq-row)) > div > div + div { border-left:0!important; border-top:1px solid rgba(160,190,255,.12)!important; } }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections) { padding:0!important; }
.market-picker.is-visible ~ .market-content > .product-section:not(.store-collections) > .product-section-title { padding:16px 22px 14px!important; }
.market-picker.is-visible ~ .market-content .product-faq-row { gap:0!important; padding:0!important; align-items:stretch!important; }
.market-picker.is-visible ~ .market-content .product-faq-row > div:first-child { padding:4px 10px 6px!important; }
.market-picker.is-visible ~ .market-content .product-support { margin:0!important; border-radius:0!important; box-shadow:none!important; background:rgba(120,160,255,.06)!important; border-left:1px solid rgba(160,190,255,.12)!important; padding:26px 26px 24px!important; align-self:stretch!important; }
@media (max-width:900px){ .market-picker.is-visible ~ .market-content .product-support { border-left:0!important; border-top:1px solid rgba(160,190,255,.12)!important; } }
@media (min-width:901px){
  .market-picker.is-visible ~ .market-content > .product-section:has(.product-faq-row) { display:grid!important; grid-template-columns:minmax(0,1fr) 380px; }
  .market-picker.is-visible ~ .market-content > .product-section:has(.product-faq-row) > .product-section-title { grid-column:1; grid-row:1; }
  .market-picker.is-visible ~ .market-content .product-faq-row { display:contents!important; }
  .market-picker.is-visible ~ .market-content .product-faq-row > div:first-child { grid-column:1; grid-row:2; }
  .market-picker.is-visible ~ .market-content .product-support { grid-column:2; grid-row:1 / span 2; width:auto!important; max-width:none!important; }
}

/* «Мои покупки»: same rhythm and heading bar as «Все товары», order icons with the catalogue tile finish. */
.fx-history .fx-olist { margin-top: 24px !important; }
.fx-history .fx-services { margin-top: 32px !important; }
.fx-history .fx-services > header { box-sizing: border-box; padding: 13px 18px; margin-bottom: 18px; border: 1px solid rgba(138,177,223,.22); border-radius: 14px; background: linear-gradient(112deg,rgba(23,44,74,.96),rgba(12,25,48,.85)); }
.fx-history .fx-services h2 { display: flex; align-items: center; gap: 11px; font-size: 20px !important; font-weight: 650; letter-spacing: 0 !important; line-height: 1.25; }
.fx-history .fx-services h2::before { content: ""; flex: none; width: 20px; height: 20px; background: #a8cdf1; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.fx-history .fx-services > header a { font-size: 13px; font-weight: 500; color: #c6d6e8; }
.fx-history .fx-shortcuts { margin-top: 0 !important; }
.fx-history .fx-history-help { margin-top: 24px !important; }
.fx-history .fx-order-picture { position: relative; display: block; flex: none; width: fit-content; height: fit-content; line-height: 0; border-radius: 28%; overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.fx-history .fx-order-picture::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.38), inset 0 0 0 1px rgba(255,255,255,.16), inset 0 -12px 16px rgba(0,0,0,.34), inset 0 12px 16px rgba(255,255,255,.12), inset 6px 0 10px rgba(255,255,255,.06), inset -6px 0 10px rgba(0,0,0,.14); }
.fx-history .fx-order-icon { border-radius: 28% !important; }

/* Touch screens keep :hover after a tap. The old white hover ring (index.html .poster:hover) then spills
   out of the scrolling collection strip and gets cut at its edges. Keep the resting edge on touch. */
@media (hover: none), (pointer: coarse) {
  .hy .poster.pick:hover, .hy .poster.pick:active { box-shadow: inset 0 1px 0 rgba(216,234,255,.18), inset 0 0 0 1px rgba(216,234,255,.12) !important; }
}


/* Product identity and payment stay in the same position throughout delivery. */
.fx-sheet:has([data-subscription-order]) {
  box-sizing:border-box; max-width:1100px; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none;
}
.fx-sheet:has([data-subscription-order]) > .fx-back { min-height:32px; margin-bottom:10px; color:#b9c9de; }
.fx-receipt {
  --ink:#f2f6ff; --muted:#b4c4d9; --line:rgba(151,180,221,.19); --pad:clamp(22px,3vw,36px);
  color:var(--ink); font:400 16px/1.5 Onest,Arial,sans-serif;
}
.fx-receipt-panel {
  overflow:hidden; border:1px solid #344962; border-radius:22px;
  background:linear-gradient(115deg,#11233f,#0e1e36 86%);
}
.fx-receipt-product {
  position:relative; isolation:isolate; display:grid; grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center; gap:20px; padding:25px var(--pad); border-bottom:1px solid var(--line);
  background:linear-gradient(108deg,var(--receipt-brand) -18%,#203b60 57%,#192e50);
}
.fx-receipt-product::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.34;
  background:radial-gradient(circle, #759cbd 0 .65px, transparent .9px) 2px 3px / 17px 17px;
  -webkit-mask-image:linear-gradient(100deg,transparent 25%,#000 85%);
  mask-image:linear-gradient(100deg,transparent 25%,#000 85%);
}
.fx-receipt-art { display:grid; place-items:center; width:84px; height:84px; }
.fx-receipt-art img { display:block; width:100%; height:100%; object-fit:contain; }
.fx-receipt-art > svg { width:44%; height:44%; color:#cee3ff; }
.fx-receipt-heading { min-width:0; overflow-wrap:anywhere; }
.fx-receipt-kicker {
  margin:0 0 4px; font:500 13px/1.2 Oswald,Impact,sans-serif; text-transform:uppercase;
  letter-spacing:.13em; color:#c0d3e2;
}
.fx-receipt h1 { margin:0; font:650 clamp(28px,3vw,39px)/1.12 Onest,Arial,sans-serif; letter-spacing:-.04em; }
.fx-receipt-caption { margin:5px 0 0; font-size:15px; color:#c6d6e7; }
.fx-receipt-meta { display:grid; justify-items:end; gap:7px; text-align:right; }
.fx-receipt-meta small { max-width:220px; color:var(--muted); font-size:13px; }
.fx-receipt-price { display:grid; gap:1px; }
.fx-receipt-price > span { color:#c6d6e7; font-size:13px; }
.fx-receipt-price strong { color:#fff; font:650 26px/1.14 Onest,Arial,sans-serif; white-space:nowrap; }
.fx-receipt-status { display:inline-flex; align-items:center; gap:6px; color:#bce8d9; font:550 13px/1.4 Onest,Arial,sans-serif; }
/* Reserve the confirmation line while the invoice is pending so the header stays still. */
.fx-receipt-status:empty { visibility:hidden; inline-size:12em; block-size:max(17px,1.4em); }
.fx-receipt-icon { width:17px; height:17px; display:inline-block; flex:none; }
.fx-receipt-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(210px,260px); align-items:center; gap:18px 30px; padding:26px var(--pad); }
.fx-receipt-body > .fx-error { grid-column:1/-1; margin:0; }
.fx-receipt h2 { margin:0; font:650 clamp(22px,2.2vw,27px)/1.2 Onest,Arial,sans-serif; letter-spacing:-.03em; }
.fx-receipt h3 { margin:0; font:650 17px/1.4 Onest,Arial,sans-serif; }
.fx-receipt-lead,.fx-sub-instructions p,.fx-sub-instructions li { color:var(--muted); }
.fx-receipt-lead { margin:6px 0 0; }
.fx-receipt-actions { display:grid; gap:8px; }
.fx-receipt-action {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px;
  padding:12px 24px; border:1px solid #d6e7fc; border-radius:14px; background:linear-gradient(110deg,#e7f2ff,#cbdef8); color:#0d2140;
  font:700 16px/1.4 Onest,Arial,sans-serif; text-decoration:none; text-align:center; cursor:pointer;
}
.fx-receipt-action:hover { background:#edf5ff; }
.fx-receipt-action:disabled { opacity:.65; cursor:progress; }
.fx-receipt-secondary,.fx-copy-all,.fx-receipt-ref { background:none; border:0; padding:0; color:#c6dcf8; font:inherit; cursor:pointer; }
.fx-receipt-secondary { text-decoration:underline; text-underline-offset:3px; }
.fx-receipt-panel.is-issued .fx-receipt-body {
  grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);
  grid-template-areas:"material side" "guide side"; align-items:start; gap:22px clamp(24px,4.5vw,68px);
}
.fx-issued-main { grid-area:material; min-width:0; }
.fx-sub-material { margin:15px 0 0; }
.fx-sub-material h3 { margin:0 0 7px; font-weight:550; color:#c0d0e1; font-size:14px; }
.fx-sub-material .fx-receipt-copy + h3 { margin-top:12px; }
.fx-receipt-copy {
  box-sizing:border-box; display:flex; width:100%; min-width:0; min-height:54px; align-items:center; justify-content:space-between;
  gap:12px; padding:8px 9px 8px 16px; color:#f2f6ff; border:1px solid #364d6c; border-radius:13px;
  background:#08162b; text-align:left; cursor:pointer;
}
.fx-receipt-copy:hover { border-color:#6984a6; }
.fx-receipt-copy pre {
  flex:1 1 0; min-width:0; margin:0; white-space:pre-wrap; overflow-wrap:anywhere;
  font:500 clamp(15px,1.2vw,18px)/1.5 ui-monospace,Menlo,monospace;
}
.fx-receipt-copy span {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:none; padding:8px 10px;
  border-radius:8px; background:#1b304b; color:#dbe9fd; font:600 13px/1.4 Onest,Arial,sans-serif;
}
.fx-receipt-copy .fx-receipt-icon,.fx-receipt-ref .fx-receipt-icon { width:15px; height:15px; }
.fx-copy-all { margin-top:6px; min-height:36px; font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.fx-sub-instructions { grid-area:guide; min-width:0; border-top:1px solid var(--line); padding-top:18px; }
.fx-sub-instructions p { margin:7px 0 0; line-height:1.55; overflow-wrap:anywhere; }
.fx-sub-instructions ol,.fx-sub-instructions ul { margin:10px 0; padding-inline-start:24px; }
.fx-sub-instructions li { padding-inline-start:4px; margin-block:5px; }
.fx-sub-instructions li::marker { color:#dae8ff; }
.fx-sub-instructions .fx-catalog-instruction { white-space:pre-line; }
.fx-sub-instructions a:not(.fx-receipt-action) { color:#cfe4ff; text-underline-offset:3px; }
.fx-sub-instructions .fx-receipt-action { margin-bottom:16px; }
.fx-game-material { display:grid; justify-items:start; gap:10px; }
.fx-game-material p { margin:0; color:var(--muted); line-height:1.55; }
.fx-sub-instructions .key-guide h4 { margin:20px 0 7px; color:#e7f2ff; }
.fx-sub-instructions .key-guide li strong { font-weight:550; }
.fx-sub-instructions .xbox-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:10px 0; }
.fx-sub-instructions .xbox-settings > * { padding:7px 8px; border-bottom:1px solid var(--line); font-size:14px; }
.fx-sub-instructions .xbox-settings b { color:#b9e8d7; }
.fx-sub-instructions .xbox-stop,.fx-sub-instructions .xbox-go { background:#1b344c; }
.fx-sub-instructions .ps-alert { display:flex; gap:10px; margin:14px 0; padding:12px; border:1px solid #495371; border-radius:12px; }
.fx-sub-instructions .ps-alert div { display:grid; gap:4px; }
.fx-issued-aside { grid-area:side; display:grid; gap:14px; align-content:start; min-width:0; }
.fx-receipt-details { padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:rgba(4,15,32,.32); }
.fx-receipt-refs { display:grid; gap:13px; margin:12px 0 0; font-size:13px; }
.fx-receipt-refs dt { color:var(--muted); }
.fx-receipt-refs dd { margin:2px 0 0; color:#e4edfa; overflow-wrap:anywhere; font:500 13px/1.5 ui-monospace,Menlo,monospace; }
.fx-receipt-ref { display:inline-flex; align-items:center; gap:8px; text-align:left; overflow-wrap:anywhere; }
.fx-receipt-club a {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px 16px;
  border:1px solid var(--line); border-radius:15px; background:linear-gradient(110deg,#1d3556,#142740);
  color:var(--ink); text-decoration:none;
}
.fx-club-gift { width:37px; height:37px; display:grid; place-items:center; border-radius:11px; background:#243e60; color:#bdd7ff; }
.fx-club-gift svg { width:21px; height:21px; }
.fx-receipt-club strong,.fx-receipt-club small { display:block; }
.fx-receipt-club small { font-size:13px; color:var(--muted); }
.fx-receipt-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 16px; margin-top:8px; }
.fx-receipt-footer :is(a,button) {
  display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:0; border:0; background:none;
  color:#bed1e9; font:500 14px/1.35 Onest,Arial,sans-serif; cursor:pointer; text-decoration:none;
}
.fx-receipt-ref:hover,.fx-receipt-footer :is(a,button):hover { text-decoration:underline; text-underline-offset:3px; }
.fx-receipt :is(button,a):focus-visible { outline:2px solid #b2d8ff; outline-offset:3px; }
@media(max-width:700px) {
  .fx-receipt { --pad:18px; font-size:15px; }
  .fx-receipt-panel { border-radius:19px; }
  .fx-receipt-product { grid-template-columns:58px minmax(0,1fr); gap:15px 13px; padding:18px var(--pad) 14px; }
  .fx-receipt-art { width:58px; height:58px; }
  .fx-receipt-kicker { font-size:11px; }
  .fx-receipt h1 { font-size:clamp(25px,6.6vw,32px); }
  .fx-receipt-caption { margin-top:3px; font-size:13px; }
  .fx-receipt-meta {
    grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:6px 12px; padding-top:11px; border-top:1px solid var(--line); text-align:left;
  }
  .fx-receipt-meta small { flex-basis:100%; max-width:none; }
  .fx-receipt-price { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
  .fx-receipt-price > span { font-size:12px; }
  .fx-receipt-price strong { font-size:19px; }
  .fx-receipt-status { font-size:12px; }
  .fx-receipt-body { grid-template-columns:minmax(0,1fr); gap:18px; padding-block:20px; }
  .fx-receipt-panel.is-issued .fx-receipt-body { grid-template-columns:minmax(0,1fr); grid-template-areas:"material" "details" "guide" "club"; gap:18px; }
  .fx-issued-aside { display:contents; }
  .fx-receipt-details { grid-area:details; border:0; border-radius:0; padding:0; background:none; }
  .fx-receipt-details h3 { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .fx-receipt-details .fx-receipt-refs { margin:0; gap:7px; }
  .fx-receipt-refs div { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; }
  .fx-receipt-refs dd { margin:0; }
  .fx-receipt-club { grid-area:club; }
  .fx-receipt-copy { gap:8px; padding-left:12px; }
  .fx-receipt-copy span { font-size:0; gap:0; padding:9px; }
  .fx-receipt-copy .fx-receipt-icon { width:18px; height:18px; }
  .fx-sub-instructions .fx-receipt-action { width:100%; }
  body:has([data-subscription-order]) #fx-fab { display:none; }
}

.fx-receipt-panel.is-issued:has(.fx-key-order-main) .fx-receipt-body {
  grid-template-columns:minmax(0,1fr); grid-template-areas:"material" "guide" "side";
  gap:20px;
}
.fx-receipt-body:has(.fx-key-order-main) .fx-issued-aside { display:block; }
:is(.fx-perplexity-guide,.fx-chatgpt-guide) > .fx-receipt-action {
  width:100%; min-height:47px; margin:0 0 8px; padding:10px 18px; border-radius:12px; justify-content:space-between;
}
:is(.fx-perplexity-guide,.fx-chatgpt-guide) > .fx-profile-action {
  color:#e4effe; border:1px solid #547297; background:linear-gradient(105deg,#1d3556,#172b48);
}
:is(.fx-perplexity-guide,.fx-chatgpt-guide) > .fx-profile-action:focus-visible { outline:2px solid #b2d8ff; outline-offset:2px; }
:is(.fx-perplexity-guide,.fx-chatgpt-guide) .fx-warranty { display:inline-block; margin:16px 0 12px; font-size:13px; }
:is(.fx-perplexity-guide,.fx-chatgpt-guide) .fx-guide-account-warning { margin:12px 0; color:#d5e2f5; font-size:14px; font-weight:600; }
.fx-guide-account-warning > span { color:#f3c878; }
:is(.fx-perplexity-guide,.fx-chatgpt-guide) .fx-guide-note { font-size:14px; }
.fx-key-club {
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; align-items:start;
  padding:16px 18px; border:1px solid #3b5474; border-radius:15px; background:linear-gradient(108deg,#1d3657,#142840 82%);
}
.fx-key-club .fx-receipt-kicker { font-size:11px; }
.fx-key-club h3 + p { margin:3px 0 12px; color:var(--muted); font-size:14px; }
.fx-key-club-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.fx-key-club .fx-receipt-action { display:inline-flex; min-height:38px; padding:6px 13px; border-radius:9px; font-size:14px; color:#0d2140; background:linear-gradient(110deg,#e7f2ff,#cbdef8); }
.fx-key-club-actions a:not(.fx-receipt-action) { display:inline-block; padding:6px 0; border:0; border-radius:0; color:#c6dcf8; background:none; font-size:13px; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:700px) {
  .fx-key-club { padding:14px 12px; gap:9px; }
  .fx-key-club .fx-club-gift { width:30px; height:30px; }
}

.fx-key-frame {
  min-width:0; container:receipt-key / inline-size; --key-brand:#465fc3;
  --key-tone:color-mix(in srgb,var(--key-brand) 63%,#15262e);
}
@supports (color:oklch(from red l c h)) {
  .fx-key-frame { --key-tone:oklch(from var(--key-brand) clamp(.31,l,.47) c h); }
}
.fx-key-card {
  position:relative; isolation:isolate; overflow:hidden; box-sizing:border-box; width:100%; min-width:0;
  padding:clamp(18px,2.1vw,26px); border-radius:clamp(18px,2vw,23px); color:#fff;
  background-color:#15283a;
  background-image:radial-gradient(95% 125% at 98% -22%,rgb(255 255 255 / .16),transparent 62%),
    linear-gradient(118deg,var(--key-tone),color-mix(in srgb,var(--key-tone) 73%,#10202a) 50%,color-mix(in srgb,var(--key-tone) 34%,#0b1720));
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .32), inset 0 0 0 1px rgb(255 255 255 / .16), 0 8px 22px rgb(2 10 20 / .22);
}
.fx-key-card::before {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:10% 12% -70% -22%;
  background:radial-gradient(closest-side,rgb(255 255 255 / .085),transparent);
}
.fx-key-primary {
  display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"label label" "value copy";
  align-items:center; gap:3px 16px; min-width:0; cursor:pointer;
}
.fx-key-data { display:contents; }
.fx-key-data > span {
  grid-area:label; color:rgb(255 255 255 / .87); font:550 12px/1.4 Onest,Arial,sans-serif; letter-spacing:.075em; text-transform:uppercase;
}
.fx-key-card .fx-key-value {
  grid-area:value; min-width:0; color:#fff; font:600 clamp(22px,2.25vw,32px)/1.3 Oswald,ui-monospace,monospace;
  letter-spacing:.055em; white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; user-select:text; cursor:text;
}
.fx-key-copy {
  grid-area:copy; justify-self:end; display:grid; grid-template-columns:16px auto; align-items:center; justify-content:center; gap:7px;
  box-sizing:border-box; width:131px; min-height:40px; padding:6px 10px; border:0; border-radius:999px; white-space:nowrap;
  background:rgb(255 255 255 / .18); color:#fff; font:650 13px/1.25 Onest,Arial,sans-serif; cursor:pointer;
}
.fx-key-copy .fx-receipt-icon { grid-area:1/1; width:16px; height:16px; }
.fx-key-copy .fx-receipt-icon:nth-of-type(2),.fx-key-copy[data-copied] .fx-receipt-icon:first-of-type { visibility:hidden; }
.fx-key-copy[data-copied] { color:#e4fff5; background:rgb(200 252 239 / .24); }
.fx-key-copy[data-copied] .fx-receipt-icon:nth-of-type(2) { visibility:visible; }
.fx-key-copy:focus-visible { outline:2px solid #cef0ff; outline-offset:3px; }
.fx-key-card .fx-receipt-refs {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:2px clamp(18px,2.5vw,32px);
  margin:16px 0 0; padding-top:8px; border-top:1px solid rgb(226 233 255 / .2);
}
.fx-key-card .fx-receipt-refs > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 6px; min-width:0; max-width:100%; }
.fx-key-card .fx-receipt-refs dt { font:450 12px/1.4 Onest,Arial,sans-serif; color:rgb(255 255 255 / .82); }
.fx-key-card .fx-receipt-refs dd { min-width:0; max-width:100%; margin:0; }
.fx-key-card .fx-receipt-ref {
  max-width:100%; min-height:26px; gap:5px; color:#eff2ff; font:550 12px/1.4 Onest,Arial,sans-serif;
}
.fx-key-card .fx-receipt-ref span { min-width:0; overflow-wrap:anywhere; }
.fx-key-card .fx-receipt-ref .fx-receipt-icon { width:13px; height:13px; }
.fx-key-card .fx-receipt-ref:focus-visible { outline:2px solid #cef0ff; outline-offset:2px; border-radius:3px; }
@media (hover:hover) {
  .fx-key-copy:hover { background:rgb(255 255 255 / .29); }
}
.fx-code.fx-voucher { padding:0; border:0; background:none; }
.fx-voucher > small { padding-inline:4px; }
@media(max-width:700px) {
  .fx-key-card { padding:17px; }
  .fx-key-copy { width:122px; min-height:44px; padding-inline:8px; }
  .fx-key-card .fx-receipt-refs { margin-top:12px; gap:0 16px; }
  .fx-key-card .fx-receipt-ref { min-height:30px; }
}
@container receipt-key (max-width:26rem) {
  .fx-key-primary { column-gap:8px; }
  .fx-key-copy { grid-template-columns:18px; gap:0; width:44px; min-height:44px; padding:0; border-radius:12px; }
  .fx-key-copy .fx-receipt-icon { width:18px; height:18px; }
  .fx-key-copy > span { display:none; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  [data-receipt-stage="issued"] :is(.fx-receipt-panel,.fx-summary) {
    translate:calc(var(--receipt-x,0) * 2px) calc(var(--receipt-y,0) * 1.5px);
    transition:translate 230ms ease-out;
  }
  .fx-key-frame { perspective:1350px; }
  .fx-key-card {
    transform:rotateX(calc(var(--key-y,0) * -2.8deg)) rotateY(calc(var(--key-x,0) * 1.65deg));
    transition:transform 420ms cubic-bezier(.2,.8,.2,1);
  }
  .fx-key-frame[data-pointed] .fx-key-card { transition-duration:145ms; }
  .fx-key-card::after {
    content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; opacity:0;
    background:radial-gradient(ellipse 42% 115% at calc(50% + var(--key-x,0) * 50%) calc(50% + var(--key-y,0) * 50%),rgb(255 255 255 / .15),transparent);
    transition:opacity 240ms ease-out;
  }
  .fx-key-frame[data-pointed] .fx-key-card::after { opacity:1; }
  .fx-receipt-art { translate:calc(var(--receipt-x,0) * 1.5px) calc(var(--receipt-y,0) * 1px); transition:translate 230ms ease-out; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-receipt-motion="open"] :is(.fx-receipt-heading, .fx-receipt-message, .fx-title, .fx-status),
  [data-receipt-motion="paid"] :is(.fx-receipt-message, .fx-receipt-status, .fx-status),
  [data-receipt-motion="issued"] :is(.fx-issued-main > h2, .fx-status, .fx-sub-material, .fx-code, .fx-notice) {
    animation: fxReceiptArrive 310ms cubic-bezier(.2,.75,.25,1) backwards;
  }
  [data-receipt-motion="issued"] :is(.fx-sub-material, .fx-code, .fx-notice) { animation-delay: 55ms; }
  [data-receipt-motion="issued"] :is(.fx-receipt-details, .fx-summary) {
    animation: fxReceiptArrive 290ms 90ms cubic-bezier(.2,.75,.25,1) backwards;
  }
  [data-receipt-motion="paid"] .fx-receipt-status path, .fx-key-copy[data-copied] .fx-receipt-icon:nth-of-type(2) path {
    stroke-dasharray: 16;
    animation: fxReceiptCheck 320ms 45ms ease-out backwards;
  }
  [data-receipt-stage="issued"] > .fx-summary { position:relative; overflow:hidden; }
  [data-order-page][data-receipt-away] { --receipt-trace-play:paused; }
  [data-receipt-stage="issued"] .fx-receipt-product::after,
  [data-receipt-stage="issued"] > .fx-summary::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    width: 30%;
    height: 9px;
    pointer-events: none;
    opacity: 0;
    background:
      radial-gradient(ellipse 4px 2px at 78% 50%, #f1fffe 20%, #a9efed 60%, transparent),
      radial-gradient(ellipse 30px 4px at 76% 50%, rgb(136 232 234 / .6), transparent),
      linear-gradient(90deg, transparent 3%, #78bfc96b 48%, #c7ffff 78%, transparent 98%);
    background-size: 100% 9px, 100% 9px, 100% 2px;
    background-position:center;
    background-repeat: no-repeat;
    animation: fxReceiptTrace 8s linear var(--receipt-trace-delay,0ms) infinite;
    animation-play-state: var(--receipt-trace-play,running);
  }
  [data-receipt-stage="issued"] .fx-receipt-product::after { bottom: -4px; }
  [data-receipt-stage="issued"] > .fx-summary::before { top: -3px; }
  @keyframes fxReceiptArrive {
    from { opacity: .48; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fxReceiptCheck { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
  @keyframes fxReceiptTrace {
    0% { opacity:0; transform:translateX(-85%); }
    9%,77% { opacity:.95; }
    93%,100% { opacity:0; transform:translateX(300%); }
  }
}

.hy .market-header > span:first-child, .hy .market-header nav { min-width:0; }
.hy .market-header > span:first-child > [role="link"], .hy .market-header > span:last-child { flex-shrink:0; }
.hy .market-header nav { overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#446082 transparent; }
.hy .market-header nav .tab { flex:none; white-space:nowrap; }
.hy .market-purchase .fx-group:has(.fx-tariff) { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7.1rem),1fr)); }
.hy .market-purchase .fx-tariff { display:flex; flex-flow:column; justify-content:center; align-items:center; gap:2px; height:auto!important; min-height:44px; padding:7px 8px!important; white-space:normal; }
.hy .fx-tariff small { font-size:.72rem; line-height:1.2; font-weight:500; }
.hy .market-purchase .fx-tariff[data-sold-out="true"]:not(.fx-on) { background:rgba(255,255,255,.07); color:#adbac9; }
.hy .collection-rail { overscroll-behavior-x:contain; scrollbar-width:none; }
.hy .collection-rail::-webkit-scrollbar { display:none; }
.hy .market-content .collection-rail.is-scrubbing { scroll-snap-type:none; }
.hy .collection-rail:focus-visible { outline:2px solid #a6d9fc; outline-offset:3px; }
@media(min-width:901px) {
  .hy .market-header { column-gap:18px; }
  .hy .market-header > span:first-child { gap:clamp(12px,1.3vw,24px)!important; }
  .hy .market-header > span:first-child > nav { gap:clamp(10px,.8vw,16px)!important; }
  .hy .market-header nav .tab { font-size:clamp(14px,1.1vw,18px); }
  .hy .store-collections .collection-rail { grid-auto-flow:column; grid-auto-columns:calc((100% - 66px)/4); grid-template-columns:none!important; overflow-x:auto; scroll-snap-type:x proximity; padding-block:6px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Let the tilted corners paint inside the scrollport without moving the card columns or their snap positions. */
  .hy .market-content .collection-rail {
    --collection-gutter: min(18px, var(--poster-gap, 22px));
    margin-inline: calc(0px - var(--collection-gutter)) !important;
    margin-block-start: -8px;
    padding: 18px var(--collection-gutter) 14px !important;
    scroll-padding-inline: var(--collection-gutter);
    overflow-y: hidden;
  }
}

.hy .market-purchase .fx-group:has(> .fx-tariff:nth-child(4):last-child) { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:500px) { .hy .market-purchase .fx-group:has(> .fx-tariff:nth-child(4):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.hy .store-collections > .collection-controls { display:flex; align-items:center; gap:7px; }
.hy .collection-controls[hidden] { display:none!important; }
.hy .collection-scroll {
  --track-color:#263b55;
  --thumb-color:#57728f;
  position:relative;
  flex:1 1 0;
  min-width:0;
  align-self:stretch;
  margin-inline-end:7px;
  cursor:pointer;
  user-select:none;
  touch-action:pan-y pinch-zoom;
}
.hy .collection-scroll::before, .hy .collection-scroll > span {
  position:absolute; top:50%; transform:translateY(-50%); border-radius:4px; pointer-events:none;
}
.hy .collection-scroll::before { content:""; inset-inline:0; height:4px; background:var(--track-color); }
.hy .collection-scroll > span { height:6px; background:var(--thumb-color); }
.hy .collection-scroll:is(:hover,:focus-visible,:active) { --thumb-color:#86a6c8; }
.hy .collection-scroll:focus-visible { outline:none; }
.hy .collection-scroll:focus-visible::before { outline:2px solid #a6d9fc; outline-offset:3px; }
@media(hover:hover) {
  .hy .collection-scroll { cursor:grab; }
  .hy .collection-scroll:active { cursor:grabbing; }
}
@media(forced-colors:active) {
  .hy .collection-scroll { --track-color:GrayText; --thumb-color:ButtonText; forced-color-adjust:none; }
}
.hy .collection-controls button { width:38px; height:38px; border-radius:50%; border:1px solid #405776; background:#142843; color:#dcecff; font:500 25px/1 Onest, sans-serif; cursor:pointer; }
.hy .collection-controls button:focus-visible { outline:2px solid #a6d9fc; outline-offset:2px; }
.hy .collection-controls button:disabled { opacity:.35; cursor:default; }
@media(pointer:coarse) {
  .hy .collection-controls button { width:44px; height:44px; }
}

/* ChatGPT uses the same receipt actions as the other automatic key deliveries. */
.fx-key-used { display:flex; align-items:center; gap:10px; padding:13px 18px; border-radius:12px; background:linear-gradient(105deg,#e4f1ff,#bcd6f8); color:#142d4b; }
.fx-key-used strong { display:block; font-size:14px; font-weight:600; }
.fx-key-used small { display:block; margin-top:4px; font-size:12px; }
.fx-chatgpt-guide .fx-warranty { display:block; }
