:root { --ink: #07070f; --deep: #0a0b30; --night: #0d0f4a; --blue: #2c3fe8; --wood: #f29a22; --pink: #ff2f6e; --cream: #f3ead2; --cyan: #00f0d8; --body: "Onest", "Noto Sans SC", system-ui, sans-serif; --ui: "Unbounded", "Onest", "Noto Sans SC", system-ui, sans-serif; --paint: "Rubik Wet Paint", "ZCOOL QingKe HuangYou", system-ui, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--deep); overflow: hidden; touch-action: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

#view { position: fixed; inset: 0; overflow: hidden; cursor: grab; }
#view.grabbing { cursor: grabbing; }
#stage canvas { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }

#line { position: fixed; left: 16px; right: 16px; bottom: 9vh; z-index: 5; text-align: center; color: var(--cream); font-family: var(--paint); font-size: clamp(20px, 3.4vw, 40px); text-shadow: 0 0 18px var(--deep), 0 0 4px var(--deep); pointer-events: none; animation: pop .8s ease-out; }

#panel { position: fixed; inset: 0; z-index: 10; background: rgba(10,11,48,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--cream); font-family: var(--paint); text-align: center; padding: 16px; animation: pop .25s ease-out; cursor: pointer; }
#panel-title { font-size: clamp(40px, 9vw, 110px); line-height: 1; }
#panel-sub { font-size: clamp(20px, 3vw, 32px); color: var(--wood); }
#diary { position: fixed; inset: 0; z-index: 10; background: rgba(10,11,48,.9); display: flex; justify-content: center; align-items: center; padding: 60px 14px 24px; perspective: 1800px; }
#book { position: relative; width: min(640px, 100%); height: min(860px, 100%); transform-style: preserve-3d; animation: book-in .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes book-in { from { transform: translateY(40px) rotateX(35deg) scale(.4); opacity: 0; } }
#diary-page { position: absolute; inset: 0; overflow: auto; touch-action: pan-y; overscroll-behavior: contain; scrollbar-width: none; padding: 34px 26px 40px 62px; border-radius: 4px 10px 10px 4px; color: #17141f; font: 400 clamp(14px, 1.15vw, 17px)/2.1 "Rock Salt", cursive; background: linear-gradient(90deg, transparent 46px, rgba(230,40,70,.55) 46px 48px, transparent 48px), repeating-linear-gradient(transparent 0 calc(2.1em - 1px), rgba(40,80,200,.22) calc(2.1em - 1px) 2.1em), #f4efe2; background-attachment: local; box-shadow: inset 14px 0 18px -10px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.6); }
#diary-page p { margin: 0 0 2.1em; }
#diary-page p:nth-child(odd) { transform: rotate(-.6deg); }
#diary-page p:nth-child(even) { transform: rotate(.5deg) translateX(4px); }
#diary-clock { margin-bottom: 1.05em; color: #d81a3a; transform: rotate(-2.5deg); transform-origin: 0 50%; }
#diary-clock b { font-weight: 400; font-variant-numeric: tabular-nums; }
#diary-page #diary-clock .big { font-size: 2.2em; line-height: 1.5; }
#diary-page .days { font-weight: 400; color: #d81a3a; font-size: 1.15em; margin: 0 .3em 0 .15em; }
#diary-page .w { display: inline-block; clip-path: inset(-40% 100% -40% 0); }
#diary.write .w { animation: ink var(--d) linear var(--t) forwards; }
#diary.done .w { animation: none; clip-path: none; }
@keyframes ink { to { clip-path: inset(-40% -10% -40% 0); } }
#cover { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; animation: cover-open 1s cubic-bezier(.55,.05,.3,1) .4s forwards; pointer-events: none; }
#cover i { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; backface-visibility: hidden; }
#cover i:first-child { background: url(../img/skins/diary.webp) center / cover, #2a1fa8; box-shadow: inset 10px 0 14px -6px rgba(0,0,0,.5), 0 18px 40px rgba(0,0,0,.6); border: 3px solid var(--deep); }
#cover i:last-child { transform: rotateY(180deg); background: #d8d0bd; box-shadow: inset -14px 0 18px -10px rgba(0,0,0,.35); }
@keyframes cover-open { 0% { transform: rotateY(0); } 85% { opacity: 1; } 100% { transform: rotateY(-178deg); opacity: 0; } }
#diary-close { position: fixed; top: 14px; right: 14px; z-index: 1; padding: 8px 16px 10px; border-radius: 99px; border: 1.5px solid var(--cream); background: var(--deep); color: var(--cream); font: 600 20px/1 var(--body); cursor: pointer; transition: transform .3s cubic-bezier(.2,1.9,.4,1); }
#diary-close:hover { transform: scale(1.1); }
html[lang="ru"] #diary-page { font-family: "Neucha", cursive; font-size: clamp(19px, 1.5vw, 23px); }
#easel { position: fixed; inset: 0; z-index: 10; background: rgba(10,11,48,.82); display: flex; align-items: center; justify-content: center; padding: 60px 16px 24px; animation: fade .25s both; }
#sheet { position: relative; width: min(460px, 100%); padding: 46px 34px 36px; background: #f4efe2; color: #17141f; font: 400 clamp(15px, 1.2vw, 18px)/1.9 "Rock Salt", cursive; box-shadow: 0 24px 50px rgba(0,0,0,.6); rotate: -2deg; animation: sheet-in .6s cubic-bezier(.2,1.4,.4,1) both; }
html[lang="ru"] #sheet { font-family: "Neucha", cursive; font-size: clamp(20px, 1.6vw, 24px); }
html[lang="zh-CN"] #sheet { font-family: "Long Cang", cursive; font-size: clamp(21px, 1.7vw, 26px); }
@keyframes sheet-in { from { transform: translateY(-70vh) rotate(-18deg); } }
#sheet .tape { position: absolute; top: -14px; width: 120px; height: 32px; background: rgba(236,222,186,.82); box-shadow: 0 1px 2px rgba(0,0,0,.2); transform-origin: 50% 50%; animation: tape .25s ease-out .45s both; }
#sheet .tape:first-child { left: -26px; rotate: -32deg; }
#sheet .tape:nth-child(2) { right: -26px; rotate: 30deg; }
@keyframes tape { from { scale: 0 1; opacity: 0; } }
#stamp { display: inline-block; margin-bottom: 18px; padding: 8px 14px 7px; border: 4px solid var(--pink); border-radius: 6px; color: var(--pink); font: 900 clamp(15px, 1.3vw, 19px)/1 var(--ui); letter-spacing: .06em; rotate: -7deg; opacity: .88; mix-blend-mode: multiply; animation: stamp .35s cubic-bezier(.3,1.6,.5,1) .7s both; }
@keyframes stamp { 0% { scale: 3; opacity: 0; } 60% { opacity: .9; } 100% { scale: 1; opacity: .88; } }
#sheet-title { font-size: 1.6em; line-height: 1.3; margin-bottom: 6px; color: #17141f; }
#sheet-title:empty { display: none; }
#sheet-text, #sheet-title, #sheet-go { animation: fade .5s ease-out .95s both; }
#sheet-go { margin-top: 14px; padding: 0 2px; border: 0; background: linear-gradient(transparent 58%, var(--cyan) 58%, var(--cyan) 92%, transparent 92%); color: #17141f; font: inherit; cursor: pointer; transition: transform .3s cubic-bezier(.2,1.9,.4,1); }
#sheet-go:hover { transform: scale(1.06) rotate(-1deg); }
#easel-close { position: fixed; top: 14px; right: 14px; padding: 8px 16px 10px; border-radius: 99px; border: 1.5px solid var(--cream); background: var(--deep); color: var(--cream); font: 600 20px/1 var(--body); cursor: pointer; }
html[lang="zh-CN"] #diary-page { font-family: "Long Cang", cursive; font-size: clamp(20px, 1.6vw, 25px); }
#lang-wrap { position: fixed; left: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 21; }
#intro { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 24px 20px 90px; background: rgba(10,11,48,.72); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); color: var(--cream); text-align: center; transition: opacity .7s, visibility 0s .7s; }
#intro.gone { opacity: 0; visibility: hidden; pointer-events: none; }
#intro-in { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
#intro-logo { font: 400 clamp(46px, 8vw, 112px)/1 var(--paint); color: var(--cream); text-shadow: 5px 5px 0 var(--pink), 9px 9px 0 var(--ink); animation: logo-in .8s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
#intro-line { font: 700 clamp(19px, 2.2vw, 30px)/1.3 var(--ui); max-width: 640px; animation: fade .6s ease-out .35s both; }
#intro-sub { font: 400 clamp(15px, 1.3vw, 19px)/1.4 var(--body); opacity: .75; animation: fade .6s ease-out .55s both; }
#intro-go { margin-top: 10px; padding: 4px 18px 12px; border: 0; background: none; cursor: pointer; font: 400 clamp(34px, 3.6vw, 52px)/1 var(--paint); color: var(--pink); --g: 255,47,110; --hi: 255,160,190; --sh: #4a0c26; animation: fade .5s ease-out both; transition: transform .35s cubic-bezier(.2,1.9,.4,1); }
#intro-go span { display: inline-block; animation: beat 3.2s infinite; }
#intro-go:hover { transform: scale(1.1) rotate(-2deg); }
#intro-go:active { transform: scale(.94); }
#hint { position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); z-index: 5; translate: -50% 0; padding: 11px 18px; border: 2px solid var(--ink); border-radius: 99px; background: var(--deep); color: var(--cream); font: 600 12px/1.3 var(--ui); letter-spacing: .03em; text-align: center; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); pointer-events: none; animation: hint-in .5s cubic-bezier(.2,1.5,.4,1) both; transition: opacity .5s; }
#hint.out { opacity: 0; }
@keyframes hint-in { from { opacity: 0; translate: -50% 30px; } }
#closet { position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .35s cubic-bezier(.2,1.9,.4,1); }
#closet svg { width: 44px; height: 51px; filter: drop-shadow(3px 3px 0 var(--ink)); }
#closet span { font: 700 10px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; color: var(--cream); text-shadow: 0 0 6px var(--ink), 0 0 2px var(--ink); }
#closet .cb { fill: var(--wood); } #closet .ci { fill: var(--night); } #closet .cd { fill: #d9902e; }
#closet .cr { stroke: var(--wood); stroke-width: 2.5; } #closet .ch { fill: none; stroke: var(--cream); stroke-width: 1.5; }
#closet .cj { fill: var(--pink); } #closet .ol { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
#closet:hover { transform: scale(1.12) rotate(4deg); }
#closet:active { transform: scale(.92); }
@media (max-width: 560px) { #hint { white-space: normal; width: calc(100vw - 150px); border-radius: 18px; } }
#lang { position: relative; display: block; width: 58px; height: 51px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .35s cubic-bezier(.2,1.9,.4,1); filter: drop-shadow(3px 3px 0 var(--ink)); }
#lang svg { display: block; width: 100%; height: 100%; }
#lang .lw { fill: #1b25a6; } #lang .bw { fill: var(--blue); } #lang .fl { fill: var(--wood); }
#lang .ol { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
#lang-code { position: absolute; left: 0; right: 0; top: 13px; text-align: center; font: 900 13px/22px var(--ui); color: var(--cream); pointer-events: none; }
#lang:hover { transform: scale(1.12) rotate(-6deg); }
#lang:active { transform: scale(.92); }
#lang.flip { animation: flip .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes flip { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(90deg) scale(1.15); } 100% { transform: rotateY(0) scale(1); } }
#lang-menu { position: absolute; left: 0; bottom: 62px; display: flex; flex-direction: column; gap: 6px; animation: pop .2s ease-out; }
#lang-menu button { padding: 9px 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--deep); color: var(--cream); font: 600 12px/1 var(--ui); white-space: nowrap; text-align: left; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .25s cubic-bezier(.2,1.9,.4,1); }
#lang-menu button:hover { transform: translateX(4px); }
#lang-menu button.on { background: var(--pink); color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

#show { position: fixed; inset: 0; z-index: 6; pointer-events: none; color: var(--cream); font-family: var(--body); animation: fade .5s .25s ease-out both; }
#show button { pointer-events: auto; font: 600 12px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: var(--cream); background: none; border: 0; cursor: pointer; }
#show-close { position: absolute; top: 10px; right: 8px; padding: 14px; }
#show-foot { position: absolute; left: 16px; right: 16px; bottom: max(3vh, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
#show-sides { display: flex; border: 1.5px solid var(--cream); border-radius: 99px; padding: 3px; }
#show-sides button { padding: 10px 18px; border-radius: 99px; transition: background .25s, color .25s; }
#show-sides button.on { background: var(--pink); color: var(--ink); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

#alerts { position: fixed; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.alert { position: absolute; left: 0; top: 0; width: min(440px, 33vw, 56vh); pointer-events: auto; cursor: grab; touch-action: none; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); will-change: transform; }
.alert:active { cursor: grabbing; }
#show.jolt { animation: jolt .22s linear; }
@keyframes jolt { 0%, 100% { transform: none; } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, 1px); } }

