@font-face {
    font-family: Manrope;
    src: url('/assets/fonts/Manrope.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #121b18;
    --surface: #1b2822;
    --surface-raised: #24372d;
    --text: #f0f6ee;
    --muted: #a8b9ac;
    --line: #35463c;
    --mint: #c8fb87;
    --strong-mint: #a9e864;
    --ink: #14200d;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; min-width: 300px; background: var(--background); color: var(--text); font: 500 16px/1.55 Manrope, system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 72px, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: #121b18; }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.wordmark { display: inline-flex; justify-self: start; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; line-height: 1.05; letter-spacing: .06em; }
.wordmark img { width: 40px; height: 40px; }
.header-account { justify-self: end; min-width: 0; }
.profile { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { position: relative; padding: 25px 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current]::after { position: absolute; inset: auto 4px 0; content: ''; height: 2px; background: var(--mint); }

.button { min-height: 44px; padding: 10px 15px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; font-size: 14px; font-weight: 800; transition: background .16s, color .16s, border-color .16s, transform .16s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.outline { background: #17241e; border-color: var(--line); color: var(--text); }
.button.outline:hover:not(:disabled) { background: var(--surface-raised); border-color: #577260; }
.button.mint { background: var(--mint); color: var(--ink); }
.button.mint:hover { background: #deffa9; }
.button:disabled { opacity: .43; }
.button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hero { position: relative; min-height: 406px; margin-top: 26px; padding: 54px 46px 48px; border: 1px solid #35493b; border-radius: 23px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 80% 49%, #2c4834 0%, transparent 57%), linear-gradient(120deg,#1b2c24,#182c21); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; max-width: 510px; }
.hero h1, .page-title h1 { line-height: 1.04; font-weight: 800; letter-spacing: -.064em; }
.hero h1 { font-size: clamp(44px, 6vw, 83px); }
.hero p { max-width: 405px; margin: 22px 0 25px; color: #c0cdbf; font-size: clamp(15px,1.6vw,17px); }
.hero-art { position: absolute; inset: 0 0 0 40%; pointer-events: none; background: radial-gradient(ellipse at 68% 66%, #85db6a26, transparent 60%); }
.hero-art img { position: absolute; max-width: 100%; width: min(540px,100%); aspect-ratio: 1; object-fit: contain; bottom: -72px; right: 12px; animation: float-in 530ms ease-out both; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#1b2c24 0%,#1b2c2400 32%); }
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.catalogue { padding-block: 37px 70px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-header h2 { font-size: clamp(25px,3vw,35px); letter-spacing: -.045em; line-height: 1.2; }
.market-time { color: var(--muted); font-size: 13px; }
.search { margin: 13px 0 16px; display: flex; align-items: center; gap: 14px; min-height: 57px; padding: 0 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.search:focus-within { border-color: var(--strong-mint); }
.search input { outline: 0; border: 0; background: transparent; color: var(--text); flex: 1; width: 100%; min-width: 0; padding: 14px 0; }
.search input::placeholder { color: var(--muted); opacity: .9; }
.search-icon { display: block; width: 16px; height: 16px; border: 2px solid #9cc4a8; border-radius: 50%; position: relative; flex-shrink: 0; margin-right: 3px; }
.search-icon::after { content: ''; width: 7px; height: 2px; background: #9cc4a8; position: absolute; transform: rotate(46deg); right: -6px; bottom: -3px; }
kbd { padding: 0 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.section-status { color: var(--muted); margin-block: 12px; }
.section-status:empty { display: none; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.skin, .skeleton { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.skin { display: flex; flex-direction: column; transition: border-color .18s, transform .18s; }
.skin:hover { border-color: #62806d; transform: translateY(-3px); }
.skin-art { min-height: 128px; height: clamp(125px,15vw,166px); display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 68%, color-mix(in srgb,var(--item-color,#78ab7f) 22%,#1a2b23),#19261f 80%); }
.skin-art img { width: 83%; height: 92%; object-fit: contain; filter: drop-shadow(0 12px 11px #070c09ad); transition: transform .22s; }
.skin:hover img { transform: scale(1.045); }
.skin-info { padding: 14px 16px 5px; }
.skin-info h3, .account-card h3 { color: var(--text); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.skin-info p, .account-card p { color: var(--muted); font-size: 12px; }
.skin-info p:empty, .demand:empty { display: none; }
.skin-bottom { margin-top: auto; padding: 9px 16px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.price { color: var(--mint); font-size: clamp(20px,2.3vw,27px); white-space: nowrap; letter-spacing: -.045em; }
.demand, .no-price, .receipt-status { color: var(--muted); font-size: 12px; }
.positive { color: var(--mint); }
.skeleton { height: 226px; background: #1c2923; animation: breathe 1s ease infinite alternate; }
.retry { justify-self: start; }
@keyframes breathe { to { opacity: .55; } }

.page-view { padding-block: 55px 75px; }
.page-title { margin-bottom: 30px; }
.page-title h1 { font-size: clamp(35px,5.6vw,62px); }
.page-title p { margin-top: 12px; color: var(--muted); }
.empty { padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 20px; margin-bottom: 12px; }
.empty .button { margin: 5px 7px 0 0; }
.inventory-link { margin-top: 25px; }
.account-card { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.account-icon { display: grid; place-items: center; height: 40px; width: 40px; background: #314437; border-radius: 9px; color: var(--mint); font-size: 23px; }
.account-card .button { margin-left: auto; }
.platforms { width: 100%; border-top: 1px solid var(--line); padding-top: 9px; }
.platforms summary { color: var(--mint); cursor: pointer; padding: 5px 0; font-size: 14px; font-weight: 750; }
.platform-buttons { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.platform-buttons .button { margin: 0; padding-inline: 9px; min-height: 37px; font-size: 12px; }
[aria-busy="true"].button { opacity: .7; }

.guide { padding: 0; width: min(570px,calc(100% - 26px)); max-height: calc(100dvh - 22px); overflow: auto; color: var(--text); background: var(--surface); border: 1px solid #46604e; border-radius: 20px; box-shadow: 0 24px 85px #080d09bc; }
.guide[open] { animation: float-in .2s ease-out both; }
.guide::backdrop { background: #0a100de0; }
.close { position: absolute; right: 14px; top: 14px; z-index: 1; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #1c2b23; font-size: 22px; line-height: 1; }
.guide-demo { display: grid; place-items: center; min-height: 212px; padding: 26px 45px; background: radial-gradient(ellipse at 54% 55%,#34583d,#1c3125 76%); border-bottom: 1px solid var(--line); }
.mini-browser { width: min(365px,100%); border: 1px solid #647c64; border-radius: 12px; background: #17251d; overflow: hidden; box-shadow: 0 16px 38px #0e180d9c; }
.mini-top { padding: 10px 11px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #3b4d3e; }
.mini-top i { width: 5px; height: 5px; background: #718575; border-radius: 50%; }
.mini-top span { font-size: 8px; color: var(--muted); margin-left: 4px; letter-spacing: .08em; }
.mini-body { padding: 13px; display: grid; gap: 9px; }
.mini-line { width: 75%; height: 4px; background: #35493a; border-radius: 4px; }
.mini-short { width: 47%; }
.mini-card { display: flex; align-items: center; gap: 10px; padding: 9px; min-height: 57px; border: 1px solid #658261; border-radius: 8px; background: #2a4332; }
.mini-card div { display: grid; gap: 1px; font-size: 12px; }
.mini-card div span { color: #b9cbbb; font-size: 10px; }
.mini-card strong { color: var(--mint); margin-left: auto; flex-shrink: 0; }
.mini-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: #466447; color: var(--mint); flex-shrink: 0; }
.mini-switch { display: block; width: 28px; height: 15px; border: 1px solid #a2db74; border-radius: 15px; background: #5b8b49; }
.mini-switch::before { content: ''; display: block; width: 11px; height: 11px; background: var(--mint); margin: 1px; border-radius: 50%; transform: translateX(13px); animation: switch-demo 2.1s ease-in-out infinite; }
[data-guide-scene="install"] .mini-icon, [data-guide-scene="platform"] .mini-card strong { animation: demo-icon 1.8s ease-in-out infinite; }
[data-guide-scene="catalogue"] .mini-card { animation: demo-focus 2.4s ease-in-out infinite; }
@keyframes switch-demo { 0%,18% { transform: translateX(0); } 45%,100% { transform: translateX(13px); } }
@keyframes demo-icon { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }
@keyframes demo-focus { 50% { border-color: var(--mint); } }
.guide-content { padding: 22px 27px 25px; }
.guide-steps { display: flex; align-items: center; gap: 5px; padding: 0; margin: 0 0 11px; list-style: none; }
.step-progress { border: 0; width: 27px; height: 26px; padding: 0; background: transparent; display: grid; place-items: center; }
.step-progress::after { content: ''; width: 100%; height: 3px; border-radius: 6px; background: #52675a; }
.step-progress[aria-current]::after { background: var(--mint); }
.guide h2 { font-size: clamp(21px,4vw,29px); font-weight: 800; letter-spacing: -.04em; line-height: 1.16; }
.guide p { color: var(--muted); margin-top: 10px; }
.guide p:empty { display: none; }
.guide-link { color: var(--mint); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.guide-nav { margin-top: 19px; display: flex; justify-content: space-between; gap: 10px; }
.site-alert { position: fixed; z-index: 8; bottom: 18px; right: 18px; max-width: min(400px,calc(100% - 36px)); padding: 11px 15px; border-radius: 10px; border: 1px solid #5e8069; color: var(--text); background: var(--surface-raised); box-shadow: 0 10px 35px #0007; font-size: 14px; }

@media (max-width: 990px) {
    .shell { width: calc(100% - 44px); }
    .hero { min-height: 355px; }
    .hero-art img { bottom: -45px; right: -9px; }
    .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .shell { width: calc(100% - 28px); }
    .header-inner { min-height: auto; padding-top: 12px; grid-template-columns: 1fr 1fr; gap: 0 12px; }
    .wordmark { font-size: 11px; }
    .wordmark img { width: 33px; height: 33px; }
    .header-account { grid-column: 2; grid-row: 1; }
    .header-account .button { min-height: 39px; }
    nav { grid-column: 1/-1; justify-content: space-between; gap: 7px; margin-top: 4px; }
    nav a { padding-block: 12px; }
    .hero { min-height: 375px; margin-top: 15px; padding: 25px 19px; align-items: flex-start; }
    .hero h1 { font-size: clamp(37px,11vw,54px); }
    .hero p { margin: 13px 0 17px; font-size: 14px; }
    .hero-art { inset: 27% -13px 0 20%; opacity: .60; }
    .hero-art img { bottom: -53px; right: 0; }
    .hero-art::after { background: linear-gradient(180deg,#1b2c24 0%,#1b2c2400 44%); }
    .catalogue { padding-block: 26px 45px; }
    .skin-info, .skin-bottom { padding-inline: 10px; }
    .skin-info h3 { font-size: 13px; }
    .skin-bottom { display: grid; gap: 3px; }
    .skin-art { height: 113px; min-height: 0; }
    .market-time { text-align: right; font-size: 11px; }
    .grid { gap: 9px; }
    .page-view { padding-block: 31px; }
    .page-title { align-items: flex-start; flex-wrap: wrap; }
    .guide-content { padding-inline: 18px; }
    .guide-demo { min-height: 172px; padding: 20px 33px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
