/* Each theme's poster: the app's «Оформление» (profile.js openThemes) and the landing's themes (landing.js), with
   its world drawn around Master Wang (js/scenes.js). Loaded after app.css by the app and on its own by the landing,
   which gives it --font, --kai and --han. */

/* «Оформление» (profile.js openThemes): a poster per theme, two to a row, Классика across the top. Each card keeps its
   theme's own colours, type and a scene drawn here around Master Wang standing whole in its costume (van.js poster,
   his «Привет» on a tap), whatever theme is on. Colours are the themes' own tokens (themes/<id>/theme.css); the fonts
   are their files, under names of their own so the active theme's rules don't touch them. */
@font-face { font-family: "TP Unbounded"; font-weight: 800; font-display: swap; src: url(../themes/training/fonts/unbounded-cyrillic-800.woff2?v=bcf1a57cbd) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Unbounded"; font-weight: 800; font-display: swap; src: url(../themes/training/fonts/unbounded-latin-800.woff2?v=35dbe2095e) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Onest"; font-weight: 400; font-display: swap; src: url(../themes/training/fonts/onest-cyrillic-400.woff2?v=0a47f6c9b7) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Onest"; font-weight: 400; font-display: swap; src: url(../themes/training/fonts/onest-latin-400.woff2?v=c250e11bff) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Onest"; font-weight: 400; font-display: swap; src: url(../themes/training/fonts/onest-latin-ext-400.woff2?v=7a95bede8c) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "TP Tenor"; font-weight: 400; font-display: swap; src: url(../themes/ink/fonts/tenor-sans-cyrillic-400-normal.woff2?v=90e606592c) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Tenor"; font-weight: 400; font-display: swap; src: url(../themes/ink/fonts/tenor-sans-latin-400-normal.woff2?v=1dcd56014f) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Literata"; font-weight: 400; font-display: swap; src: url(../themes/ink/fonts/literata-cyrillic-400-normal.woff2?v=aacc11452f) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Literata"; font-weight: 400; font-display: swap; src: url(../themes/ink/fonts/literata-latin-400-normal.woff2?v=8963aa5468) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Literata"; font-weight: 400; font-display: swap; src: url(../themes/ink/fonts/literata-latin-ext-400-normal.woff2?v=08c36cb1d9) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "TP Tektur"; font-weight: 700; font-display: swap; src: url(../themes/city/fonts/tektur-cyrillic-700-normal.woff2?v=46c3927e6d) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Tektur"; font-weight: 700; font-display: swap; src: url(../themes/city/fonts/tektur-latin-700-normal.woff2?v=345a10a1fb) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Golos"; font-weight: 400; font-display: swap; src: url(../themes/city/fonts/golos-text-cyrillic-400-normal.woff2?v=9b9f7a46e4) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Golos"; font-weight: 400; font-display: swap; src: url(../themes/city/fonts/golos-text-latin-400-normal.woff2?v=ed950a118b) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Golos"; font-weight: 400; font-display: swap; src: url(../themes/city/fonts/golos-text-latin-ext-400-normal.woff2?v=643360eef5) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "TP Dela"; font-weight: 400; font-display: swap; src: url(../themes/plum/fonts/dela-gothic-one-cyrillic-400-normal.woff2?v=6054d5dce0) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Dela"; font-weight: 400; font-display: swap; src: url(../themes/plum/fonts/dela-gothic-one-latin-400-normal.woff2?v=ff448d1575) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Nunito"; font-weight: 200 1000; font-display: swap; src: url(../themes/terraces/fonts/nunito-cyrillic-wght-normal.woff2?v=c15c26d255) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Nunito"; font-weight: 200 1000; font-display: swap; src: url(../themes/terraces/fonts/nunito-latin-wght-normal.woff2?v=76388dbfe3) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP Nunito"; font-weight: 200 1000; font-display: swap; src: url(../themes/terraces/fonts/nunito-latin-ext-wght-normal.woff2?v=4fcdc09b70) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "TP Oswald"; font-weight: 700; font-display: swap; src: url(../themes/calendar/fonts/oswald-cyrillic-700-normal.woff2?v=57606f7dce) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP Oswald"; font-weight: 700; font-display: swap; src: url(../themes/calendar/fonts/oswald-latin-700-normal.woff2?v=f691ee17ef) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "TP PT Serif"; font-weight: 400; font-display: swap; src: url(../themes/calendar/fonts/pt-serif-cyrillic-400-normal.woff2?v=2d73e1c04c) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TP PT Serif"; font-weight: 400; font-display: swap; src: url(../themes/calendar/fonts/pt-serif-latin-400-normal.woff2?v=12e1e0d369) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }

/* the card's colours (bg, card, text, hint, brand, on-brand) and type; --fh, --fz, --cx: where Master Wang stands in
   his 360 frame (the figure's height, the gap under his feet, his middle), so the scene can put his feet on its floor */
.tp-standard { --t-card: #FFFFFF; --t-text: #111114; --t-hint: #6D6D72; --t-brand: #FF8A00; --t-on: #1A1209;
  --t-disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; --t-dw: 700; --t-tt: none; --t-ls: 0; --t-body: var(--font); --t-bw: 400;
  --fh: 0.756; --fz: 0.117; --cx: 0.5; }
.tp-training { --t-card: #FFFFFF; --t-text: #121110; --t-hint: #6B675F; --t-brand: #FF6A13; --t-on: #121110;
  --t-disp: "TP Unbounded", "TP Onest", sans-serif; --t-dw: 800; --t-tt: uppercase; --t-ls: 0.01em; --t-body: "TP Onest", var(--font); --t-bw: 400;
  --fh: 0.781; --fz: 0.067; --cx: 0.499; }
.tp-ink { --t-card: #F8FAF8; --t-text: #14181A; --t-hint: #596166; --t-brand: #C0381F; --t-on: #FFF8F2;
  --t-disp: "TP Tenor", "TP Literata", Georgia, serif; --t-dw: 400; --t-tt: none; --t-ls: 0.01em; --t-body: "TP Literata", Georgia, serif; --t-bw: 400;
  --fh: 0.856; --fz: 0.053; --cx: 0.497; }
.tp-city { --t-card: #FBFAFF; --t-text: #171E48; --t-hint: #4C547E; --t-brand: #FF8A1F; --t-on: #2A1400;
  --t-disp: "TP Tektur", "TP Golos", sans-serif; --t-dw: 700; --t-tt: uppercase; --t-ls: 0.03em; --t-body: "TP Golos", var(--font); --t-bw: 400;
  --fh: 0.825; --fz: 0.042; --cx: 0.493; }
.tp-plum { --t-card: #FCF8F1; --t-text: #1B2A5E; --t-hint: #56608A; --t-brand: #D3263B; --t-on: #FFF8F0;
  --t-disp: "TP Dela", "TP Golos", sans-serif; --t-dw: 400; --t-tt: none; --t-ls: 0; --t-body: "TP Golos", var(--font); --t-bw: 400;
  --fh: 0.792; --fz: 0.064; --cx: 0.543; }
.tp-terraces { --t-card: #FFFCF5; --t-text: #2A2216; --t-hint: #695C49; --t-brand: #2F6B3A; --t-on: #FFFBEF;
  --t-disp: "TP Nunito", var(--font); --t-dw: 800; --t-tt: none; --t-ls: 0; --t-body: "TP Nunito", var(--font); --t-bw: 600;
  --fh: 0.797; --fz: 0.061; --cx: 0.478; }
.tp-calendar { --t-card: #FCF8EF; --t-text: #1A1612; --t-hint: #6B6155; --t-brand: #C42B1E; --t-on: #FFF8EF;
  --t-disp: "TP Oswald", "Arial Narrow", sans-serif; --t-dw: 700; --t-tt: uppercase; --t-ls: 0.03em; --t-body: "TP PT Serif", Georgia, serif; --t-bw: 400;
  --fh: 0.828; --fz: 0.072; --cx: 0.49; }