#points, #wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#wire { transition: opacity .2s; opacity: 0; }
#wire line { stroke: var(--wood); stroke-width: 2; }
#show .dot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; visibility: hidden; transform: scale(0); transition: transform .5s cubic-bezier(.2,1.9,.4,1) calc(var(--n) * 90ms), visibility 0s calc(var(--n) * 90ms); }
#show.calm .dot { visibility: visible; transform: none; }
#show .dot::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--wood); border: 2.5px solid var(--ink); transition: inset .25s cubic-bezier(.2,1.9,.4,1), background .2s; }
#show .dot::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid var(--wood); animation: pulse 1.8s ease-out infinite; animation-delay: calc(var(--n) * -.36s); }
#show .dot:hover::before, #show .dot.on::before { inset: 9px; }
#show .dot.on::before { background: var(--cream); }
#show .dot:hover::after { animation-duration: .7s; }
@keyframes pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(2); opacity: 0; } }

#strip { position: absolute; right: 24px; top: 46%; display: flex; flex-direction: column; gap: 10px; translate: 0 -50%; }
#show #strip button { width: min(76px, 9.5vh); aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid var(--cream); visibility: hidden; opacity: 0; transform: translateX(60px); transition: transform .5s cubic-bezier(.2,1.5,.4,1) calc(var(--n) * 60ms), opacity .3s calc(var(--n) * 60ms), border-color .2s, visibility 0s calc(var(--n) * 60ms); }
#show.calm #strip button { visibility: visible; opacity: 1; transform: none; }
#show.calm #strip button:hover { transform: translateX(-12px) rotate(-4deg) scale(1.12); border-color: var(--pink); transition-delay: 0s; transition-duration: .3s; }
#strip img { display: block; width: 100%; height: 100%; object-fit: cover; }

