@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f0eeeb;
  --ink: #10100f;
  --copper: #db813d;
  --copper-light: #edaa76;
  --muted: #aaa59e;
  --line: #ffffff12;
  --control-radius: 0;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--ink); scrollbar-color: #544438 var(--ink); scrollbar-width: thin; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Manrope, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
button, figure, h1, p { margin: 0; }
button { border: 0; background: none; }
.control-label { display: block; line-height: 1; }
.notice-copy strong[hidden] { display:none; }
.notice-copy strong[hidden] + p { margin-top:0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 5px; }
::selection { background: #db813d; color: #10100f; }
.shell { width: calc(100% - 112px); max-width: 1576px; margin-inline: auto; }
.icon { width: 20px; height: 20px; display: block; flex: none; }
.skip-link { position: fixed; z-index: 20; top: 14px; left: 20px; padding: 14px 20px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 94px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 56px; }
.brand-mark { width: 56px; height: 56px; object-fit: contain; }
.brand-name { font-size: 18px; font-weight: 750; line-height: 1.2; letter-spacing: -.55px; white-space: nowrap; }
.brand-name span { color: #b9aca0; font-weight: 550; }
.header-nav { display: flex; align-items: center; justify-content: center; gap: 30px; flex: 1; }
.header-nav button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 0; font-size: 12.5px; font-weight: 550; text-align: center; color: #b7b2ab; transition: color 180ms ease; }
.header-nav button:hover { color: var(--paper); }
.header-nav .control-label { line-height: 1.4; }
.header-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.locale-toggle { display: flex; align-items: center; justify-content: center; width: 36px; min-height: 44px; padding: 0; font-size: 10px; font-weight: 750; letter-spacing: .08em; color: #a49b90; transition: color 180ms ease; }
.locale-toggle:hover { color: var(--paper); }
.sign-in { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border: 0; border-radius: 8px; background: #d99b68; padding: 0 20px; color: #1c1510; font-size: 12px; font-weight: 650; line-height: 1; text-align: center; transition: background-color 180ms ease, color 180ms ease; }
.sign-in .control-label { position: static; line-height: 1; }
.sign-in .icon { width: 17px; height: 17px; }
.auth-label-short { display: none; }

.account-menu { position:relative; flex:none; min-width:0; }
.account-menu-trigger { display:grid; grid-template-columns:36px minmax(0,1fr) 14px; align-items:center; gap:10px; min-height:48px; max-width:224px; padding:0 4px; border:0; background:none; color:#d9cbbd; list-style:none; cursor:pointer; line-height:1; }
.account-menu-trigger::-webkit-details-marker { display:none; }
.account-menu-trigger::marker { content:''; }
.account-menu-avatar { display:flex; align-items:center; justify-content:center; width:36px; height:36px; overflow:hidden; border-radius:10px; background:var(--profile-color,#71513b); color:#faf5ee; font-size:14px; font-weight:650; line-height:1; }
.account-menu-photo { display:block; width:100%; height:100%; object-fit:cover; }
.account-menu-copy { display:grid; gap:6px; min-width:0; text-align:left; }
.account-menu-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:148px; font-size:12px; font-weight:650; line-height:1; }
.account-menu-username { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; color:#9f9182; line-height:1; }
.account-menu-chevron { width:14px; height:14px; color:#a99683; transition:color 160ms; }
.account-menu-trigger:hover,.account-menu[open] .account-menu-trigger { color:#fff1e2; }
.account-menu-trigger:hover .account-menu-chevron,.account-menu[open] .account-menu-chevron { color:#efc39d; }
.account-menu-trigger:focus-visible { outline:none; color:#fff; }
.account-menu-trigger:focus-visible .account-menu-name { text-decoration:underline; text-underline-offset:4px; }
.account-menu-trigger:focus-visible .account-menu-chevron { stroke-width:2.5; color:#fff; }
.account-menu-panel { position:absolute; top:calc(100% + 12px); right:0; z-index:40; width:240px; max-width:calc(100vw - 40px); max-height:calc(100svh - 120px); overflow:auto; padding:6px; border-radius:9px; background:#161513; box-shadow:inset 0 0 0 1px #ffffff22,0 12px 36px #0005; }
.account-menu[open] .account-menu-panel { animation:account-menu-fade 150ms ease-out both; }
@keyframes account-menu-fade { from { opacity:0; } to { opacity:1; } }
.account-menu-item { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:36px; padding:0 10px; border:0; border-radius:4px; background:none; color:#d6cec3; font-size:12px; font-weight:550; line-height:1; text-align:left; transition:color 160ms,background-color 160ms; }
.account-menu-item .control-label { position:static; line-height:1; }
.account-menu-item .icon { width:16px; height:16px; color:#a79b8d; }
.account-menu-item:hover,.account-menu-item:focus-visible { color:#fff1e2; background:#ffffff07; outline:none; }
.account-menu-item:hover .icon,.account-menu-item:focus-visible .icon { color:#efc39d; }
.account-menu-item:focus-visible .control-label { text-decoration:underline; text-underline-offset:4px; }
.account-menu-divider { margin:4px 10px; border-top:1px solid #ffffff0e; }
.account-menu-exit { color:#c7ab94; }
.account-menu-identity { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:10px; min-height:58px; padding:8px 10px; color:#eee0d2; }
.account-menu-identity .account-menu-avatar { width:34px; height:34px; border-radius:9px; }
.account-menu-identity-copy { display:grid; gap:6px; min-width:0; }
.account-menu-identity .account-menu-name { max-width:none; font-size:12px; }


.sign-in:hover { background: #e6ae7e; color: #1c1510; }
.sign-in:active { background: #c48a5b; color: #1c1510; }
.hero { position: relative; isolation: isolate; overflow: clip; min-height: max(720px, calc(100svh - 95px)); display: flex; align-items: center; }
.hero:focus { outline: none; }
.hero-shell { position: relative; z-index: 2; padding-block: 100px 120px; }
.hero-copy { width: 60%; max-width: 800px; }
.hero-title { font-size: clamp(68px, 6.7vw, 108px); font-weight: 600; letter-spacing: -.065em; line-height: 1.035; }
.title-line { display: block; }
html[lang="en"] .title-line { white-space: nowrap; }
.title-credit { display: block; padding-top: 14px; font-size: .65em; font-weight: 550; letter-spacing: -.045em; line-height: 1.2; color: var(--copper-light); }
.hero-description { max-width: 440px; margin-top: 36px; font-size: 15px; font-weight: 450; line-height: 1.9; color: var(--muted); text-wrap: pretty; }
.hero-sign-in { margin-top: 32px; min-height: 54px; min-width: 220px; max-width: 100%; padding-inline: 24px; gap: 16px; font-size: 13px; }
.hero-art { position: absolute; z-index: 0; inset: 0 -4% 0 auto; width: min(1180px, 75%); overflow: hidden; pointer-events: none; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, #10100f99 12%, #10100f00 32%), linear-gradient(0deg, #10100f66, #10100f00 25%); pointer-events: none; }
.art-motion { width: 100%; height: 100%; transform: translate3d(var(--art-x, 0px), var(--art-y, 0px), 0); transition: transform 200ms ease-out; }
.hero-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; }

html.has-js:not(.is-ready) .hero-copy, html.has-js:not(.is-ready) .hero-art { opacity: 0; }
html.is-ready .hero-copy { animation: copy-enter 620ms cubic-bezier(.2,.65,.25,1) both; }
html.is-ready .hero-art { animation: art-enter 850ms cubic-bezier(.2,.65,.25,1) both; }
@keyframes copy-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes art-enter { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.site-footer { position: relative; border-top: 1px solid #30271f; background: #0c0c0b; }
.footer-shell { padding-block: 66px 48px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.footer-identity { display: flex; align-items: center; gap: 16px; }
.footer-logo { display: block; width: 72px; height: 72px; flex: none; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-wordmark { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.footer-brand { display: block; font-size: 28px; font-weight: 700; letter-spacing: -.9px; line-height: 1.2; }
.footer-brand-cloud { color: #b9aca0; font-weight: 500; }
.footer-origin { display: inline-block; color: #9e8a79; font-size: 11.5px; font-weight: 500; line-height: 1.5; transition: color 180ms ease; }
.footer-origin:hover { color: var(--copper-light); }
.footer-top h2 { margin: 11px 0 20px; font-size: 13px; font-weight: 650; line-height: 1.4; letter-spacing: 0; color: #b4a89c; }
.owner-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.owner-socials a, .owner-socials button { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff0a; border-radius: 5px; color: #96938d; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.owner-socials a:hover, .owner-socials button:hover { color: var(--paper); background: #ffffff06; border-color: #ffffff20; }
.owner-socials a:active, .owner-socials button:active { color: var(--paper); background: #ffffff0a; border-color: #ffffff30; }
.social-icon { display: block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--social-icon) center / contain no-repeat; mask: var(--social-icon) center / contain no-repeat; }
.social-telegram { --social-icon: url('/assets/icons/brand-telegram.svg'); }
.social-vk { --social-icon: url('/assets/icons/brand-vk.svg'); }
.social-discord { --social-icon: url('/assets/icons/brand-discord.svg'); }
.footer-documents { display: flex; flex-direction: column; align-items: stretch; }
.footer-documents h2 { width: 100%; }
.footer-documents :is(button,a) { display: flex; align-items: center; gap: 24px; justify-content: space-between; width: 100%; min-height: 44px; padding: 6px 0; text-align: left; font-size: 12.5px; line-height: 1.7; color: #d0c8bf; transition: color 180ms ease; }
.footer-documents :is(button,a) span { min-width: 0; }
.footer-documents .control-label { line-height: 1.5; }
.footer-documents :is(button,a):hover { color: var(--copper-light); }
.footer-documents .icon { width: 15px; height: 15px; color: #8e7b69; }
.footer-bottom { display: grid; grid-template-columns: 1fr 1.75fr; gap: 56px; padding-top: 32px; margin-top: 48px; border-top: 1px solid #29231d; }
.footer-copyright { font-size: 12px; font-weight: 550; line-height: 1.8; color: #a69d92; }
.footer-legal { max-width: 880px; font-size: 12px; font-weight: 400; line-height: 1.9; color: #8d857a; text-wrap: pretty; }

.notice-region { position: fixed; z-index: 1000; inset: auto 28px max(28px, env(safe-area-inset-bottom)) auto; width: min(410px, calc(100% - 40px)); margin:0; padding:0; border:0; overflow:visible; background:transparent; color:inherit; pointer-events:none; }
.notice-region::backdrop { background:transparent; backdrop-filter:none; pointer-events:none; }
.notice { display: flex; align-items: center; gap: 14px; position: relative; padding: 22px 16px 22px 22px; background: #eee9e2; color: #292622; border-left: 3px solid var(--copper); border-radius: 4px; box-shadow: 0 12px 36px #0003; pointer-events: auto; }
.notice[hidden] { display: none; }
.notice-symbol { display:block; flex:none; color: #a95621; width: 21px; height: 21px; margin: 0; }
.notice-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notice-copy strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 750; }
.notice-copy p { margin-top: 5px; font-size: 12px; line-height: 1.7; color: #625c54; }
.notice-copy strong[hidden]+p { margin-top:0; }

@media (min-width: 1800px) {
  .hero-art { width: 68%; right: 0; }
  .hero-copy { max-width: 800px; }
}

@media (max-width: 1200px) {
  .shell { width: calc(100% - 72px); }
  .header-inner { gap: 26px; }
  .header-nav { gap: 22px; }
  .header-nav button { font-size: 11.5px; }
  .brand-name { font-size: 16px; }
  .header-actions { gap: 14px; }
  .sign-in { padding-inline: 16px; gap: 14px; }
  .hero-title { font-size: 78px; }
  .hero-copy { width: 60%; }
  .hero-description { max-width: 355px; }
  .footer-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, 1fr); gap: 30px; }
  .footer-identity { gap: 12px; }
  .footer-brand { font-size: 23px; }
  .footer-logo { width: 60px; height: 60px; }
}

@media (max-width: 1030px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; padding-top: 10px; padding-bottom: 6px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 28px; }
  .header-nav button { min-height: 42px; font-size: 12px; }
  .hero { min-height: max(670px, calc(100svh - 115px)); }
  .hero-title { font-size: 64px; }
  .hero-art { width: 82%; right: -12%; }
  .hero-art::after { background: linear-gradient(90deg, var(--ink), #10100fcc 16%, #10100f00 46%); }
  .hero-description { font-size: 14px; max-width: 330px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-brand { font-size: 27px; }
  .footer-bottom { grid-template-columns: 1fr 1.8fr; gap: 30px; }
}

@media (max-width: 720px) {
  .shell { width: auto; margin-left: max(20px, env(safe-area-inset-left)); margin-right: max(20px, env(safe-area-inset-right)); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner { gap: 4px 12px; padding-top: 10px; padding-bottom: 8px; }
  .brand { gap: 8px; min-height: 48px; }
  .brand-mark { width: 43px; height: 43px; }
  .brand-name { font-size: 14px; letter-spacing: -.4px; line-height: 1.25; }
  .brand-name span { display: block; font-size: 12px; letter-spacing: -.15px; }
  .header-actions { gap: 6px; }
  .sign-in { min-height: 44px; padding: 0 12px; gap: 8px; font-size: 12px; white-space: nowrap; }
  .sign-in .icon { width: 14px; height: 14px; }
  .auth-label-full { display: none; }
  .auth-label-short { display: inline; }
  .locale-toggle { flex: none; width: 44px; min-height: 44px; font-size: 11px; }
  .locale-toggle:active { color: var(--paper); }
  .header-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .header-nav button { min-width: 0; min-height: 48px; text-align: center; font-size: 11.5px; line-height: 1.45; }
  .hero { display: block; min-height: 0; scroll-margin-top: 150px; }
  .hero-shell { padding-top: 48px; padding-bottom: 0; }
  .hero-copy { width: 100%; max-width: 540px; }
  .hero-title { font-size: clamp(42px, 11.5vw, 68px); letter-spacing: -.062em; }
  html[lang="en"] .hero-title { font-size: clamp(37px, 10vw, 68px); }
  .title-credit { padding-top: 10px; font-size: .68em; }
  .hero-description { font-size: 14px; line-height: 1.85; max-width: 420px; margin-top: 24px; }
  .hero-sign-in { min-height: 50px; margin-top: 26px; padding-inline: 20px; gap: 14px; font-size: 13px; }
  .hero-art { position: relative; inset: auto; width: 100%; height: clamp(260px, 75vw, 460px); margin-top: 16px; }
  .hero-art::after { background: linear-gradient(180deg, var(--ink) 0%, #10100f00 18%, #10100f00 84%, var(--ink) 100%), linear-gradient(90deg, #10100f66 0%, #10100f00 20%); }
  .hero-art img { object-position: 84% 55%; }
  .notice-region { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: auto; max-width: 410px; margin-left: auto; }
  .footer-shell { padding-block: 42px max(36px, env(safe-area-inset-bottom)); }
  .footer-top { gap: 32px; }
  .footer-brand { font-size: 24px; }
  .footer-logo { width: 52px; height: 52px; }
  .footer-wordmark { gap: 6px; }
  .footer-top h2 { margin-top: 0; font-size: 13px; margin-bottom: 16px; }
  .footer-documents :is(button,a) { min-height: 48px; font-size: 13px; gap: 16px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 22px; margin-top: 34px; padding-top: 28px; }
  .footer-legal { max-width: none; font-size: 12.5px; line-height: 1.85; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-identity { grid-column: auto; }
  .footer-documents { max-width: 390px; }
}

@media (max-width: 520px) {
  .hero-sign-in { width: 100%; max-width: 360px; min-width: 0; }
}

@media (max-width: 360px) {
  .shell { margin-left: max(16px, env(safe-area-inset-left)); margin-right: max(16px, env(safe-area-inset-right)); }
  .header-inner { column-gap: 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 12.5px; }
  .brand-name span { font-size: 11px; }
  .header-actions { gap: 4px; }
  .header-actions .sign-in { padding-inline: 10px; gap: 6px; }
  .header-nav { gap: 10px; }
  .header-nav button { font-size: 11px; }
  .hero-shell { padding-top: 38px; }
  .hero-description { font-size: 13.5px; }
  .notice { padding: 18px 14px 18px 16px; gap: 10px; }
  .footer-brand { font-size: 20px; }
  .footer-logo { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .art-motion { transform: none; }
}

@media (hover: none) {
  .header-nav button:hover { color: #b7b2ab; }
  .sign-in:hover:not(:active) { background: #d99b68; color: #1c1510; }
  .owner-socials a:hover:not(:active), .owner-socials button:hover:not(:active) { background: none; border-color: #ffffff0a; color: #96938d; }
}

@media(max-width:720px) { .account-menu-trigger { grid-template-columns:36px 12px; gap:7px; padding:0; }.account-menu-copy { display:none; }.account-menu-chevron { width:12px; height:12px; } }

@media(hover:none) { .account-menu-item { min-height:44px; } }
@media(max-width:720px) { body { touch-action:pan-x pan-y; } }