[data-scheme="dark"] .tp-standard { --t-card: #1C1C1F; --t-text: #F2F2F5; --t-hint: #98989F; --t-brand: #FF9A2E; --t-on: #1A1209; }
[data-scheme="dark"] .tp-training { --t-card: #1A1917; --t-text: #F4F1EA; --t-hint: #A09A90; --t-brand: #FF7A26; --t-on: #121110; }
[data-scheme="dark"] .tp-ink { --t-card: #1B1F22; --t-text: #E6E8E3; --t-hint: #97A09D; --t-brand: #C63D27; --t-on: #FFF6F0; }
[data-scheme="dark"] .tp-city { --t-card: #172250; --t-text: #F1F3FF; --t-hint: #B8C1E8; --t-brand: #FF8A1F; --t-on: #1E0F02; }
[data-scheme="dark"] .tp-plum { --t-card: #1B2349; --t-text: #F4EBDD; --t-hint: #A6A8C6; --t-brand: #FF5468; --t-on: #1A0710; }
[data-scheme="dark"] .tp-terraces { --t-card: #14213A; --t-text: #EEF0EA; --t-hint: #A3AEBE; --t-brand: #6CC77A; --t-on: #0B1A10; }
[data-scheme="dark"] .tp-calendar { --t-card: #211D18; --t-text: #F1E9DA; --t-hint: #A99D8B; --t-brand: #B8301F; --t-on: #FFF6EE; }

.tp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tp-card { position: relative; display: flex; min-width: 0; container-type: inline-size; border-radius: 20px; overflow: hidden;
  background: var(--t-card); color: var(--t-text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t-text) 12%, transparent);
  transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease); }
.tp-card:has(.tp-pick:active) { transform: scale(0.98); }
.tp-card.on { box-shadow: 0 0 0 3px var(--t-brand); }
.tp-card:has(.tp-pick:focus-visible) { outline: 3px solid var(--t-brand); outline-offset: 3px; }
.tp-pick { appearance: none; display: flex; flex-direction: column; flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tp-pick:focus-visible { outline: none; }
/* «Применить и посмотреть» (Vitali 17.11: a button to see, not an icon on the poster): under the card's text, in the theme's colour */
.tp-card { flex-direction: column; }
.tp-peek { flex: none; margin: 0 10px 10px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 12px; background: var(--t-brand); color: var(--t-on);
  font: 650 13px/1.2 var(--font); text-align: center; text-wrap: balance; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tp-peek:active { opacity: 0.85; }
.tp-peek:focus-visible { outline: 2px solid var(--t-text); outline-offset: 2px; }
.tp-card.wide .tp-peek { position: absolute; left: calc(46% + 16px); right: 12px; bottom: 12px; margin: 0; }
.tp-cap { display: grid; gap: 3px; align-content: start; padding: 10px 12px 13px; }
.tp-name { font-family: var(--t-disp); font-weight: var(--t-dw); text-transform: var(--t-tt); letter-spacing: var(--t-ls); font-size: 16px; line-height: 1.15;
  overflow-wrap: break-word; hyphens: auto; }
.tp-training .tp-name { font-size: 14px; }
.tp-about { font-family: var(--t-body); font-weight: var(--t-bw); font-size: 13px; line-height: 1.3; color: var(--t-hint); }
.tp-card.wide { grid-column: 1 / -1; }
.tp-card.wide .tp-pick { flex-direction: row; }
.tp-card.wide .tp-scene { aspect-ratio: auto; width: 46%; min-height: 150px; flex: none; }
.tp-card.wide .tp-cap { align-content: center; padding: 14px 16px 66px; } /* its button sits under the text, beside the poster: the text ends above it (320 px) */
.tp-card.wide .tp-name { font-size: 19px; }
/* on the floor in the corner, where no scene has its sign («Посмотреть» has the other one) */
.tp-mark { z-index: 8; left: 6%; bottom: 5%; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--t-brand); color: var(--t-on); box-shadow: 0 0 0 2px var(--t-card); }
.tp-mark .i { width: 15px; height: 15px; stroke-width: 3; }

.tp-scene { position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; aspect-ratio: 1 / 1.08; }
.tp-scene > * { position: absolute; }
/* Master Wang (van.css .full: his 360 frame, the box 90% of it tall) sized so the figure is --wh of the scene tall
   with his feet on its --floor */
.tp-scene > .van-clip.tp-van { position: absolute; aspect-ratio: 1 / 0.9; width: auto; height: calc(0.9 * var(--wh, 80%) / var(--fh)); z-index: 5;
  bottom: calc(var(--floor, 6%) - (0.1 - var(--fz)) * var(--wh, 80%) / var(--fh)); left: var(--wx, 50%); transform: translateX(calc(var(--cx) * -100%)); }
.tp-scene > .van-clip.tp-van::before { display: none; }

/* Классика: Telegram's calm and the orange glow */
.tp-scene.tp-standard { --s1: #FFF6EA; --s2: #FFE2C2;
  background: radial-gradient(55% 50% at 50% 60%, color-mix(in srgb, var(--t-brand) 34%, transparent), transparent 72%), linear-gradient(180deg, var(--s1), var(--s2)); }
[data-scheme="dark"] .tp-scene.tp-standard { --s1: #2A2119; --s2: #1C1C1F; }
.tp-ring { left: 50%; top: 52%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0.9cqw dashed color-mix(in srgb, var(--t-brand) 45%, transparent); }
.tp-shadow { left: 50%; bottom: 3%; width: 56%; height: 9%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), transparent); }
.tp-plane { right: 9%; top: 10%; width: 13cqw; height: 13cqw; color: color-mix(in srgb, var(--t-brand) 75%, var(--t-text)); }

/* Спортзал: the wall, a barbell racked behind him (plates at both ends, so it reads as one), the rubber floor and its
   lane line */
.tp-scene.tp-training { --g-wall: #E6E1D7; --g-floor: #2B2926; --g-post: #34312D; --g-bar: #9C978F;
  background: repeating-linear-gradient(90deg, transparent 0 24%, rgba(0, 0, 0, 0.05) 24% 24.6%), linear-gradient(180deg, var(--g-wall) 0 72%, var(--g-floor) 72%); }
[data-scheme="dark"] .tp-scene.tp-training { --g-wall: #1C1B19; --g-floor: #070606; --g-post: #4A4640; --g-bar: #8A857E; }
.tp-rack { left: 15%; right: 15%; top: 34%; bottom: 28%; border: solid var(--g-post); border-width: 0 2.6cqw; }
.tp-bar { left: 3%; right: 3%; top: 32%; height: 1.8cqw; border-radius: 1cqw; background: var(--g-bar); }
.tp-bar::before, .tp-bar::after { content: ""; position: absolute; top: 50%; width: 8cqw; height: 30cqw; transform: translateY(-50%); border-radius: 1cqw;
  background: linear-gradient(var(--t-brand), var(--t-brand)) 0 50% / 4.6cqw 100% no-repeat, linear-gradient(#121110, #121110) 100% 50% / 3cqw 72% no-repeat; }
.tp-bar::before { left: 1cqw; transform: translateY(-50%) scaleX(-1); }
.tp-bar::after { right: 1cqw; }
.tp-lane { left: 0; right: 0; bottom: 28%; height: 1.4cqw; background: var(--t-brand); }
.tp-gfloor { left: -30%; right: -30%; bottom: 0; height: 28%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 0.8cqw, transparent 0.8cqw 12cqw);
  transform: perspective(40cqw) rotateX(35deg); transform-origin: 50% 100%; }

/* Каллиграфия: rice paper, ink-wash mountains, a line of brush writing and the red seal 王 (the columns here are one
   character wide rather than vertical-rl: a CJK font without vertical metrics stacks those in one place) */
.tp-scene.tp-ink { --i-paper: #EEF1EF; --i-dot: rgba(0, 0, 0, 0.05); --i-m1: rgba(20, 24, 26, 0.16); --i-m2: rgba(20, 24, 26, 0.32);
  background: radial-gradient(var(--i-dot) 0.35cqw, transparent 0.5cqw) 0 0 / 4cqw 4cqw, radial-gradient(var(--i-dot) 0.3cqw, transparent 0.45cqw) 1.7cqw 2.3cqw / 6.3cqw 6.3cqw, var(--i-paper); }
[data-scheme="dark"] .tp-scene.tp-ink { --i-paper: #131618; --i-dot: rgba(255, 255, 255, 0.05); --i-m1: rgba(230, 232, 227, 0.09); --i-m2: rgba(230, 232, 227, 0.17); }
.tp-m1 { left: -5%; right: -5%; bottom: 24%; height: 48%; background: linear-gradient(180deg, var(--i-m1), transparent 95%);
  clip-path: polygon(0 100%, 0 70%, 12% 45%, 22% 62%, 38% 20%, 52% 55%, 63% 38%, 78% 70%, 90% 48%, 100% 64%, 100% 100%); }
.tp-m2 { left: -10%; right: -10%; bottom: 10%; height: 42%; background: linear-gradient(180deg, var(--i-m2), transparent 90%);
  clip-path: polygon(0 100%, 0 60%, 15% 30%, 27% 55%, 40% 40%, 55% 75%, 70% 25%, 84% 58%, 100% 40%, 100% 100%); }
.tp-stroke { left: 12%; right: 10%; bottom: 4%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, var(--t-text) 25%, transparent); opacity: 0.45; }
.tp-poem { left: 8%; top: 8%; width: 1em; text-align: center; font: 10cqw/1.02 var(--kai); color: var(--t-text); opacity: 0.72; }
.tp-seal { right: 8%; top: 9%; width: 12cqw; height: 12cqw; display: grid; place-items: center; background: var(--t-brand); color: var(--t-on);
  border-radius: 1.4cqw; font: 8.5cqw/1 var(--kai); transform: rotate(-5deg); }

/* Киберпанк: a dusk skyline with lit windows, a neon moon and sign, the glowing grid floor, scanlines */
.tp-scene.tp-city { --c-sky1: #CBC2EF; --c-sky2: #EEC6DF; --c-sky3: #F8D6C6; --c-bld: #2B2C66; --c-floor: #24255A; --c-grid: rgba(53, 230, 182, 0.85);
  background: linear-gradient(180deg, var(--c-sky1), var(--c-sky2) 55%, var(--c-sky3)); }
[data-scheme="dark"] .tp-scene.tp-city { --c-sky1: #090F30; --c-sky2: #21155A; --c-sky3: #4A1858; --c-bld: #060A24; --c-floor: #080C29; }
.tp-moon { right: 11%; top: 8%; width: 17cqw; height: 17cqw; border-radius: 50%; border: 0.9cqw solid #FFCF7A; box-shadow: 0 0 3cqw #FFCF7A, inset 0 0 2.4cqw rgba(255, 207, 122, 0.6); }
.tp-sign { left: 9%; top: 8%; width: 1em; text-align: center; padding: 1cqw 1.6cqw; border: 0.6cqw solid #35E6B6; border-radius: 1.6cqw; background: rgba(6, 10, 36, 0.55);
  font: 700 8cqw/1.05 var(--han); color: #35E6B6; text-shadow: 0 0 1.2cqw #35E6B6, 0 0 4cqw rgba(53, 230, 182, 0.8); box-shadow: 0 0 3cqw rgba(53, 230, 182, 0.55), inset 0 0 2cqw rgba(53, 230, 182, 0.35); }
.tp-sky { left: 0; right: 0; bottom: 25%; height: 46%;
  background: radial-gradient(circle, rgba(255, 207, 122, 0.95) 0.32cqw, transparent 0.55cqw) 0.8cqw 1.2cqw / 3cqw 3.8cqw, var(--c-bld);
  clip-path: polygon(0 100%, 0 40%, 8% 40%, 8% 22%, 16% 22%, 16% 55%, 24% 55%, 24% 10%, 31% 10%, 31% 36%, 40% 36%, 40% 62%, 48% 62%, 48% 28%, 56% 28%, 56% 4%, 63% 4%, 63% 46%, 72% 46%, 72% 30%, 82% 30%, 82% 52%, 90% 52%, 90% 16%, 96% 16%, 96% 70%, 100% 70%, 100% 100%); }
.tp-grid { left: -60%; right: -60%; bottom: 0; height: 26%;
  background: linear-gradient(90deg, var(--c-grid) 0.4cqw, transparent 0.4cqw) 0 0 / 8cqw 100%, linear-gradient(var(--c-grid) 0.4cqw, transparent 0.4cqw) 0 0 / 100% 4.5cqw, var(--c-floor);
  transform: perspective(30cqw) rotateX(48deg); transform-origin: 50% 100%; }
.tp-scan { inset: 0; z-index: 6; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px); pointer-events: none; }

/* Поп-арт: a page of soft halftone dots, a pale round panel behind him and a comic «БАХ!» (Vitali 28.10: a red burst
   drowned him out) */
.tp-scene.tp-plum { --p-bg: #F6EFE4; --p-dot: rgba(27, 42, 94, 0.1); --p-halo: rgba(211, 38, 59, 0.1);
  background: radial-gradient(circle, var(--p-dot) 0.6cqw, transparent 0.8cqw) 0 0 / 4cqw 4cqw, var(--p-bg); }
[data-scheme="dark"] .tp-scene.tp-plum { --p-bg: #121833; --p-dot: rgba(244, 235, 221, 0.08); --p-halo: rgba(255, 84, 104, 0.12); }
.tp-halo { left: 50%; top: 50%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--p-halo);
  box-shadow: 0 0 0 0.6cqw color-mix(in srgb, var(--t-text) 14%, transparent); }
.tp-word { left: 6%; top: 6%; z-index: 6; font: 400 8cqw/1 "TP Dela", sans-serif; color: var(--t-card); -webkit-text-stroke: 0.6cqw var(--t-text); paint-order: stroke fill; transform: rotate(-9deg); }

/* Урожай: a morning sky with the sun (a moon at night) over three terraces with sprouts and their water lines */
.tp-scene.tp-terraces { --h-sky1: #F8DA9C; --h-sky2: #FBF4E6; --h-sun: #E2B23A; --h-g1: #9BC273; --h-g2: #5E9A4E; --h-g3: #2F6B3A; --h-water: rgba(255, 255, 255, 0.6); --h-sprout: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, var(--h-sky1), var(--h-sky2) 58%); }
[data-scheme="dark"] .tp-scene.tp-terraces { --h-sky1: #0A1220; --h-sky2: #17263F; --h-sun: #E9E3C9; --h-g1: #2C5634; --h-g2: #204528; --h-g3: #15331D; --h-water: rgba(132, 214, 144, 0.4); --h-sprout: rgba(132, 214, 144, 0.22); }
.tp-sun { right: 13%; top: 9%; width: 21cqw; height: 21cqw; border-radius: 50%; background: var(--h-sun);
  box-shadow: 0 0 0 2.4cqw color-mix(in srgb, var(--h-sun) 22%, transparent), 0 0 9cqw var(--h-sun); }
.tp-t { border-radius: 50% 50% 0 0 / 100% 100% 0 0; box-shadow: inset 0 1cqw 0 var(--h-water);
  background: repeating-linear-gradient(90deg, var(--h-sprout) 0 0.5cqw, transparent 0.5cqw 3.4cqw) 0 2cqw / 100% 5cqw no-repeat, var(--g); }
.tp-t1 { left: -30%; right: -30%; bottom: 30%; height: 34%; --g: var(--h-g1); }
.tp-t2 { left: -20%; right: -45%; bottom: 15%; height: 30%; --g: var(--h-g2); }
.tp-t3 { left: -45%; right: -20%; bottom: -6%; height: 28%; --g: var(--h-g3); }

/* Старый Шанхай: art-deco rays, a tear-off calendar leaf, a red round stamp and the tiled floor */
.tp-scene.tp-calendar { --k-bg: #EEE6D6; --k-ray: rgba(196, 43, 30, 0.08); --k-t1: #D8CBB2; --k-t2: #E6DCC8; --wx: 62%;
  background: repeating-conic-gradient(from -90deg at 50% 115%, var(--k-ray) 0 5deg, transparent 5deg 10deg), var(--k-bg); }
[data-scheme="dark"] .tp-scene.tp-calendar { --k-bg: #14110E; --k-ray: rgba(240, 106, 85, 0.08); --k-t1: #2A231C; --k-t2: #1E1914; }
.tp-page { left: 5%; top: 9%; width: 29%; padding: 5cqw 0 4cqw; display: grid; gap: 1cqw; text-align: center; background: var(--t-card); border-radius: 1cqw;
  transform: rotate(-4deg); box-shadow: 0 0.6cqw 0 rgba(0, 0, 0, 0.08), 0 3cqw 6cqw rgba(0, 0, 0, 0.16); }
.tp-page::before { content: ""; position: absolute; left: 0; right: 0; top: -1.4cqw; height: 2.8cqw;
  background: radial-gradient(circle, var(--k-bg) 0.9cqw, transparent 1.1cqw) 0 0 / 4cqw 2.8cqw repeat-x; }
.tp-page small { font: 3.8cqw/1 var(--kai); color: var(--t-hint); }
.tp-page b { font: 700 14cqw/0.9 "TP Oswald", "Arial Narrow", sans-serif; color: var(--t-brand); }
.tp-stamp { right: 9%; top: 11%; width: 19cqw; height: 19cqw; border-radius: 50%; display: grid; place-items: center; color: var(--t-brand);
  border: 0.7cqw solid var(--t-brand); box-shadow: inset 0 0 0 1cqw var(--k-bg), inset 0 0 0 1.5cqw var(--t-brand); font: 700 8cqw/1 var(--kai); transform: rotate(14deg); opacity: 0.88; }
.tp-tiles { left: 0; right: 0; bottom: 0; height: 13%; border-top: 0.9cqw solid var(--t-brand); background: repeating-linear-gradient(90deg, var(--k-t1) 0 9cqw, var(--k-t2) 9cqw 18cqw); }

/* a theme that needs Pro, by its name */
.tp-pro { display: inline-block; vertical-align: 2px; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--t-brand);
  color: var(--t-on); font: 700 10px/1.4 var(--font); letter-spacing: 0.04em; text-transform: none; }