#detail { position: absolute; z-index: 1; top: 46%; translate: 0 -50%; right: max(130px, 6vw); width: min(27vw, 400px); pointer-events: auto; cursor: pointer; perspective: 900px; transform: scale(.02); opacity: 0; transition: transform .24s ease-in, opacity .2s; }
#detail.left { right: auto; left: max(24px, 5vw); }
#detail.in { transform: none; opacity: 1; transition: transform .55s cubic-bezier(.2,1.35,.35,1), opacity .15s; }
#detail-in { background: var(--deep); border: 3px solid var(--cream); border-radius: 14px; overflow: hidden; transition: transform .25s ease-out; box-shadow: 0 20px 60px rgba(0,0,0,.7); }
#detail-img { display: block; width: 100%; max-height: 52vh; object-fit: cover; }
#detail-text { padding: 12px 16px 15px; font-family: var(--paint); font-size: clamp(18px, 1.7vw, 26px); line-height: 1.15; }

#zoom { position: fixed; inset: 0; z-index: 9; background: rgba(7,7,15,.94); cursor: zoom-in; touch-action: none; overflow: hidden; animation: fade .25s both; }
#zoom-img { position: absolute; left: 50%; top: 50%; max-width: none; transform: translate(-50%,-50%); will-change: transform; border-radius: 4px; }
#zoom button { position: absolute; font: 600 12px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; color: var(--cream); background: rgba(10,11,48,.7); border: 1.5px solid var(--cream); cursor: pointer; }
#zoom button:hover { background: var(--pink); color: var(--ink); border-color: var(--ink); }
#zoom-close { top: 12px; right: 12px; padding: 13px 16px; border-radius: 99px; }
#zoom-prev, #zoom-next { top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; font-size: 18px !important; }
#zoom-prev { left: 14px; }
#zoom-next { right: 14px; }
#zoom-n { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--cream); font: 600 13px var(--ui); pointer-events: none; text-shadow: 0 0 6px #000; }

