/* The shop (/site/shop/) — a store page: the captain's bar on top, the filters on the left (a drawer from the right
   edge on a phone), the product grid; its legal pages and the test mode's checkout. The site's wood and brass, the
   game's art. */
.shop { padding-top: 24px; }
.shop [hidden], .testpay [hidden] { display: none !important; }

/* ---- the mode and the order's state */
.shop-mode { margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; border: 1px dashed rgba(245, 196, 81, 0.6); background: repeating-linear-gradient(-45deg, rgba(245, 196, 81, 0.08) 0 14px, rgba(245, 196, 81, 0.02) 14px 28px); color: #f2dfa8; font-weight: 600; text-align: center; }
.shop-order { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; margin: 0 0 22px; }
.shop-order div { display: grid; gap: 4px; min-width: 0; }
.shop-order b { font: 700 22px/1.2 var(--display); color: #f2e6c8; }
.shop-order small { font-size: 12px; }
.shop-order-ico { flex: none; width: 44px; height: 44px; background: url(/site/img/ico/hourglass.webp) center / contain no-repeat; }
.shop-order.wait .shop-order-ico { animation: tip 1.6s ease-in-out infinite; }
@keyframes tip { 50% { transform: rotate(180deg); } }
.shop-order.ok { border-color: rgba(143, 179, 106, 0.55); box-shadow: 0 0 30px rgba(143, 179, 106, 0.12); }
.shop-order.ok .shop-order-ico { background-image: url(/site/img/ico/chest.webp); }
.shop-order.ok b { color: #b9dc8f; }
.shop-order.bad { border-color: rgba(196, 85, 74, 0.55); }
.shop-order.bad .shop-order-ico { background-image: url(/site/img/ico/report.webp); }
.shop-order.bad b { color: #e7a197; }

/* ---- the captain's bar */
.st-who { padding: 20px 26px; margin-bottom: 24px; }
.st-who-in { display: flex; align-items: center; gap: 18px 30px; flex-wrap: wrap; }
.st-who-l { flex: 1 1 260px; min-width: 0; }
.st-who h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 4px; }
.st-who-l p { margin: 0; font-size: 14px; }
.shop-find { display: flex; gap: 12px; align-items: center; flex: 1 1 380px; max-width: 520px; }
.shop-find .search { flex: 1; width: auto; }
.shop-find, .shop-find .search, .shop-find .search input { min-width: 0; }
.shop-find .search input { width: 100%; }
.shop-who { display: flex; align-items: center; gap: 16px; padding: 10px 14px; flex: 1 1 380px; max-width: 560px; border-radius: 16px; background: rgba(245, 196, 81, 0.07); border: 1px solid rgba(245, 196, 81, 0.25); }
.shop-face { --pav: 74px; margin: -8px; }
.shop-who-txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.shop-who-txt .kicker { margin: 0; }
.shop-who-txt b { font: 700 22px/1.1 var(--display); color: var(--gold1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-who-txt .muted { font-size: 13px; }
.shop-mail { display: grid; gap: 6px; max-width: 560px; margin-top: 14px; }
.shop-mail .kicker { margin: 0; }
.shop-mail .search { width: 100%; }
.shop-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(196, 85, 74, 0.12); border: 1px solid rgba(196, 85, 74, 0.4); color: #f0c2bb; }

/* ---- the store: filters and grid */
.store { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.st-side { position: sticky; top: 104px; max-height: calc(100vh - 120px); display: flex; flex-direction: column; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(18, 25, 40, 0.94), rgba(11, 15, 25, 0.97)), url(/site/img/tex/wood.webp) 0 0 / 360px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); outline: none; }
.st-side-head, .st-side-foot { display: none; }
.st-side-body { overflow: auto; padding: 16px 14px 18px; scrollbar-width: thin; scrollbar-color: rgba(245, 196, 81, 0.3) transparent; }
.st-cats { display: grid; gap: 2px; }
.st-cat { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: #d6cfbf; font: 500 15px var(--sans); text-align: left; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
@media (hover: hover) { .st-cat:hover { background: rgba(245, 196, 81, 0.07); color: #fff; } }
.st-cat:focus-visible { outline: 2px solid var(--gold1); outline-offset: 1px; }
.st-cat.on { background: linear-gradient(90deg, rgba(245, 196, 81, 0.2), rgba(245, 196, 81, 0.05)); border-color: rgba(245, 196, 81, 0.4); color: var(--gold1); font-weight: 600; }
.st-cat.none { opacity: 0.45; }
.st-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.st-ico img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.st-cn { flex: 1; min-width: 0; }
.st-n { flex: none; font-style: normal; font-size: 12px; color: var(--muted); padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums; }
.st-cat.on .st-n { color: #2a1a06; background: var(--gold1); }
.st-subs { display: grid; gap: 2px; margin: 0 0 4px 22px; padding-left: 10px; border-left: 1px solid rgba(245, 196, 81, 0.2); }
.st-cat.sub { min-height: 38px; font-size: 14px; }
.st-cat.sub .st-ico, .st-cat.sub .st-ico img { width: 24px; height: 24px; }
.st-price { margin: 18px 0 0; padding: 14px 4px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.st-price legend { padding: 0; font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); }
.st-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.st-range label { display: flex; align-items: center; gap: 6px; padding: 0 10px; min-height: 42px; min-width: 0; border-radius: 12px; background: rgba(14, 19, 32, 0.9); border: 1px solid var(--line2); }
.st-range span { font-size: 12px; color: var(--muted); }
.st-range input { width: 100%; min-width: 0; background: none; border: 0; color: var(--text); font: 500 14px var(--sans); outline: none; -moz-appearance: textfield; appearance: textfield; }
.st-range input::-webkit-outer-spin-button, .st-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-range label:focus-within { border-color: rgba(245, 196, 81, 0.6); }
.st-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.st-step { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(14, 19, 32, 0.8); color: #cfc8b8; font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.st-step:hover { border-color: rgba(245, 196, 81, 0.5); color: #fff; }
.st-step.on { background: var(--gold); color: #2a1a06; border-color: transparent; font-weight: 600; }
.st-mine { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 4px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.st-mine input { position: absolute; opacity: 0; pointer-events: none; }
.st-mine > span:last-child { display: grid; gap: 2px; }
.st-mine small { font-size: 12px; display: none; }
.st-mine.dis { cursor: default; opacity: 0.7; }
.st-mine.dis small { display: block; }
.st-sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line2); transition: background 0.2s; }
.st-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfc8b8; transition: transform 0.2s var(--ease); }
.st-mine input:checked + .st-sw { background: var(--gold2); }
.st-mine input:checked + .st-sw::after { transform: translateX(18px); background: #2a1a06; }
.st-mine input:focus-visible + .st-sw { outline: 2px solid var(--gold1); outline-offset: 2px; }

.st-main { min-width: 0; }
.st-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.st-title { font-size: clamp(24px, 2.6vw, 34px); margin: 0; }
.st-title i { font: 500 14px var(--sans); color: var(--muted); vertical-align: middle; margin-left: 6px; }
.st-sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.st-sort select { min-height: 42px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); font: 500 14px var(--sans); appearance: none; background: rgba(14, 19, 32, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5c451' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; cursor: pointer; }
.st-sort select option { background: #0e1320; }
.st-sort select:focus-visible { outline: 2px solid var(--gold1); }
.st-grid[aria-busy='true'] { min-height: 420px; background: radial-gradient(closest-side, rgba(245, 196, 81, 0.06), transparent) center / 60% 60% no-repeat; }
.st-gh { font: 700 24px/1.2 var(--display); color: var(--ice); margin: 30px 0 14px; display: flex; align-items: baseline; gap: 8px; }
.st-gh:first-child { margin-top: 0; }
.st-gh i { font: 500 13px var(--sans); color: var(--muted); font-style: normal; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.st-empty { padding: 40px 0; text-align: center; }

/* ---- a product card */
.shop-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, rgba(18, 25, 40, 0.96), rgba(10, 14, 23, 0.98)), url(/site/img/tex/wood.webp) 0 0 / 300px; border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.shop-card:hover { transform: translateY(-3px); border-color: rgba(245, 196, 81, 0.35); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 196, 81, 0.08); }
.shop-card.tag-best { border-color: rgba(245, 196, 81, 0.4); }
.shop-card.owned { opacity: 0.66; }
.shop-card.owned:hover { transform: none; }
.shop-art { position: relative; height: 132px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 60%, rgba(245, 196, 81, 0.16), transparent 70%), linear-gradient(180deg, #121a2c, #0a0e18); border-bottom: 1px solid var(--line); }
.shop-art img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.7)); }
.shop-art.fig img { width: 118px; height: 118px; }
.shop-art.coin img { width: 80px; height: 80px; }
.shop-art.plate img { width: min(240px, 92%); height: 76px; object-fit: contain; }
.sc-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(150px, 60%); text-align: center; font: 700 14px/1.1 var(--display); letter-spacing: 0.02em; pointer-events: none; }
.shop-art.face { height: 160px; }
.shop-art.face .shop-cap { --pav: 156px; }
.shop-art.face::after { content: ''; position: absolute; left: 50%; top: 50%; width: 146px; height: 146px; transform: translate(-50%, -50%); background: url(/site/img/ui/ring_round.webp) center / contain no-repeat; pointer-events: none; }
.shop-art.hull { background: radial-gradient(120% 90% at 50% 50%, #15304a, #070b14 75%); }
.shop-art.hull img { position: absolute; left: 50%; top: 50%; width: auto; height: 420px; max-width: none; transform: translate(-50%, -50%) rotate(90deg) scale(0.42); transform-origin: center; }
.shop-art.sw::before { content: ''; position: absolute; inset: 22px calc(50% - 60px); border-radius: 10px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 16px rgba(0, 0, 0, 0.5); }
.shop-art.sw img { position: relative; width: 70px; height: 70px; }
.shop-tag { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; font: 700 10px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; background: var(--gold); color: #2a1a06; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5); }
.shop-tag.hot { background: linear-gradient(180deg, #e0703f, #b04a26); color: #fff3e6; }
.shop-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 10px; min-width: 0; }
.sc-cat { font: 600 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); opacity: 0.85; }
.shop-body h3 { font-size: 20px; line-height: 1.15; color: var(--gold1); overflow-wrap: anywhere; }
.shop-body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #c4bdae; }
.shop-body .sc-meta { font-size: 12.5px; color: var(--muted); }
.shop-n { display: flex; align-items: center; gap: 8px; font: 700 30px/1 var(--display); color: #f7dc8e; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 14px rgba(245, 196, 81, 0.25); }
.shop-n img { width: 26px; height: 26px; }
.shop-card[data-kind='pack'] .shop-body h3 { display: none; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.shop-bonus, .shop-until, .shop-once { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.shop-bonus { background: rgba(143, 179, 106, 0.15); color: #b9dc8f; border: 1px solid rgba(143, 179, 106, 0.35); }
.shop-until { background: rgba(224, 112, 63, 0.14); color: #f0b393; border: 1px solid rgba(224, 112, 63, 0.35); }
.shop-once { background: rgba(140, 195, 232, 0.08); color: var(--ice); border: 1px solid rgba(140, 195, 232, 0.2); }
.sc-one { padding: 4px 12px 14px; }
.shop-buy .p { font: 700 17px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.01em; }
.shop-buy .p small { font: 600 0.72em var(--sans); }
.shop-buy { width: 100%; min-height: 44px; padding: 0 6px; font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; border-width: 0 20px; border-image-width: 0 20px; }
.shop-buy[disabled] { filter: grayscale(0.85) brightness(0.8); cursor: default; transform: none; }
.sc-why { display: block; padding: 0 14px 12px; margin-top: -6px; color: var(--muted); font-size: 12px; }

/* ---- the payment's note and the confirmation */
.st-pay { margin-top: 30px; padding: 22px 26px; }
.st-pay h3 { font-size: 24px; margin: 0 0 8px; color: var(--gold1); }
.st-pay p { margin: 0 0 10px; font-size: 14.5px; }
.shop-legal { margin: 0; font-size: 13.5px; }
.shop-legal a { color: var(--gold1); }
.st-confirm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(3px); }
.st-confirm-in { width: min(520px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; animation: pop 0.22s var(--ease); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.st-confirm h3 { font-size: 26px; margin: 0 0 14px; color: var(--gold1); }
.st-cw { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(245, 196, 81, 0.06); border: 1px solid rgba(245, 196, 81, 0.2); }
.st-cw-art { position: relative; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--sw, #0c1220); }
.st-cw-art img { width: 58px; height: 58px; object-fit: contain; }
.st-cw-art.hull { background: radial-gradient(120% 90% at 50% 50%, #15304a, #070b14 75%); }
.st-cw-art.hull img { position: absolute; left: 50%; top: 50%; width: auto; height: 200px; max-width: none; transform: translate(-50%, -50%) rotate(90deg) scale(0.3); }
.st-cw div { display: grid; gap: 2px; min-width: 0; }
.st-cw b { color: #f2e6c8; overflow-wrap: anywhere; }
.st-cw .muted { font-size: 13px; }
.st-cw strong { font: 700 20px var(--sans); color: var(--gold1); white-space: nowrap; }
.st-confirm-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 18px 0 14px; }
.st-confirm .shop-legal { font-size: 12.5px; }
html.st-lock2, html.st-lock2 body { overflow: hidden; }

/* ---- the filters' tab and drawer (a phone and a small tablet) */
.st-tab, .st-backdrop { display: none; }
@media (max-width: 959px) {
  .store { grid-template-columns: minmax(0, 1fr); padding-right: 26px; }
  /* (out of the page while shut — display: none — so a drawer parked off the right edge never widens a phone's page) */
  .st-side { display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(360px, 88vw); max-height: none; border-radius: 22px 0 0 22px; border-right: 0; transform: translateX(105%); transition: transform 0.28s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .st-side.on { display: flex; }
  .st-side.open { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6); }
  .st-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 20px; border-bottom: 1px solid var(--line); }
  .st-side-head b { font: 700 24px var(--display); color: var(--gold1); }
  .st-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(14, 19, 32, 0.9); color: #f2e6c8; font-size: 26px; line-height: 1; cursor: pointer; }
  .st-side-body { flex: 1; padding: 12px 14px 16px; overscroll-behavior: contain; }
  .st-cat { min-height: 50px; font-size: 16px; }
  .st-cat.sub { min-height: 46px; }
  .st-step { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .st-range label { min-height: 48px; }
  .st-range input { font-size: 16px; }
  .st-side-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8, 11, 19, 0.95); border-radius: 0 0 0 22px; }
  .st-side-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .st-side-foot .btn-gold, .st-side-foot .btn-oak { min-height: 48px; min-width: 0; padding: 0 4px; font-size: 12.5px; letter-spacing: 0.04em; white-space: nowrap; border-width: 0 18px; border-image-width: 0 18px; }
  .st-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; position: fixed; right: 0; top: 50%; z-index: 60; transform: translateY(-50%); padding: 14px 8px 14px 10px; min-width: 44px; border: 1px solid rgba(245, 196, 81, 0.5); border-right: 0; border-radius: 16px 0 0 16px; background: linear-gradient(180deg, #2a2114, #17110a); color: var(--gold1); font: 600 13px var(--sans); letter-spacing: 0.08em; cursor: pointer; box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.55); }
  .st-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .st-tab img { width: 22px; height: 22px; }
  .st-tab:focus-visible { outline: 2px solid var(--gold1); outline-offset: 2px; }
  .st-badge { position: absolute; top: -8px; left: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: linear-gradient(180deg, #e0703f, #b04a26); color: #fff; font: 700 12px/1 var(--sans); font-style: normal; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
  .st-backdrop { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(3, 5, 10, 0.6); opacity: 0; transition: opacity 0.28s; }
  .st-backdrop.on { opacity: 1; }
  html.st-lock, html.st-lock body { overflow: hidden; }
}
@media (max-width: 700px) {
  .st-who { padding: 16px; }
  .st-who-in { gap: 12px; }
  .shop-find { gap: 8px; flex-basis: 100%; }
  .shop-find .btn-gold.sm { padding: 0 14px; }
  .shop-who { gap: 12px; padding: 10px 12px; flex-basis: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .shop-who .btn-oak { grid-column: 1 / -1; justify-self: start; }
  .st-bar { padding-right: 40px; }
  .st-sort > span { display: none; }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-art { height: 104px; }
  .shop-art img { width: 72px; height: 72px; }
  .shop-art.fig img { width: 92px; height: 92px; }
  .shop-art.plate img { height: 58px; }
  .sc-label { font-size: 11.5px; width: 62%; }
  .shop-art.face { height: 132px; }
  .shop-art.face .shop-cap { --pav: 128px; }
  .shop-art.face::after { width: 118px; height: 118px; }
  .shop-art.hull img { transform: translate(-50%, -50%) rotate(90deg) scale(0.34); }
  .shop-body { padding: 10px 10px 8px; gap: 4px; }
  .shop-body h3 { font-size: 17px; }
  .shop-body p { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .shop-body .sc-meta { font-size: 11.5px; -webkit-line-clamp: 3; line-clamp: 3; }
  .sc-cat { font-size: 10px; }
  .shop-n { font-size: 22px; }
  .shop-bonus, .shop-until, .shop-once { font-size: 11px; padding: 2px 8px; }
  .sc-one { padding: 2px 8px 10px; }
  .shop-buy { padding: 0 4px; font-size: 12px; letter-spacing: 0.03em; border-width: 0 14px; border-image-width: 0 14px; }
  .shop-buy .w { display: none; }
  .st-pay { padding: 18px 16px; }
  .st-cw { grid-template-columns: auto minmax(0, 1fr); }
  .st-cw strong { grid-column: 1 / -1; justify-self: end; }
  .st-confirm-in { padding: 18px 16px; }
  .st-confirm-act { display: grid; grid-template-columns: 1fr; }
  .st-confirm-act [data-pay] { order: -1; }
  .st-confirm-act .btn-gold, .st-confirm-act .btn-oak { width: 100%; padding: 0 8px; letter-spacing: 0.04em; }
  .shop-buy[disabled] { font-size: 10.5px; letter-spacing: 0; }
  .shop-buy[disabled] .p { white-space: normal; line-height: 1.1; }
}
@media (max-width: 380px) {
  .st-cards { gap: 8px; }
  .st-side-foot .btn-gold, .st-side-foot .btn-oak { font-size: 11.5px; letter-spacing: 0.01em; border-width: 0 14px; border-image-width: 0 14px; }
  .shop-body h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-side, .st-side.open, .st-backdrop, .shop-card, .sc-opt, .st-sw, .st-sw::after { transition: none !important; }
  .st-confirm-in, .shop-order.wait .shop-order-ico { animation: none; }
  .shop-card:hover { transform: none; }
}

/* ---- a card opens its window (a tap anywhere but its buy buttons) */
.shop-card { cursor: pointer; }
.sc-more { all: unset; cursor: pointer; overflow-wrap: anywhere; }
.sc-more:focus-visible { outline: 2px solid var(--gold1); outline-offset: 3px; border-radius: 4px; }
.shop-card:has(.sc-more:focus-visible) { border-color: rgba(245, 196, 81, 0.55); }

/* ---- the thing's window: a desk's in the middle, a phone's a sheet from the bottom (.sheet) */
.pd { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 24px; }
.pd-back { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.76); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.24s; }
.pd.on .pd-back { opacity: 1; }
.pd-box { position: relative; width: min(900px, 100%); max-height: min(880px, calc(100vh - 48px)); max-height: min(880px, calc(100dvh - 48px)); display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; outline: none;
  background: linear-gradient(180deg, rgba(18, 25, 40, 0.98), rgba(9, 12, 20, 0.99)), url(/site/img/tex/wood.webp) 0 0 / 360px; border: 1px solid rgba(245, 196, 81, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 200, 0.08); transform: translateY(16px) scale(0.98); opacity: 0; transition: transform 0.26s var(--ease), opacity 0.2s; }
.pd-box::before { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: url(/site/img/ui/corner_tl.webp) top left / 46px no-repeat, url(/site/img/ui/corner_tr.webp) top right / 46px no-repeat; opacity: 0.85; }
.pd.on .pd-box { transform: none; opacity: 1; }
.pd-grab { display: none; }
.pd-top { position: relative; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); background: rgba(8, 11, 19, 0.6); }
.pd-pos { min-width: 70px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.pd-link { margin-left: auto; }
.pd-nav, .pd-x, .pd-link { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: rgba(14, 19, 32, 0.92); color: var(--gold1); font: 400 28px/1 var(--serif); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.pd-nav span { margin-top: -3px; }
.pd-link img { width: 20px; height: 20px; }
.pd-nav:hover:not([disabled]), .pd-x:hover, .pd-link:hover { border-color: rgba(245, 196, 81, 0.6); background: rgba(245, 196, 81, 0.12); }
.pd-nav[disabled] { opacity: 0.35; cursor: default; }
.pd-nav:focus-visible, .pd-x:focus-visible, .pd-link:focus-visible, .pd-tabs button:focus-visible, .pd-go:focus-visible { outline: 2px solid var(--gold1); outline-offset: 2px; }
.pd-scroll { position: relative; flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; padding: 22px 28px 26px; scrollbar-width: thin; scrollbar-color: rgba(245, 196, 81, 0.3) transparent; }
.pd-hero { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 26px; align-items: start; }
.pd-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 18px; border: 1px solid rgba(245, 196, 81, 0.3); background: radial-gradient(60% 60% at 50% 62%, rgba(245, 196, 81, 0.18), transparent 72%), linear-gradient(180deg, #121a2c, #080b14); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6); }
.pd-art img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.7)); }
.pd-art.fig img { position: absolute; inset: 8% 8% 6%; width: 84%; height: 86%; object-position: bottom; z-index: 1; }
.pd-art.fig::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
.pd-art.anim .p1 { opacity: 0; animation: pd-atk 3.6s ease-in-out infinite; }
.pd-art.anim .p0 { animation: pd-idle 3.6s ease-in-out infinite; }
@keyframes pd-atk { 0%, 52% { opacity: 0; } 60%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes pd-idle { 0%, 52% { opacity: 1; } 60%, 86% { opacity: 0; } 94%, 100% { opacity: 1; } }
.pd-art.hull { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 50%, #17375a, #070b14 76%); }
.pd-art.hull img { position: absolute; left: 50%; top: 50%; width: auto; height: 122%; max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
.pd-art.face { container-type: inline-size; }
.pd-art.face .cap-ring { --pav: 74cqw; margin-right: 18%; }
.pd-art .pd-hfig { position: absolute; right: 2%; bottom: 0; width: auto; height: 64%; }
.pd-art.coin img { width: 50%; height: 50%; }
.pd-art.cos img { width: 82%; height: auto; max-height: 62%; }
.pd-art.sw::before { content: ''; position: absolute; inset: 22% 26%; border-radius: 14px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 20px rgba(0, 0, 0, 0.5); }
.pd-art .sc-label { font-size: clamp(14px, 2vw, 20px); width: 56%; }
.pd-info { min-width: 0; }
.pd-info .kicker { margin-bottom: 8px; letter-spacing: 0.2em; }
.pd-info h2 { font-size: clamp(28px, 3.4vw, 42px); color: var(--gold1); overflow-wrap: anywhere; text-wrap: balance; }
.pd-lead { margin: 10px 0 14px; color: #d0c7b3; font-size: 15px; line-height: 1.55; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 11px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(140, 195, 232, 0.08); color: var(--ice); border: 1px solid rgba(140, 195, 232, 0.22); }
.pd-chip img { width: 18px; height: 18px; object-fit: contain; }
.pd-chip.gold { background: rgba(245, 196, 81, 0.12); color: var(--gold1); border-color: rgba(245, 196, 81, 0.4); }
.pd-chip.green { background: rgba(143, 179, 106, 0.14); color: #b9dc8f; border-color: rgba(143, 179, 106, 0.4); }
.pd-chip.red { background: rgba(224, 112, 63, 0.14); color: #f0b393; border-color: rgba(224, 112, 63, 0.4); }
.pd-count { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #f0b393; font-weight: 600; font-size: 14px; }
.pd-count img { width: 20px; height: 20px; }
.pd-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px 8px; margin-top: 20px; }
.pd-opts .sc-opt.on { border-color: var(--gold1); background: linear-gradient(180deg, rgba(245, 196, 81, 0.32), rgba(245, 196, 81, 0.12)); box-shadow: inset 0 0 0 1px var(--gold1); }
.pd-body { min-height: 120px; }
.pd-tabs { display: flex; gap: 2px; margin: 22px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pd-tabs button { flex: none; min-height: 46px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; background: none; color: #bfb8a8; font: 600 14px var(--sans); letter-spacing: 0.04em; cursor: pointer; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.pd-tabs button:hover { color: #fff; }
.pd-tabs [aria-selected='true'] { color: var(--gold1); border-bottom-color: var(--gold1); }
.pd-body > .pd-panel:first-child { margin-top: 22px; }
.pd-h { font: 700 21px/1.2 var(--display); color: var(--ice); margin: 22px 0 10px; }
.pd-panel > .pd-h:first-child { margin-top: 2px; }
.pd-note { margin: 0 0 10px; font-size: 13px; }
.pd-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(245, 196, 81, 0.08); border: 1px solid rgba(245, 196, 81, 0.22); }
.pd-ico img { width: 28px; height: 28px; object-fit: contain; }
.pd-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
.pd-bar { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto 8px; column-gap: 10px; row-gap: 5px; align-items: center; }
.pd-bar .pd-ico { grid-row: 1 / 3; }
.pd-bn { font-size: 13.5px; color: #cfc8b8; min-width: 0; overflow-wrap: anywhere; }
.pd-bv { font-variant-numeric: lining-nums tabular-nums; font: 700 15px var(--sans); color: #f2e6c8; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-track { grid-column: 2 / 4; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.pd-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a6424, var(--gold1)); transform-origin: left; animation: pd-grow 0.7s var(--ease); }
@keyframes pd-grow { from { transform: scaleX(0); } }
.pd-tiles { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pd-tiles li { display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 12px; background: rgba(14, 19, 32, 0.8); border: 1px solid var(--line); min-width: 0; }
.pd-tiles li > span:last-child { min-width: 0; }
.pd-tiles i { display: block; font-style: normal; font-size: 12px; line-height: 1.3; color: var(--muted); }
.pd-tiles b { display: block; color: #f2e6c8; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-abil, .pd-specs, .pd-units, .pd-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pd-ab { display: flex; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 14px; background: rgba(14, 19, 32, 0.82); border: 1px solid var(--line); }
.pd-abt { display: grid; gap: 4px; min-width: 0; }
.pd-abt b { color: var(--gold1); font-size: 16px; }
.pd-abt em { justify-self: start; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); }
.pd-abt > span { color: #c9c1b0; font-size: 14.5px; line-height: 1.5; }
.pd-nums { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pd-nums span { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 10px; border-radius: 999px; background: rgba(245, 196, 81, 0.08); border: 1px solid rgba(245, 196, 81, 0.22); font-size: 12.5px; }
.pd-nums i { font-style: normal; color: var(--muted); }
.pd-nums b { color: var(--gold1); font-size: 13px; }
.pd-specs { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.pd-specs li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(14, 19, 32, 0.82); border: 1px solid var(--line); min-width: 0; }
.pd-specs img { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: cover; }
.pd-specs li > span { min-width: 0; }
.pd-specs b { display: block; color: #f2e6c8; font-size: 14px; }
.pd-specs i { display: block; font-style: normal; font-size: 13px; line-height: 1.45; color: #b9b2a2; }
.pd-unit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 16px; background: rgba(14, 19, 32, 0.86); border: 1px solid rgba(245, 196, 81, 0.2); }
.pd-ufig { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(60% 60% at 50% 62%, rgba(245, 196, 81, 0.16), transparent 72%), #0a0e18; }
.pd-ufig img { width: 90px; height: 90px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.7)); }
.pd-ufig .tier-coin { top: -6px; left: -6px; width: 34px; height: 34px; font-size: 15px; }
.pd-ut { display: grid; gap: 7px; min-width: 0; align-content: start; }
.pd-ut > b { font: 700 20px/1.1 var(--display); color: var(--gold1); overflow-wrap: anywhere; }
.pd-ut > b i { font: 700 14px var(--sans); color: #f2e6c8; font-style: normal; }
.pd-ustats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #e6dcc6; font-variant-numeric: tabular-nums; }
.pd-ustats span { display: inline-flex; gap: 4px; align-items: center; }
.pd-ustats img { width: 18px; height: 18px; object-fit: contain; }
.pd-usk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #c4bdae; }
.pd-usk img { width: 26px; height: 26px; flex: none; border-radius: 6px; }
.pd-usk b { color: #f2e6c8; }
.pd-lines { gap: 6px; }
.pd-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 12px; background: rgba(14, 19, 32, 0.82); border: 1px solid var(--line); }
.pd-li { position: relative; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: radial-gradient(70% 70% at 50% 55%, rgba(245, 196, 81, 0.14), transparent 75%), #0a0e18; }
.pd-li img { width: 40px; height: 40px; object-fit: contain; }
.pd-li.sw { background: var(--sw); }
.pd-lt { min-width: 0; }
.pd-lt b { display: block; color: #f2e6c8; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.pd-lt i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pd-lq { font: 700 15px var(--sans); color: var(--gold1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-value { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(143, 179, 106, 0.1); border: 1px solid rgba(143, 179, 106, 0.38); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.pd-value b { color: #b9dc8f; font: 700 22px/1 var(--display); white-space: nowrap; }
.pd-value > span:not(.pd-vbar) { color: #cfe3b6; font-size: 13px; text-align: right; }
.pd-vbar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(143, 179, 106, 0.22); overflow: hidden; }
.pd-vbar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6f9150, #b9dc8f); }
.pd-text { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: #d0c7b3; font-size: 15px; line-height: 1.6; }
.pd-text img { width: 26px; height: 26px; flex: none; margin-top: 1px; }
.pd-text span { min-width: 0; }
/* cosmetics as the sea sees them */
.pd-cosl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pd-cos { margin: 0; padding: 14px; display: grid; gap: 10px; justify-items: center; align-content: start; text-align: center; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 40%, rgba(60, 100, 160, 0.16), transparent 70%), #0a0e18; min-width: 0; }
.pd-cos figcaption { display: grid; gap: 2px; }
.pd-cos figcaption b { color: var(--gold1); font-size: 15px; }
.pd-cos figcaption em { font-style: normal; font-size: 12px; color: var(--muted); }
.pd-cos figcaption .pd-only { color: #f0b393; }
.pd-cos small { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.pd-plate { position: relative; display: block; width: 100%; max-width: 320px; aspect-ratio: 512 / 144; container-type: inline-size; }
.pd-plate img { width: 100%; height: 100%; object-fit: contain; }
.pd-words { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font: 700 5.4cqw/1 var(--display); letter-spacing: 0.01em; text-align: center; white-space: nowrap; }
.pd-frame { --pav: 112px; display: block; margin: 20px; }
.pd-sea { position: relative; display: block; width: 100%; height: 150px; overflow: hidden; border-radius: 12px; background: radial-gradient(120% 90% at 50% 50%, #17375a, #070b14 78%); }
.pd-mship { position: absolute; left: 58%; top: 50%; width: 58px; height: 150px; transform: translate(-50%, -50%) rotate(90deg); }
.pd-mship > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.pd-mship.run { animation: pd-bob 2.4s ease-in-out infinite alternate; }
.pd-flag { position: absolute; left: 50%; top: 40%; z-index: 1; width: 28px; height: 20px; display: grid; place-items: center; border-radius: 2px; background: linear-gradient(160deg, var(--rgb), var(--rgb) 60%, rgba(0, 0, 0, 0.4)); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); transform: translate(-50%, -50%) rotate(-90deg); }
.pd-flag img { width: 70%; height: 70%; object-fit: contain; }
.pd-flag.big { left: 18px; top: 14px; width: 72px; height: 50px; transform: none; transform-origin: left center; animation: pd-flap 1.8s ease-in-out infinite alternate; }
.pd-flag.big::before { content: ''; position: absolute; left: -5px; top: -4px; height: 110px; width: 3px; border-radius: 2px; background: #6b5232; }
@keyframes pd-flap { to { transform: skewY(-4deg) scaleX(0.96); } }
@keyframes pd-bob { from { transform: translate(-50%, -50%) rotate(90deg) translateX(-2px); } to { transform: translate(-50%, -50%) rotate(90deg) translateX(3px); } }
.pd-wake { position: absolute; left: 0; top: 50%; width: 48%; height: 46px; transform: translateY(-50%); }
.pd-wake i { position: absolute; right: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle, var(--c1), var(--c2) 55%, transparent 72%); animation: pd-mote 2.6s linear infinite; opacity: 0; }
.pd-wake.glow i { mix-blend-mode: screen; filter: blur(0.5px) drop-shadow(0 0 6px var(--c2)); }
.pd-wake i:nth-child(2) { animation-delay: -0.3s; top: 30%; } .pd-wake i:nth-child(3) { animation-delay: -0.6s; top: 70%; }
.pd-wake i:nth-child(4) { animation-delay: -0.9s; top: 42%; } .pd-wake i:nth-child(5) { animation-delay: -1.2s; top: 60%; }
.pd-wake i:nth-child(6) { animation-delay: -1.5s; top: 36%; } .pd-wake i:nth-child(7) { animation-delay: -1.8s; top: 64%; }
.pd-wake i:nth-child(8) { animation-delay: -2.1s; top: 48%; } .pd-wake i:nth-child(9) { animation-delay: -2.4s; top: 54%; }
@keyframes pd-mote { 0% { transform: translateX(0) scale(0.7); opacity: 0.95; } 100% { transform: translateX(-190px) scale(2); opacity: 0; } }
.pd-emotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; width: 100%; }
.pd-emotes span { display: grid; gap: 4px; justify-items: center; }
.pd-emotes img { width: 60px; height: 60px; object-fit: contain; animation: pd-pop 2.2s ease-in-out infinite alternate; }
.pd-emotes span:nth-child(2) img { animation-delay: -0.5s; } .pd-emotes span:nth-child(3) img { animation-delay: -1s; } .pd-emotes span:nth-child(4) img { animation-delay: -1.5s; }
.pd-emotes i { font-style: normal; font-size: 11.5px; line-height: 1.2; color: #cfc8b8; }
@keyframes pd-pop { to { transform: translateY(-5px) scale(1.06); } }
/* while the card comes */
.pd-wait { display: grid; gap: 10px; padding: 26px 0 10px; justify-items: center; text-align: center; }
.pd-wait span { width: 100%; height: 14px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(245, 196, 81, 0.12), rgba(255, 255, 255, 0.04)) 0 0 / 200% 100%; animation: pd-shine 1.2s linear infinite; }
.pd-wait span:nth-child(2) { width: 82%; } .pd-wait span:nth-child(3) { width: 64%; }
@keyframes pd-shine { to { background-position: -200% 0; } }
/* the buy bar */
.pd-foot { position: relative; z-index: 5; display: grid; gap: 8px; padding: 12px 22px 14px; border-top: 1px solid rgba(245, 196, 81, 0.3); background: linear-gradient(180deg, rgba(14, 18, 30, 0.98), rgba(7, 9, 15, 0.99)); box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.4); }
.pd-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(196, 85, 74, 0.14); border: 1px solid rgba(196, 85, 74, 0.4); color: #f0c2bb; font-size: 13.5px; }
.pd-who { display: grid; gap: 8px; min-width: 0; }
.pd-for { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: #cfc8b8; }
.pd-for img { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid rgba(245, 196, 81, 0.4); }
.pd-for > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-for b { color: var(--gold1); }
.pd-nick { display: flex; gap: 8px; align-items: center; }
.pd-nick .search, .pd-mail { flex: 1; width: auto; min-height: 44px; }
.pd-mail { width: 100%; }
.pd-nick input, .pd-mail input { font-size: 16px; }
.pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.pd-price { display: grid; min-width: 0; }
.pd-price b { display: inline-flex; align-items: center; gap: 7px; font: 700 32px/1 var(--display); color: #f7dc8e; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 16px rgba(245, 196, 81, 0.25); }
.pd-price b img { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.pd-price b small { font: 600 0.62em var(--sans); color: #e9cf86; }
.pd-price span { font-size: 12.5px; margin-top: 4px; }
.pd-go { flex: none; min-height: 52px; padding: 0 30px; font-size: 15px; letter-spacing: 0.06em; white-space: nowrap; }
.pd-go[disabled] { filter: grayscale(0.85) brightness(0.8); cursor: default; transform: none; }
html.pd-lock, html.pd-lock body { overflow: hidden; }
.st-confirm { z-index: 80; }

/* the sheet: a phone upright, and a phone held sideways (its own two columns) */
.pd.sheet { padding: 0; place-items: end stretch; }
.pd.sheet .pd-box { width: 100%; max-width: none; height: calc(100vh - 10px); height: calc(100dvh - 10px); max-height: none; border-radius: 22px 22px 0 0; border-bottom: 0; opacity: 1; transform: translateY(100%); transition: transform 0.3s var(--ease); }
.pd.sheet.on .pd-box { transform: none; }
.pd.sheet .pd-box::before { background: url(/site/img/ui/corner_tl.webp) top left / 34px no-repeat, url(/site/img/ui/corner_tr.webp) top right / 34px no-repeat; }
.pd.sheet .pd-grab { display: grid; place-items: center; height: 20px; flex: none; touch-action: none; cursor: grab; }
.pd-grab span { width: 46px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); }
.pd.sheet .pd-top { padding: 0 10px 8px; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); background: none; }
.pd.sheet .pd-scroll { padding: 14px 16px 20px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.pd.sheet .pd-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pd.sheet .pd-art { aspect-ratio: 16 / 10; }
.pd.sheet .pd-art.face .cap-ring { --pav: 53.75cqw; margin-right: 30%; }
.pd.sheet .pd-info h2 { font-size: clamp(26px, 7.4vw, 34px); }
.pd.sheet .pd-lead { font-size: 14.5px; margin: 8px 0 12px; }
.pd.sheet .pd-tabs { position: sticky; top: -14px; z-index: 3; margin: 18px -16px 14px; padding: 0 8px; background: #0c111c; box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35); }
.pd.sheet .pd-tabs button { flex: 1 0 auto; padding: 0 10px; font-size: 13.5px; letter-spacing: 0.02em; }
.pd.sheet .pd-bars { grid-template-columns: minmax(0, 1fr); }
.pd.sheet .pd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd.sheet .pd-specs { grid-template-columns: minmax(0, 1fr); }
.pd.sheet .pd-unit { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px; }
.pd.sheet .pd-ufig { width: 72px; height: 72px; }
.pd.sheet .pd-ufig img { width: 68px; height: 68px; }
.pd.sheet .pd-ufig .tier-coin { width: 30px; height: 30px; font-size: 13px; }
.pd.sheet .pd-ab { gap: 12px; padding: 10px; }
.pd.sheet .pd-ab .abil-ico { width: 44px; height: 44px; }
.pd.sheet .pd-abt > span { font-size: 14px; }
.pd.sheet .pd-cosl { grid-template-columns: minmax(0, 1fr); }
.pd.sheet .pd-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
.pd.sheet .pd-price b { font-size: 26px; }
.pd.sheet .pd-go { flex: 1 1 auto; max-width: 280px; min-width: 0; min-height: 50px; padding: 0 22px; font-size: 14px; border-width: 0 22px; border-image-width: 0 22px; }
.pd.sheet .pd-price { flex: none; }
@media (max-width: 380px) {
  .pd.sheet .pd-go { padding: 0 8px; font-size: 13px; letter-spacing: 0.03em; }
  .pd.sheet .pd-price b { font-size: 23px; }
  .pd.sheet .pd-tiles { grid-template-columns: minmax(0, 1fr); }
  .pd-pos { min-width: 54px; font-size: 12px; }
}
@media (max-height: 500px) and (min-width: 560px) {
  .pd.sheet .pd-box { height: calc(100vh - 4px); height: calc(100dvh - 4px); border-radius: 16px 16px 0 0; }
  .pd.sheet .pd-grab { height: 14px; }
  .pd.sheet .pd-top { padding-bottom: 4px; }
  .pd.sheet .pd-nav, .pd.sheet .pd-x, .pd.sheet .pd-link { width: 40px; height: 40px; }
  .pd.sheet .pd-hero { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
  .pd.sheet .pd-scroll { padding-top: 10px; }
  .pd.sheet .pd-info .kicker { margin-bottom: 4px; }
  .pd.sheet .pd-info h2 { font-size: 24px; }
  .pd.sheet .pd-lead { font-size: 13.5px; margin: 6px 0 8px; line-height: 1.45; }
  .pd.sheet .pd-opts { margin-top: 10px; }
  .pd.sheet .pd-opts .sc-opt { min-height: 44px; }
  .pd.sheet .pd-tabs { margin-top: 12px; top: -10px; }
  .pd.sheet .pd-art, .pd.sheet .pd-art.hull { aspect-ratio: 1; }
  .pd.sheet .pd-art.hull img { height: 92%; }
  .pd.sheet .pd-art.face .cap-ring { --pav: 76cqw; margin-right: 16%; }
  .pd.sheet .pd-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd.sheet .pd-tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .pd.sheet .pd-specs, .pd.sheet .pd-cosl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd.sheet .pd-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .pd.sheet .pd-err { grid-column: 1 / -1; }
  .pd.sheet .pd-who { grid-column: 1; }
  .pd.sheet .pd-buy { grid-column: 2; }
  .pd.sheet .pd-who[hidden] + .pd-buy { grid-column: 1 / -1; }
  .pd.sheet .pd-go { min-height: 46px; }
  .pd.sheet .pd-price b { font-size: 24px; }
}
@media (max-width: 860px) and (min-width: 701px) {
  .pd-hero { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; }
  .pd-scroll { padding: 18px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-back, .pd-box, .pd.sheet .pd-box { transition: none !important; }
  .pd-art.anim .p0, .pd-art.anim .p1, .pd-track span, .pd-mship.run, .pd-flag.big, .pd-wake i, .pd-emotes img, .pd-wait span { animation: none !important; }
  .pd-art.anim .p1 { opacity: 0; }
  .pd-wake i { opacity: 0.8; }
  .pd-wake i:nth-child(2) { transform: translateX(-20px); } .pd-wake i:nth-child(3) { transform: translateX(-40px); } .pd-wake i:nth-child(4) { transform: translateX(-60px); }
  .pd-wake i:nth-child(5) { transform: translateX(-80px); } .pd-wake i:nth-child(6) { transform: translateX(-100px); } .pd-wake i:nth-child(7) { transform: translateX(-120px); }
  .pd-wake i:nth-child(8) { transform: translateX(-140px); } .pd-wake i:nth-child(9) { transform: translateX(-160px); }
}

/* ---- the legal pages */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 960px; margin: 0 auto 20px; }
.legal-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(14, 19, 32, 0.8); color: #cfc8b8; font-size: 14px; text-decoration: none; }
.legal-tabs a:hover { border-color: rgba(245, 196, 81, 0.5); color: #fff; }
.legal-tabs a.on { background: var(--gold); color: #2a1a06; border-color: transparent; font-weight: 600; }
.legal-tabs img { width: 18px; height: 18px; }
.legal { max-width: 900px; margin: 0 auto; padding: 34px 40px; }
.legal .lead { margin: 0 0 6px; font-size: 18px; color: #e6dcc6; }
.legal-ed { margin: 0 0 18px; font-size: 13px; }
.legal h2 { font-size: clamp(21px, 2.3vw, 26px); margin: 26px 0 10px; color: var(--gold1); }
.legal p, .legal li { color: #d0c8b6; overflow-wrap: anywhere; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--gold1); }
.legal .reqs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 14px; }
.legal .reqs dt { color: var(--ice); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.legal .reqs dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .legal { padding: 22px 18px; }
  .legal-tabs { gap: 6px; }
  .legal-tabs a { font-size: 13px; padding: 0 12px; }
  .legal .reqs { grid-template-columns: 1fr; gap: 2px; }
  .legal .reqs dd { margin-bottom: 8px; }
}

/* ---- the test mode's checkout (server/src/pay/testpage.ts) */
.testpay { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.testpay-card { width: min(520px, 100%); padding: 30px; text-align: center; }
.testpay-logo { margin: -6px auto 12px; height: 80px; width: auto; }
.testpay-warn { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(245, 196, 81, 0.6); background: rgba(245, 196, 81, 0.08); color: #f2dfa8; font-weight: 600; }
.testpay h1 { font-size: 34px; color: var(--gold1); margin-bottom: 16px; }
.testpay dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; text-align: left; margin: 0 0 22px; }
.testpay dt { color: var(--ice); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.testpay dd { margin: 0; color: #f2e6c8; font-weight: 600; }
.testpay-act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* the test checkout on a phone held sideways: everything, the buttons too, on one screen */
@media (max-height: 520px) {
  .testpay { min-height: 0; padding: 10px 0; }
  .testpay-card { padding: 14px 18px; width: min(640px, 100%); }
  .testpay-logo { display: none; }
  .testpay-warn { margin-bottom: 8px; padding: 8px 10px; font-size: 13px; }
  .testpay h1 { font-size: 26px; margin-bottom: 8px; }
  .testpay dl { margin-bottom: 10px; gap: 4px 14px; }
  .testpay-act .btn-gold, .testpay-act .btn-oak { min-height: 44px; }
}
/* the legal pages' long Russian words in the hero («Конфиденциальности», «Пользовательское») on a narrow phone */
@media (max-width: 480px) {
  :is(.pg-offer, .pg-terms, .pg-privacy, .pg-consent, .pg-cookies, .pg-refunds, .pg-contacts) .hero h1 { font-size: clamp(22px, 6.4vw, 40px); overflow-wrap: break-word; }
}

/* ---- the badges (owner, 2026-10-21: «красиво оформить эти числа уровня, и вообще числа. не хватает каких-то иконок»):
   brass-framed pills of a card's facts, a tier's medallion in its metal, the meaning in a tooltip (.bd-tip) */
.sc-bd { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; min-width: 0; }
.bd { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px; min-width: 26px; padding: 0 8px 0 3px; border-radius: 999px; cursor: help;
  background: linear-gradient(180deg, #2b2316, #15110b); border: 1px solid rgba(214, 170, 82, 0.55);
  box-shadow: inset 0 0 6px rgba(245, 196, 81, 0.16), inset 0 1px 0 rgba(255, 236, 190, 0.12), 0 1px 2px rgba(0, 0, 0, 0.5); color: #f3e7c9; }
.bd img { width: 20px; height: 20px; flex: none; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7)); }
.bd b { font: 700 12.5px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.01em; white-space: nowrap; }
.bd.io { padding: 0; justify-content: center; width: 26px; }
.bd.k-bunk img, .bd.k-skill img, .bd.k-crew img, .bd.k-school img, .bd.k-abil img { border-radius: 6px; }
.bd-g { display: grid; place-items: center; width: 20px; height: 20px; color: #f5d27a; }
.bd-g svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7)); }
@media (hover: hover) { .bd:hover { border-color: #f5c451; box-shadow: inset 0 0 8px rgba(245, 196, 81, 0.3), 0 0 10px rgba(245, 196, 81, 0.25); } }
/* a medallion: a struck coin in its metal (1–2 iron, 3–4 bronze, 5 silver, 6 gold, 7–8 legendary teal; a hull's rank by
   pairs of its ten) */
.bd.md { width: 26px; padding: 0; justify-content: center; border: 0; color: #1d1305;
  background: radial-gradient(circle at 34% 28%, var(--m0) 0 18%, var(--m1) 52%, var(--m2) 100%);
  box-shadow: inset 0 0 0 1.5px var(--m3), inset 0 0 0 3px rgba(255, 255, 255, 0.18), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 8px var(--mg); }
.bd.md b { font: 700 14px/1 var(--display); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }
.bd.md.k-rank { width: auto; min-width: 26px; padding: 0 6px; }
.bd.md.k-rank b { font-size: 13px; letter-spacing: 0.04em; }
.bd.m0 { --m0: #eef0f2; --m1: #a3a9b2; --m2: #555c66; --m3: #3a4049; --mg: rgba(170, 180, 190, 0.15); }
.bd.m1 { --m0: #ffe0b8; --m1: #d08e4f; --m2: #7c4520; --m3: #5a3014; --mg: rgba(208, 142, 79, 0.25); }
.bd.m2 { --m0: #ffffff; --m1: #cfd7e0; --m2: #7d8a99; --m3: #4f5a67; --mg: rgba(207, 215, 224, 0.28); }
.bd.m3 { --m0: #fff6cc; --m1: #f2c552; --m2: #a46c12; --m3: #6f4708; --mg: rgba(245, 196, 81, 0.4); }
.bd.m4 { --m0: #e8fffb; --m1: #57dccb; --m2: #10776c; --m3: #0a4f48; --mg: rgba(87, 220, 203, 0.45); color: #04211d; }
/* a cosmetic's rarity: the game's own colours (client/cosmetics.css .cos-t0…4) */
.bd.cs { padding-left: 6px; }
.bd.cs .bd-g { width: 16px; color: var(--ct); }
.bd.cs b { color: var(--ct2); }
.bd.c0 { --ct: #a39a8a; --ct2: #d8d0c0; } .bd.c1 { --ct: #7fb879; --ct2: #b7e0b1; } .bd.c2 { --ct: #5d9bd4; --ct2: #a9cff2; }
.bd.c3 { --ct: #b277de; --ct2: #dcb9f3; } .bd.c4 { --ct: #f0b648; --ct2: #ffd98a; }
.bd.c4 { border-color: rgba(240, 182, 72, 0.8); box-shadow: inset 0 0 8px rgba(240, 182, 72, 0.3), 0 0 10px rgba(240, 182, 72, 0.2); }
/* the window's row: a size larger */
.sc-bd.big { gap: 7px; margin: 0 0 12px; }
.sc-bd.big .bd { height: 32px; min-width: 32px; padding: 0 11px 0 4px; gap: 6px; }
.sc-bd.big .bd img, .sc-bd.big .bd-g { width: 24px; height: 24px; }
.sc-bd.big .bd b { font-size: 14px; }
.sc-bd.big .bd.io, .sc-bd.big .bd.md { width: 32px; padding: 0; }
.sc-bd.big .bd.md b { font-size: 17px; }
.sc-bd.big .bd.md.k-rank { width: auto; padding: 0 8px; }
.sc-bd.big .bd.cs { padding-left: 8px; }
/* the tooltip: one for the page */
.bd-tip { position: fixed; z-index: 120; max-width: min(280px, calc(100vw - 16px)); padding: 7px 11px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(180deg, #2a2116, #16110a); border: 1px solid rgba(245, 196, 81, 0.6); color: #f6ecd2; font: 500 13px/1.35 var(--sans);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 236, 190, 0.1); animation: bd-tip 0.14s ease-out; }
.bd-tip::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: #16110a; border: solid rgba(245, 196, 81, 0.6); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.bd-tip.below::after { bottom: auto; top: -6px; background: #2a2116; border-width: 1px 0 0 1px; }
@keyframes bd-tip { from { opacity: 0; transform: translateY(3px); } }

/* ---- the picture's flag: a bundle's saving, a doubloon pack's bonus */
.sc-flag { position: absolute; z-index: 1; top: 10px; left: 0; padding: 4px 12px 4px 9px; cursor: help; color: #f2ffe6; font: 700 12px/1.1 var(--sans); letter-spacing: 0.02em; font-variant-numeric: lining-nums;
  background: linear-gradient(180deg, #5d8a3c, #3b5e22); clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 50%, 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); }
.sc-flag::before { content: ''; position: absolute; inset: 2px 9px 2px 2px; border: 1px dashed rgba(230, 255, 210, 0.35); pointer-events: none; }

/* ---- the price buttons: the pack's size chip, the price in the display numerals with a coin, the price a unit, the
   brass «Выгодно» tag (it was a bare yellow dot) and «−N %» against the card's smallest pack */
.sc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 7px; padding: 10px 12px 14px; }
.sc-opts.n1 { grid-template-columns: 1fr; }
.sc-opts.odd > .sc-opt:last-child { grid-column: 1 / -1; }
.sc-opt { position: relative; display: grid; gap: 3px; align-content: center; justify-items: center; min-width: 0; min-height: 70px; padding: 9px 5px 7px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(214, 170, 82, 0.45); color: #f2e6c8; font: 500 12px/1.2 var(--sans);
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.13), rgba(245, 196, 81, 0.03) 70%), #0f1420;
  box-shadow: inset 0 0 10px rgba(245, 196, 81, 0.07), inset 0 1px 0 rgba(255, 236, 190, 0.08); transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.sc-opt .q { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px 2px 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(214, 170, 82, 0.3); }
.sc-opt .q img { width: 16px; height: 16px; flex: none; object-fit: contain; border-radius: 4px; }
.sc-opt .q b { font: 800 12.5px/1.1 var(--sans); color: #f6ecd2; letter-spacing: 0.01em; font-variant-numeric: lining-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-opt .p { display: inline-flex; align-items: center; gap: 4px; font: 700 19px/1 var(--display); color: #f7d77e; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 10px rgba(245, 196, 81, 0.2); }
.sc-opt .p img { width: 15px; height: 15px; flex: none; }
.sc-opt .p small { font: 600 12px var(--sans); color: #e3c77c; }
.sc-opt .u { font: 500 11px/1.1 var(--sans); color: #b9b19f; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.sc-opt:hover:not([disabled]) { background: linear-gradient(180deg, rgba(245, 196, 81, 0.26), rgba(245, 196, 81, 0.08) 70%), #121826; border-color: var(--gold1); box-shadow: inset 0 0 14px rgba(245, 196, 81, 0.15), 0 0 14px rgba(245, 196, 81, 0.12); }
.sc-opt:focus-visible { outline: 2px solid var(--gold1); outline-offset: 2px; }
.sc-opt.best { border-color: rgba(245, 196, 81, 0.85); box-shadow: inset 0 0 12px rgba(245, 196, 81, 0.16), 0 0 12px rgba(245, 196, 81, 0.14); }
.sc-tag { position: absolute; top: -9px; left: 7px; z-index: 1; padding: 2px 8px 2px; border-radius: 4px; cursor: help; color: #2a1a06; font: 800 9.5px/1.25 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #ffe7a0, #e8b443 55%, #b9831f); border: 1px solid #7a5310; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.5); }
.sc-tag.hot { color: #fff3e6; background: linear-gradient(180deg, #f08a55, #c4542a 60%, #8f3515); border-color: #5e200a; }
.sc-off { position: absolute; top: -8px; right: -5px; z-index: 1; padding: 2px 7px 2px 9px; cursor: help; color: #f2ffe6; font: 800 10.5px/1.25 var(--sans); white-space: nowrap; font-variant-numeric: lining-nums;
  background: linear-gradient(180deg, #67a043, #3b6a22); clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sc-off::after { content: ''; position: absolute; right: 0; bottom: -3px; border: solid transparent; border-width: 3px 5px 0 0; border-top-color: #22400f; }
.sc-opt.off { cursor: default; border-color: var(--line2); background: rgba(255, 255, 255, 0.03); box-shadow: none; }
.sc-opt.off .p.why { color: #a4adba; font: 600 11.5px/1.2 var(--sans); white-space: normal; text-align: center; }
.sc-opt.off .q { opacity: 0.75; }
.pd-opts .sc-opt.on { border-color: var(--gold1); background: linear-gradient(180deg, rgba(245, 196, 81, 0.32), rgba(245, 196, 81, 0.1)); box-shadow: inset 0 0 0 1px var(--gold1), 0 0 16px rgba(245, 196, 81, 0.2); }
/* a phone: the packs as rows (the size on the left, the price and its unit on the right) */
@media (max-width: 700px) {
  .sc-opts, .sc-opts.n1 { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 10px 8px 10px; }
  .sc-opts.odd > .sc-opt:last-child { grid-column: auto; }
  .sc-opts .sc-opt { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'q p' 'q u'; justify-items: end; align-items: center; column-gap: 6px; row-gap: 2px; min-height: 46px; padding: 7px 7px 6px; }
  .sc-opts .sc-opt .q { grid-area: q; justify-self: start; padding: 2px 6px 2px 2px; }
  .sc-opts .sc-opt .q img { width: 14px; height: 14px; }
  .sc-opts .sc-opt .q b { font-size: 11.5px; }
  .sc-opts .sc-opt .p { grid-area: p; font-size: 17px; gap: 3px; }
  .sc-opts .sc-opt .p img { width: 12px; height: 12px; }
  .sc-opts .sc-opt .p small { font-size: 11px; }
  .sc-opts .sc-opt .u { grid-area: u; font-size: 10px; }
  .sc-opts .sc-opt .p.why { grid-area: p / p / u / u; font-size: 10.5px; text-align: right; }
  .sc-tag { font-size: 8.5px; left: 5px; padding: 1px 6px; }
  .sc-off { font-size: 10px; }
  .sc-bd { gap: 4px; }
  .bd { height: 24px; min-width: 24px; padding-right: 7px; }
  .bd.io, .bd.md { width: 24px; }
  .bd img, .bd-g { width: 18px; height: 18px; }
  .bd b { font-size: 11.5px; }
  .bd.md b { font-size: 13px; }
  .sc-flag { top: 8px; font-size: 11px; padding: 3px 11px 3px 7px; }
  .shop-buy .p { font-size: 15px; }
}

/* ---- a trail on its patch of sea (site/js/trails.js draws it as the game does) */
.shop-art.sea { padding: 0; background: #0a2430; }
.tr-sea { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pd-art.sea { aspect-ratio: 4 / 3; background: #0a2430; }
.pd-sea.live { height: 170px; background: #0a2430; }
.pd.sheet .pd-art.sea { aspect-ratio: 16 / 9; }
/* a narrow tile with both: the discount drops to the tile's foot, under the brass tag's corner */
.sc-opt { container-type: inline-size; }
@container (max-width: 104px) { .sc-tag + .sc-off { top: auto; bottom: -8px; } }
