/* «Стиль» (26.11.2026): the page of the subscription for the look of a profile, approved by the owner after a look at
   the «Plus» pages of other projects (COMPETITORS.md, section 10). A fitting room comes first: the visitor's own card
   wears the looks picked under it and the page behind it takes the picked painting; the term, the price and the
   button stand beside it; then what the subscription holds and the questions. The looks themselves — nicknames,
   frames, tiles, the paintings behind the page — are css/style-looks.css; this file is the page around them. */

/* «Без фона» shows what a profile without a painting shows: the pagoda under the moon (css/cn.css, profile) */
[data-cn][data-page="style"] { --bg-map: url(/media/cn/bg-top.webp?v=2); }
@media (min-width: 1700px), (min-width: 1100px) and (min-resolution: 1.3dppx) {
    [data-cn][data-page="style"] { --bg-map: url(/media/cn/bg-top-2k.webp?v=1); }
}

.sp-page { padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(56px, 9vh, 96px); }
.sp-room { margin-top: clamp(24px, 3.4vw, 40px); }
.sp-in, .sp-faq { margin-top: clamp(48px, 6vw, 76px); }

/* ── the head ── */
.sp-head { max-width: 720px; }
.sp-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--cn-gold-hi, #ffe2a0); font: 700 12.5px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.sp-kicker::before { content: ""; flex: none; width: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(231, 161, 54, 0), #e7a136); }
.sp-head h1 { margin: 0 0 14px; }
.sp-head .sub { margin: 0; color: var(--soft); font-size: 17px; text-wrap: pretty; }
.sp-from { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 7px 14px 7px 12px; border: 1px solid rgba(231, 161, 54, 0.4); border-radius: 999px; background: rgba(28, 13, 15, 0.78); color: var(--soft); font-size: 14px; }
.sp-from b { color: var(--cn-gold-hi, #ffe2a0); font: italic 800 16px/1 var(--num); }
.sp-from::before { content: "★"; color: #e7a136; font-size: 13px; }

/* ── the room: the card and the picker on the left, the purchase on the right; one column on a phone, where the
   purchase comes after the picker (first try, then buy). The card scrolls with the page: at first it stayed in
   sight and the tiles went by under it, and the owner did not like it covering them («сильно наезжает»). ── */
/* the width that counts is the page's, not the window's: the menu column takes 244 px of a wide window */
.sp-room { container: sp-room / inline-size; }
.sp-room-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.sp-room-in > * { min-width: 0; }
.sp-try { display: flex; flex-direction: column; gap: 18px; }
@container sp-room (min-width: 860px) {
    .sp-room-in { grid-template-columns: minmax(0, 1fr) minmax(300px, 352px); align-items: start; gap: 26px; }
    .sp-buy { position: sticky; top: 16px; }
}

/* ── the card: a small profile on the picked painting, and under it how the look shows in game and in Discord ── */
.sp-card {
    position: relative; isolation: isolate; overflow: hidden; border-radius: 18px;
    border: 1px solid rgba(231, 161, 54, 0.42); background: #120809;
    box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.sp-card-bgs { position: absolute; inset: 0; z-index: -1; }
/* every new painting comes in over the one before it, which is taken away once it is covered */
.sp-card-bgs i { position: absolute; inset: 0; background: var(--img) center 40% / cover no-repeat; animation: sp-fade 340ms var(--ease-out) both; }
.sp-card-bgs::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13, 9, 9, 0.78) 0%, rgba(13, 9, 9, 0.34) 58%, rgba(13, 9, 9, 0.1) 100%), linear-gradient(180deg, rgba(13, 9, 9, 0.35), rgba(13, 9, 9, 0) 30%);
}
@keyframes sp-fade { from { opacity: 0; } }
.sp-card-site, .sp-where { color: rgba(255, 226, 160, 0.78); font: 700 11px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.sp-card-site { position: absolute; top: 14px; left: 18px; margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.sp-card-me { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 12px); min-height: 232px; padding: 34px clamp(16px, 2.4vw, 30px) 18px clamp(4px, 1vw, 14px); }
/* the frame reaches past the avatar (css/style-looks.css: the avatar is 0.52 of the frame), so it keeps room round it */
.sp-card .sp-card-ava { margin: clamp(30px, 3.2vw, 44px); }
.sp-card-face { display: block; width: clamp(84px, 8.2vw, 112px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #120809; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45); }
.sp-card-id { min-width: 0; }
.sp-card-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; min-width: 0; color: #fff; font: italic 900 clamp(27px, 3.3vw, 46px)/1.12 var(--wide); }
.sp-card-name > span:first-child { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.sp-card-name .st-badge { --st-badge: 36px; margin: 0 0 0 4px; }
.sp-card-note { margin: 10px 0 0; color: rgba(236, 226, 222, 0.82); font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

.sp-card-where { display: grid; gap: 7px; padding: 12px 18px 13px; border-top: 1px solid rgba(231, 161, 54, 0.22); background: rgba(9, 5, 6, 0.8); }
.sp-card-where p { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; }
.sp-where { flex: none; width: 82px; white-space: nowrap; }
/* the chat of the game: the character in the colour the game gives it, the name in the colour of the team */
.sp-chat { min-width: 0; overflow: hidden; color: #fff; font: 600 15px/1.35 system-ui, -apple-system, "Segoe UI", var(--sans); white-space: nowrap; text-overflow: ellipsis; text-shadow: 1px 1px 0 #000; }
.sp-chat b { font-weight: 700; }
.sp-chat-name { color: #6ea7e6; }
.sp-chat-arrow { margin: 0 3px; color: #fff; }
/* Discord: a member line with the role, as its member list shows one */
.sp-dc { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sp-dc-name { min-width: 0; overflow: hidden; color: #f2b730; font: 600 15px/1.3 var(--sans); white-space: nowrap; text-overflow: ellipsis; }
.sp-role { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 6px; background: rgba(78, 80, 90, 0.5); color: #ecedf0; font: 600 12.5px/1.25 var(--sans); }
.sp-role i { width: 10px; height: 10px; border-radius: 50%; background: #f2b730; }

/* ── the picker: the tabs of the groups (css/style-looks.css, .st-tabs) and a tile for every look (the tiles too
   are css/style-looks.css, as in the profile) ── */
.sp-pick-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 0 0 10px; }
.sp-dice {
    display: inline-flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border: 1px solid rgba(231, 161, 54, 0.4);
    border-radius: 999px; background: rgba(18, 8, 9, 0.78); color: var(--cn-gold-hi, #ffe2a0); font: 600 14.5px/1 var(--sans); white-space: nowrap;
    cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.sp-dice svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .sp-dice:hover { border-color: rgba(231, 161, 54, 0.7); color: #fff; } }
.sp-dice:active { transform: scale(0.97); }
.sp-hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sp-hint a { color: var(--cn-gold-hi, #ffe2a0); }
.sp-pick .st-pick { min-height: 150px; }
/* the frames carry the character they give in game */
.sp-glyph-tag { position: absolute; z-index: 2; top: 7px; left: 9px; font: 400 17px/1 "KaiTi", "STKaiti", "Kaiti SC", "SimSun", serif; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9); }

/* ── the purchase ── */
.sp-buy {
    padding: 20px 20px 18px; border: 1px solid var(--line-strong); border-radius: 18px;
    background: linear-gradient(180deg, rgba(44, 17, 20, 0.97), rgba(22, 9, 11, 0.97));
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.95);
}
.sp-buy-head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.sp-buy-head .st-ava { margin: 13px; }
.sp-buy-head .st-ava img:first-child { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sp-buy-head h2 { margin: 0; font: italic 900 26px/1 var(--wide); }
.sp-buy-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.sp-status { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(76, 195, 138, 0.1); color: var(--soft); font-size: 14px; line-height: 1.4; }
.sp-status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--live, #4cc38a); box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.18); }
.sp-status b { color: #fff; }
.sp-label { margin: 0 0 8px; color: var(--muted); font: 700 11.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.sp-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 6, 6, 0.55); }
.sp-term {
    display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 58px; padding: 8px 2px; border: 1px solid transparent; border-radius: 9px;
    background: none; color: var(--soft); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease;
}
.sp-term b { font: italic 800 15px/1 var(--wide); white-space: nowrap; }
.sp-term small { color: #ff8f6e; font: 700 12px/1 var(--num); }
.sp-term[aria-checked="true"] { border-color: rgba(255, 214, 130, 0.88); background: rgba(96, 20, 20, 0.85); color: #fff; box-shadow: 0 8px 20px -12px rgba(255, 150, 60, 0.75); }
.sp-term[aria-checked="true"] small { color: var(--cn-gold-hi, #ffe2a0); }
@media (hover: hover) and (pointer: fine) { .sp-term[aria-checked="false"]:hover { background: rgba(60, 20, 22, 0.6); color: #fff; } }
.sp-term:active { transform: scale(0.97); }
.sp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 0; }
.sp-price b { color: #fff; font: italic 900 48px/1 var(--num); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sp-price s { color: var(--muted); font: 500 17px/1 var(--sans); }
.sp-price-sub { margin: 6px 0 16px; color: var(--muted); font-size: 14px; }
.sp-add { width: 100%; padding: 15px 18px; font-size: 16px; font-weight: 700; }
.sp-add.in-cart { border-color: rgba(231, 161, 54, 0.55); background: rgba(42, 18, 21, 0.95); color: var(--cn-gold-hi, #ffe2a0); }
.sp-add.in-cart:hover { background: rgba(60, 22, 26, 0.95); }
.sp-wear { width: 100%; margin-top: 8px; }
.sp-glyph-switch { display: flex; margin-top: 14px; }
.sp-wear:disabled { opacity: 0.55; cursor: default; }
.sp-wear:disabled:hover { background: transparent; color: inherit; border-color: rgba(242, 183, 48, 0.5); }
.sp-msg { min-height: 0; margin: 8px 0 0; color: var(--soft); font-size: 13.5px; }
.sp-msg:empty { display: none; }
.sp-to-profile { display: inline-block; margin-top: 10px; color: var(--cn-gold-hi, #ffe2a0); font-size: 14px; }
.sp-notes { display: grid; gap: 7px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--soft); font-size: 13.5px; line-height: 1.35; }
.sp-notes li { display: flex; align-items: flex-start; gap: 9px; }
.sp-notes svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #e7a136; }

/* ── what it holds ── */
.sp-in h2, .sp-faq h2 { margin: 0 0 18px; }
.sp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sp-item { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(28, 13, 15, 0.9); }
.sp-item.is-new {
    border-color: rgba(231, 161, 54, 0.55);
    background: linear-gradient(135deg, rgba(96, 20, 20, 0.6), rgba(28, 13, 15, 0.94) 62%);
    box-shadow: 0 16px 36px -26px rgba(255, 120, 40, 0.75);
}
.sp-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #3c1519, #1a0a0c 72%); box-shadow: inset 0 0 0 1px rgba(231, 161, 54, 0.45); color: #f0b54a; }
.sp-ico svg { width: 22px; height: 22px; }
.sp-ico.is-glyph { color: #ffd27a; font: 400 25px/1 "KaiTi", "STKaiti", "Kaiti SC", "SimSun", serif; }
.sp-item b { display: block; margin: 3px 0 4px; color: var(--text); font: 700 16px/1.3 var(--sans); }
.sp-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
/* «Новое»: the hexagon of the site's badges, a little askew, on the corner of the card */
.sp-new {
    position: absolute; top: -11px; right: 14px; padding: 6px 2px; border: solid transparent; border-width: 0 10px;
    border-image: var(--cn-hex) 0 24 fill / 0 10px; color: var(--cn-gold-hi, #ffe2a0);
    font: 800 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; rotate: -4deg;
}

/* ── questions ── */
.sp-faq-list { display: grid; gap: 8px; max-width: 880px; }
.sp-q { border: 1px solid var(--line); border-radius: 12px; background: rgba(28, 13, 15, 0.9); transition: border-color 150ms ease; }
.sp-q[open] { border-color: var(--line-strong); }
.sp-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--text); font: 600 16px/1.35 var(--sans); list-style: none; cursor: pointer; }
.sp-q summary::-webkit-details-marker { display: none; }
.sp-q summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid #e7a136; border-bottom: 2px solid #e7a136; rotate: 45deg; translate: 0 -2px; transition: rotate 200ms var(--ease-out), translate 200ms var(--ease-out); }
.sp-q[open] summary::after { rotate: 225deg; translate: 0 2px; }
@media (hover: hover) and (pointer: fine) { .sp-q summary:hover { color: #fff; } }
.sp-q > div { padding: 0 18px 16px; color: var(--soft); }
.sp-q > div p { margin: 0; }
.sp-q > div a { display: inline-block; margin-top: 8px; color: var(--cn-gold-hi, #ffe2a0); }

/* ── a phone: the card gets smaller, so it can stay in sight above the tiles ── */
@media (max-width: 640px) {
    .sp-head .sub { font-size: 16px; }
    .sp-card { border-radius: 14px; }
    .sp-card-me { min-height: 0; padding: 26px 12px 10px 0; }
    .sp-card .sp-card-ava { margin: 24px; }
    .sp-card-face { width: 62px; }
    .sp-card-name { font-size: 23px; }
    .sp-card-name .st-badge { --st-badge: 26px; }
    .sp-card-note { display: none; }
    .sp-card-site { top: 10px; left: 14px; }
    .sp-card-where { gap: 5px; padding: 9px 14px 10px; }
    .sp-where { width: 70px; font-size: 10px; letter-spacing: 0.1em; }
    .sp-chat { font-size: 13.5px; }
    .sp-dc-name { font-size: 13.5px; }
    .sp-role { font-size: 11.5px; padding: 2px 8px 2px 6px; }
    .sp-dice { height: 36px; font-size: 14px; }
    .sp-pick .st-pick { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
    .sp-pick .st-pick.is-round { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sp-price b { font-size: 42px; }
    .sp-item { padding: 14px 14px 14px 12px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-card-bgs i { animation: none; }
    .sp-q summary::after { transition: none; }
}