#show-buy { display: flex; gap: 10px; align-items: center; visibility: hidden; opacity: 0; transform: translateY(30px); transition: transform .5s cubic-bezier(.2,1.5,.4,1) .15s, opacity .3s .15s, visibility 0s .15s; }
#show.calm #show-buy { visibility: visible; opacity: 1; transform: none; }
#show #show-take { padding: 4px 16px 10px; font: 400 clamp(32px, 3vw, 46px)/1 var(--paint); text-transform: none; letter-spacing: .02em; color: var(--pink); --g: 255,47,110; --hi: 255,160,190; --sh: #4a0c26; transition: transform .35s cubic-bezier(.2,1.9,.4,1); }
#show-take span { display: inline-block; animation: beat 3.2s infinite; }
#show #show-take:hover { transform: scale(1.1) rotate(-2deg); }
#show #show-take:hover span { animation-duration: 1.8s; }
#show #show-take:active { transform: scale(.94); }
#show #show-take[hidden] { display: none; }
#show-tag { position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none; white-space: nowrap; font: 400 clamp(26px, 2.6vw, 40px)/1 var(--paint); color: var(--wood); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--deep); translate: -50% -50%; rotate: -9deg; opacity: 0; white-space: pre-line; text-align: center; }
#show-tag.sold { color: var(--pink); }
#show.calm #show-tag { animation: slap .45s cubic-bezier(.3,1.6,.5,1) .25s both; }
@keyframes slap { 0% { opacity: 0; scale: 2.4; rotate: -24deg; } 60% { opacity: 1; } 100% { opacity: 1; scale: 1; rotate: -9deg; } }

dl { display: grid; grid-template-columns: max-content 1fr; font-size: 15px; line-height: 1.3; }
dt { padding: 8px 18px 8px 0; opacity: .65; border-top: 1px solid rgba(243,234,210,.18); }
dd { padding: 8px 0; border-top: 1px solid rgba(243,234,210,.18); }

#buy, #kassa { position: fixed; z-index: 8; display: flex; flex-direction: column; overflow: hidden; background: var(--deep); color: var(--cream); border: 3px solid var(--ink); font-family: var(--body); animation: power .45s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes power { 0% { clip-path: inset(49.6% 40%); filter: brightness(6); } 45% { clip-path: inset(49.6% 0); filter: brightness(6); } 100% { clip-path: inset(0); filter: none; } }
#buy, #kassa { transform-origin: 0 0; }
#buy-bar, #kassa-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: var(--blue); color: var(--cream); border-bottom: 3px solid var(--ink); font: 700 12px/1 var(--ui); letter-spacing: .06em; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask { display: flex; flex-direction: column; gap: 8px; width: min(440px, 100%); text-align: left; }
.ask textarea { resize: none; line-height: 1.4; }
#kassa .ask button, #buy .ask button { padding: 13px; border-radius: 99px; border: 2px solid var(--ink); background: var(--pink); color: var(--ink); font: 700 12px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.ask-note { min-height: 16px; font-size: 13px; }
#kassa .ask-open, #buy .ask-open { align-self: center; padding: 6px 2px; border: 0; border-radius: 0; background: none; color: var(--cyan); font: 600 14px/1.2 var(--body); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
#kassa #kassa-go { padding: 4px 16px 10px; font: 400 clamp(28px, 2.7vw, 44px)/1 var(--paint); color: #00f0d8; --g: 0,245,220; --hi: 95,255,240; --sh: #04484d; transition: transform .35s cubic-bezier(.2,1.9,.4,1); }
#kassa-go span { display: inline-block; animation: beat 3.2s infinite; }
#kassa #kassa-go:hover { transform: scale(1.1) rotate(-2deg); }
#kassa #kassa-go:hover span { animation-duration: 1.8s; }
#kassa #kassa-go:active { transform: scale(.94); }

#show-row { display: flex; align-items: center; gap: 14px; }

#show-head { position: absolute; z-index: 3; left: max(20px, 3vw); top: 22px; width: min(32vw, 460px); }
#show #show-title { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-align: left; text-transform: none; letter-spacing: 0; white-space: nowrap; font: 400 clamp(22px, 2.3vw, 38px)/1.02 var(--paint); color: #00f0d8; --g: 0,245,220; --hi: 95,255,240; --sh: #04484d; transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2,1.9,.4,1); }
#show-name { display: inline-block; transform-origin: 30% 60%; animation: beat 3.2s infinite, sway 5s ease-in-out infinite alternate; }
#show #show-title:hover { transform: scale(1.06) rotate(-1deg); }
#show #show-title:hover #show-name { animation-duration: 1.8s, 3s; }
#show #show-title:active { transform: scale(.95); }
@keyframes beat {
  0% { scale: 1; text-shadow: 0 0 3px rgb(var(--g)), 0 0 10px rgba(var(--g),.55), 0 0 22px rgba(var(--g),.3), 2px 2px 0 var(--sh); animation-timing-function: cubic-bezier(.38,.12,.85,.55); }
  78% { scale: 1.07; text-shadow: 0 0 3px rgb(var(--hi)), 0 0 12px rgb(var(--g)), 0 0 26px rgba(var(--g),.5), 3px 3px 0 var(--sh); animation-timing-function: cubic-bezier(.3,0,.6,.86); }
  100% { scale: 1; text-shadow: 0 0 3px rgb(var(--g)), 0 0 10px rgba(var(--g),.55), 0 0 22px rgba(var(--g),.3), 2px 2px 0 var(--sh); }
}
@keyframes sway { from { rotate: -2deg; } to { rotate: 2deg; } }


#info { margin-top: 10px; max-height: calc(100vh - 190px); overflow: auto; pointer-events: none; visibility: hidden; transition: visibility 0s .3s; touch-action: pan-y; scrollbar-width: none; overscroll-behavior: contain; }
#info > * { opacity: 0; transform: translateY(22px); filter: blur(8px); transition: transform .22s ease-in, opacity .18s, filter .18s; }
#show.more #info { visibility: visible; pointer-events: auto; transition-delay: 0s; }
#show.more #info > * { opacity: 1; transform: none; filter: none; transition: transform 1s cubic-bezier(.16,1,.3,1), opacity .8s ease-out, filter .8s ease-out; }
#show.more #info > :nth-child(2) { transition-delay: .14s; }
#show.more #info > :nth-child(3) { transition-delay: .32s; }
#show.more #info > :nth-child(4) { transition-delay: .44s; }
#info h3 { font: 700 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--wood); margin-bottom: 12px; }
#info p { font-size: 17px; line-height: 1.45; margin-bottom: 26px; }

@media (orientation: portrait) {
  #show-head { left: 16px; top: 12px; width: auto; right: 16px; pointer-events: none; }
  #show #show-title { max-width: 62vw; font-size: 25px; white-space: normal; }
  #info { background: var(--deep); border: 2px solid transparent; border-radius: 16px; padding: 20px 18px 8px; max-height: 70vh; transition: visibility 0s .25s, background .25s; }
  #show.more #info { border-color: var(--cream); }
  .alert { width: 60vw; }
  #strip { right: 0; left: 0; top: auto; bottom: calc(max(3vh, env(safe-area-inset-bottom)) + 136px); flex-direction: row; justify-content: center; gap: 8px; translate: none; }
  #show #strip button { width: min(52px, 14vw); transform: translateY(40px); }
  #show.calm #strip button:hover { transform: translateY(-6px) scale(1.08); }
  #detail, #detail.left { left: 8vw; right: 8vw; width: auto; top: auto; translate: none; bottom: 5vh; }
  #detail-img { max-height: 40vh; }
  #detail-text { font-size: 21px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  #show-head { width: 34vw; top: 8px; }
  #show #show-title { font-size: 22px; }
  #info { max-height: calc(100vh - 70px); background: var(--deep); }
  #show-foot { left: 24px; right: auto; width: 33vw; align-items: flex-start; text-align: left; }
  #show #show-take { font-size: 28px; }
}

#info-story { white-space: pre-line; }
#lamp { position: fixed; left: 0; top: 0; z-index: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; will-change: transform; background: radial-gradient(circle, rgba(236,220,255,.95) 0, rgba(170,110,255,.5) 2.5%, rgba(110,50,255,.2) 9%, rgba(90,30,255,.12) 38%, rgba(70,20,220,0) 70%); transition: opacity .4s; }
body.dark #view { cursor: none; }
body.dark #show-sides { visibility: hidden; }
#show.more { z-index: 8; }
#show.more:not(.calm) #info { background: var(--deep); border-radius: 16px; padding: 18px; margin-left: -18px; }
@media (orientation: portrait) { #show.more:not(.calm) #info { margin-left: 0; } }
#buy-ship input, .ask input, .ask textarea { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid rgba(243,234,210,.28); background: rgba(13,15,74,.7); color: var(--cream); font: 16px var(--body); user-select: text; -webkit-user-select: text; outline: none; transition: border-color .2s; }
#buy-ship input:focus, .ask input:focus, .ask textarea:focus { border-color: var(--pink); }
#buy-ship input::placeholder, .ask ::placeholder { color: rgba(243,234,210,.45); }

#buy [hidden] { display: none !important; }
#buy button { font-family: var(--ui); color: var(--cream); background: none; border: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
#buy svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#buy-bar { gap: 12px; padding: 7px 8px 7px 12px; }
#buy-bar .win-t { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
#buy-bar .win-t svg { width: 20px; height: 20px; stroke: var(--pink); stroke-width: 3.2; }
#buy-bar .win-t .sl { opacity: .5; }
#buy-path { overflow: hidden; text-overflow: ellipsis; opacity: .85; }
#buy-bar .win-b { flex: none; display: flex; align-items: center; gap: 6px; }
#buy #buy-close { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--pink); color: var(--ink); font: 700 11px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); transition: transform .3s cubic-bezier(.2,1.9,.4,1); }
#buy #buy-close:hover { transform: scale(1.06) rotate(-2deg); }

#buy-body { flex: 1; min-height: 0; display: flex; }
#buy-pic { position: relative; width: 42%; flex: none; border-right: 3px solid var(--ink); overflow: hidden; background: var(--ink); }
#buy-img { width: 100%; height: 100%; object-fit: cover; display: block; animation: pic-in 1.2s cubic-bezier(.16,1,.3,1) both; }
@keyframes pic-in { from { transform: scale(1.12); filter: saturate(.3) brightness(.6); } }

#buy-form { flex: 1; min-width: 0; overflow: auto; padding: 22px 28px 18px; touch-action: pan-y; scrollbar-width: none; overscroll-behavior: contain; }
#buy .scr { display: flex; flex-direction: column; gap: 14px; min-height: 100%; justify-content: safe center; }
#buy-s1 > * { animation: rise .5s cubic-bezier(.2,1.2,.4,1) both; }
#buy-s1 > :nth-child(2) { animation-delay: .05s; } #buy-s1 > :nth-child(3) { animation-delay: .1s; } #buy-s1 > :nth-child(4) { animation-delay: .14s; }
#buy-s1 > :nth-child(5) { animation-delay: .18s; } #buy-s1 > :nth-child(6) { animation-delay: .22s; } #buy-s1 > :nth-child(7) { animation-delay: .27s; } #buy-s1 > :nth-child(n+8) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
#buy .st { display: flex; flex-direction: column; gap: 12px; animation: slide .45s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } }

#buy-title { font: 400 clamp(28px, 2.6vw, 42px)/1.02 var(--paint); }
#buy-hand { display: flex; align-items: center; gap: 8px; margin-top: -6px; font-size: 14px; opacity: .8; }
#buy-hand svg { width: 18px; height: 18px; stroke: var(--cyan); }
#buy-money { display: flex; flex-direction: column; gap: 6px; }
#buy-price { font: 700 clamp(30px, 2.6vw, 40px)/1 var(--ui); color: var(--wood); }
#buy-cprice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 14px/1.2 var(--ui); }
#buy-cprice em, #buy-pay em { font-style: normal; padding: 4px 9px; border-radius: 99px; background: var(--wood); color: var(--ink); font: 700 11px/1 var(--ui); letter-spacing: .03em; white-space: nowrap; }
#buy-cprice:empty { display: none; }
#buy dt, #buy dd { padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.b-h { margin-top: 4px; font: 700 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--wood); }

#buy-pay { display: flex; flex-direction: column; gap: 10px; }
#buy #buy-pay button { display: grid; grid-template-columns: 38px 1fr auto 22px; align-items: center; gap: 14px; padding: 13px 16px; border: 2px solid rgba(243,234,210,.22); border-radius: 14px; background: rgba(13,15,74,.65); transition: border-color .2s, background .2s, transform .3s cubic-bezier(.2,1.6,.4,1), box-shadow .3s; }
#buy #buy-pay button:hover { border-color: rgba(243,234,210,.55); transform: translateY(-2px); }
#buy #buy-pay button.on { border-color: var(--cyan); background: rgba(0,240,216,.08); box-shadow: 4px 4px 0 var(--ink), 0 0 22px rgba(0,240,216,.18); transform: translate(-2px, -2px); }
#buy-pay .ic { width: 38px; height: 38px; stroke: none; }
#buy-pay .ic .f { fill: var(--cream); stroke: none; transition: fill .25s; }
#buy-pay .ic .k { fill: none; stroke: var(--deep); stroke-width: 2.4; }
#buy-pay button.on .ic .f { fill: var(--cyan); }
#buy-pay .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#buy-pay .t b { font: 700 14px/1.1 var(--ui); }
#buy-pay .t small { font: 13px/1.3 var(--body); opacity: .7; }
#buy-pay .p { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
#buy-pay .p b { font: 700 17px/1 var(--ui); color: var(--wood); }
#buy-pay .ok { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(243,234,210,.4); position: relative; transition: background .2s, border-color .2s; }
#buy-pay button.on .ok { background: var(--cyan); border-color: var(--cyan); animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
#buy-pay button.on .ok::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; rotate: 45deg; }
@keyframes pop { 0% { scale: .4; } 100% { scale: 1; } }

#buy .go, #buy #buy-go { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 22px; border: 2.5px solid var(--ink); border-radius: 99px; background: var(--pink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 700 14px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; text-align: center; transition: transform .3s cubic-bezier(.2,1.6,.4,1), box-shadow .3s; }
#buy .go::before, #buy #buy-go::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 3.4s ease-in-out 1s infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
#buy .go:hover, #buy #buy-go:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
#buy .go:active, #buy #buy-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
#buy .go svg, #buy-go svg { width: 20px; height: 20px; stroke-width: 2.6; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
#buy .go:hover svg, #buy-go:hover svg { transform: translateX(4px); }
#buy-go.ext svg { rotate: -45deg; }
#buy #buy-go, #buy #buy-paid, #buy-ship .go { position: sticky; bottom: 0; z-index: 2; flex: none; box-shadow: 4px 4px 0 var(--ink), 0 10px 0 10px var(--deep); }
#buy #buy-go:hover, #buy #buy-paid:hover, #buy-ship .go:hover { box-shadow: 6px 6px 0 var(--ink), 0 10px 0 10px var(--deep); }
#buy .go:disabled { opacity: .6; }

#buy-trust { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0; border-top: 1px solid rgba(243,234,210,.16); }
#buy-trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; opacity: .85; }
#buy-trust svg { width: 18px; height: 18px; stroke: var(--cyan); }
#buy .ask-open { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; }
#buy .ask-open span { text-decoration: underline; text-underline-offset: 4px; }
#buy .ask-open svg { width: 18px; height: 18px; }
#buy .ask { width: 100%; }
#buy-note { min-height: 16px; font-size: 13px; opacity: .8; }
#buy-note:empty { display: none; }

#buy-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#buy #buy-back { display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border: 1.5px solid rgba(243,234,210,.4); border-radius: 99px; font: 600 11px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; transition: border-color .2s, transform .3s cubic-bezier(.2,1.6,.4,1); }
#buy #buy-back:hover { border-color: var(--cream); transform: translateX(-3px); }
#buy-back svg { width: 16px; height: 16px; }
#buy-steps { list-style: none; display: flex; align-items: center; gap: 6px; margin-left: auto; }
#buy-steps li { display: flex; align-items: center; gap: 6px; font: 600 10.5px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; opacity: .45; transition: opacity .3s; }
#buy-steps li + li::before { content: ""; width: 14px; height: 2px; background: rgba(243,234,210,.35); margin-right: 2px; }
#buy-steps i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(243,234,210,.6); }
#buy-steps li.on { opacity: 1; }
#buy-steps li.on i { background: var(--pink); border-color: var(--pink); color: var(--ink); animation: pop .35s cubic-bezier(.3,1.8,.5,1); }
#buy-steps li.was { opacity: .8; }
#buy-steps li.was i { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }

#buy-amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
#buy-amt b { font: 700 clamp(38px, 3.6vw, 52px)/1 var(--ui); color: var(--wood); }
#buy-amt > span { font: 700 18px/1 var(--ui); color: var(--wood); }
#buy-amt .cp { margin-left: auto; align-self: center; }
#buy .cp { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid rgba(243,234,210,.4); border-radius: 99px; font: 600 11px/1 var(--ui); letter-spacing: .04em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s, transform .3s cubic-bezier(.2,1.6,.4,1); }
#buy .cp:hover { border-color: var(--cream); transform: scale(1.05); }
#buy .cp.done { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
#buy .cp svg { width: 15px; height: 15px; }
#buy-net { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1.5px solid var(--cyan); border-radius: 99px; color: var(--cyan); font: 600 11px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; }
#buy-net svg { width: 16px; height: 16px; }
#buy-wallet { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 16px; padding: 14px; border: 1.5px dashed rgba(243,234,210,.3); border-radius: 14px; }
#buy-wallet img { width: 128px; height: 128px; border-radius: 8px; display: block; }
#buy-wallet > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
#buy .lb { font-size: 12px; opacity: .6; }
#buy-addr { font: 600 14px/1.35 ui-monospace, Consolas, monospace; word-break: break-all; user-select: text; -webkit-user-select: text; }
#buy .warn { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--pink); border-radius: 12px; background: rgba(255,47,110,.1); font-size: 13px; line-height: 1.35; }
#buy .warn svg { width: 20px; height: 20px; stroke: var(--pink); }
#buy-ship .row { display: flex; gap: 8px; }
#buy-ship .row input { flex: 1; min-width: 0; }
#ship-note { min-height: 16px; font-size: 13px; }
#ship-note:empty { display: none; }
#buy #buy-done { align-items: center; text-align: center; gap: 14px; margin: auto 0; }
#buy-done > svg { width: 84px; height: 84px; stroke: var(--cyan); stroke-width: 1.8; stroke-dasharray: 80; animation: draw 1s cubic-bezier(.6,0,.2,1) both; }
@keyframes draw { from { stroke-dashoffset: 80; } }
#buy-done .h { font: 400 clamp(30px, 3vw, 42px)/1 var(--paint); color: var(--cyan); }
#buy-done p { max-width: 380px; font-size: 15px; line-height: 1.45; opacity: .85; }
#buy-done .go { min-width: 260px; }

#buy-status { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 14px; border-top: 3px solid var(--ink); background: var(--night); font: 600 10px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase; }
#buy-status > span { display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: .85; }
#buy-status .led { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .3; box-shadow: none; } }

@media (orientation: portrait) {
  #buy-bar .win-t b, #buy-bar .win-t .sl, #buy-path { display: none; }
  #buy .cp { white-space: nowrap; font-size: 10px; padding: 7px 10px; }
  #buy-body { flex-direction: column; }
  #buy-pic { width: 100%; height: 26%; border-right: 0; border-bottom: 3px solid var(--ink); }
  #buy-img { object-position: 50% 30%; }
  #buy-form { padding: 16px 16px 14px; }
  #buy .scr { justify-content: flex-start; gap: 12px; }
  #buy #buy-pay button { grid-template-columns: 32px 1fr auto 20px; gap: 10px; padding: 12px; }
  #buy-pay .ic { width: 32px; height: 32px; }
  #buy-pay .t small { font-size: 12px; }
  #buy-wallet { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  #buy-wallet img { width: 96px; height: 96px; }
  #buy-addr { font-size: 12.5px; }
  #buy-steps li:not(.on) span { display: none; }

  #buy-status { justify-content: center; }
}
@media (orientation: landscape) and (max-height: 560px) {
  #buy-form { padding: 12px 20px; }
  #buy .scr { gap: 9px; justify-content: flex-start; }
  #buy-title { font-size: 24px; }
  #buy-price { font-size: 24px; }
  #buy #buy-pay button { padding: 9px 12px; }
  #buy .go, #buy #buy-go { padding: 12px 18px; }
  #buy-wallet { grid-template-columns: 90px 1fr; }
  #buy-wallet img { width: 90px; height: 90px; }
  #buy-status { display: none; }
}

#kassa [hidden] { display: none !important; }
#kassa button { font-family: var(--ui); color: var(--cream); background: none; border: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
#kassa svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#kassa-bar { gap: 12px; padding: 7px 8px 7px 12px; }
#kassa-bar .win-t { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
#kassa-bar .win-t svg { width: 20px; height: 20px; stroke: var(--pink); stroke-width: 3.2; }
#kassa-bar .win-t .sl { opacity: .5; }
#kassa-bar .win-b { flex: none; display: flex; align-items: center; gap: 6px; }
#kassa #kassa-close { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--pink); color: var(--ink); font: 700 11px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); transition: transform .3s cubic-bezier(.2,1.9,.4,1); }
#kassa #kassa-close:hover { transform: scale(1.06) rotate(-2deg); }

#kassa-body { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1.15fr 1fr; touch-action: pan-y; scrollbar-width: none; overscroll-behavior: contain; }
#kassa-main, #kassa-side { display: flex; flex-direction: column; gap: 14px; padding: 22px 26px; justify-content: safe center; }
#kassa-side { border-left: 3px solid var(--ink); background: rgba(13,15,74,.55); }
#kassa-main > *, #kassa-side > * { animation: rise .5s cubic-bezier(.2,1.2,.4,1) both; }
#kassa-main > :nth-child(2) { animation-delay: .06s; } #kassa-main > :nth-child(3) { animation-delay: .12s; } #kassa-main > :nth-child(4) { animation-delay: .18s; } #kassa-main > :nth-child(5) { animation-delay: .3s; }
#kassa-side > :nth-child(1) { animation-delay: .1s; } #kassa-side > :nth-child(2) { animation-delay: .16s; } #kassa-side > :nth-child(3) { animation-delay: .22s; } #kassa-side > :nth-child(n+4) { animation-delay: .28s; }
#kassa-title { font: 400 clamp(36px, 3.6vw, 60px)/.95 var(--paint); color: var(--wood); }
#kassa-sub { margin-top: -4px; font-size: 15px; line-height: 1.4; opacity: .85; }

#kassa #kassa-go { align-self: center; text-align: center; }

#kassa-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
#kassa-steps li { display: grid; grid-template-columns: 26px 22px 1fr; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.3; }
#kassa-steps i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--ink); font: 700 12px/1 var(--ui); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
#kassa-steps svg { width: 22px; height: 22px; stroke: var(--cyan); }
#kassa-trust { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(243,234,210,.16); }
#kassa-trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.3; opacity: .85; }
#kassa-trust svg { width: 18px; height: 18px; stroke: var(--cyan); }
#kassa .ask-open { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; }
#kassa .ask-open span { text-decoration: underline; text-underline-offset: 4px; }
#kassa .ask-open svg { width: 18px; height: 18px; }
#kassa .ask { width: 100%; }

#kassa-status { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 14px; border-top: 3px solid var(--ink); background: var(--night); font: 600 10px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase; }
#kassa-status > span { display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: .85; }
#kassa-status .led { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: led 1.6s ease-in-out infinite; }

@media (orientation: portrait) {
  #kassa-bar .win-t b, #kassa-bar .win-t .sl { display: none; }
  #kassa-body { display: block; }
  #kassa-main, #kassa-side { padding: 18px 16px; gap: 12px; }
  #kassa-side { border-left: 0; border-top: 3px solid var(--ink); }

  #kassa-status { justify-content: center; }
}
@media (orientation: landscape) and (max-height: 560px) {
  #kassa-main, #kassa-side { padding: 12px 18px; gap: 9px; justify-content: flex-start; }
  #kassa-title { font-size: 30px; }
  #kassa-status { display: none; }
}

#kassa-pays { display: flex; flex-direction: column; gap: 10px; }
#kassa #kassa-usdt, #kassa-etsy { display: grid; grid-template-columns: 38px 1fr auto 20px; align-items: center; gap: 14px; padding: 13px 16px; border: 2px solid rgba(243,234,210,.22); border-radius: 14px; background: rgba(13,15,74,.65); color: var(--cream); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .3s cubic-bezier(.2,1.6,.4,1), box-shadow .3s; }
#kassa #kassa-usdt:hover, #kassa-etsy:hover { border-color: var(--cyan); background: rgba(0,240,216,.08); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink), 0 0 22px rgba(0,240,216,.18); }
#kassa-pays .ic { width: 38px; height: 38px; stroke: none; }
#kassa-pays .ic .f { fill: var(--cream); stroke: none; transition: fill .25s; }
#kassa-pays .ic .k { fill: none; stroke: var(--deep); stroke-width: 2.4; }
#kassa-pays :hover > .ic .f { fill: var(--cyan); }
#kassa-pays .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#kassa-pays .t b { font: 700 14px/1.1 var(--ui); }
#kassa-pays .t small { font: 13px/1.3 var(--body); opacity: .7; }
#kassa-pays em { font-style: normal; padding: 4px 9px; border-radius: 99px; background: var(--wood); color: var(--ink); font: 700 11px/1 var(--ui); }
#kassa-etsy .t { grid-column: 2 / 4; }
#kassa-pays .go { width: 20px; height: 20px; stroke: var(--cyan); stroke-width: 2.6; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
#kassa #kassa-usdt:hover .go { transform: translateX(4px); }
#kassa-etsy:hover .go { transform: translate(3px, -3px); }
#kassa-main #kassa-go { margin-top: 6px; }
#buy-forrow { display: flex; flex-direction: column; gap: 8px; }
#buy #buy-paid:disabled { opacity: .45; cursor: default; transform: none; }
@media (orientation: portrait) {
  #kassa #kassa-usdt, #kassa-etsy { grid-template-columns: 32px 1fr auto 18px; gap: 10px; padding: 12px; }
  #kassa-pays .ic { width: 32px; height: 32px; }
}
#buy-for { position: relative; }
#buy #buy-for-b { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--cyan); background: rgba(13,15,74,.85); font: 600 15px/1.2 var(--ui); transition: box-shadow .3s; }
#buy #buy-for-b:hover { box-shadow: 0 0 22px rgba(0,240,216,.2); }
#buy-for-b svg { width: 20px; height: 20px; stroke: var(--cyan); stroke-width: 2.6; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
#buy-for.open #buy-for-b svg { transform: rotate(180deg); }
#buy-for-l { list-style: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; flex-direction: column; padding: 6px; border-radius: 12px; border: 2px solid var(--cyan); background: var(--deep); box-shadow: 4px 4px 0 var(--ink); animation: drop .25s cubic-bezier(.2,1.4,.4,1) both; transform-origin: 50% 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scaleY(.9); } }
#buy #buy-for-l button { width: 100%; padding: 11px 12px; border-radius: 8px; font: 600 14px/1.2 var(--ui); transition: background .15s, color .15s; }
#buy #buy-for-l button:hover { background: rgba(0,240,216,.14); }
#buy #buy-for-l button.on { background: var(--cyan); color: var(--ink); }
