:root {
  color-scheme: dark;
  --stage: #161b16;
  --surface: #20261f;
  --text: #f2f0e8;
  --muted: #c3c9c1;
  --line: #414940;
  --lime: #c8e773;
  --platform-lime: #c6ee67;
  --gutter: 28px;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--stage);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body.cs-v1 { min-height: 100dvh; display: flex; flex-direction: column; position: relative; isolation: isolate; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--platform-lime); outline-offset: 4px; }
.cs-icon { display: inline-block; flex: none; vertical-align: middle; filter: brightness(0) invert(.92); }

.shell-header { z-index: 2; position: relative; }
.header {
  height: 88px; display: flex; align-items: center; gap: 42px;
  padding-inline: max(28px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid #ede7cb21;
  background: #11161175;
}
.brand { font-size: 26px; font-weight: 900; letter-spacing: -.8px; white-space: nowrap; }
.brand strong { color: var(--platform-lime); font-weight: inherit; }
.header nav { display: flex; align-items: stretch; height: 100%; flex-shrink: 0; gap: 32px; }
.header nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; color: var(--muted); white-space: nowrap; }
.header nav a.active { color: var(--text); border-color: var(--platform-lime); }
.languages { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.languages a { border-radius: 6px; min-height: 44px; min-width: 40px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.languages a[aria-current] { color: var(--platform-lime); background: #222b20; }
.header-menu-button { display: none; }

.cs-frame { position: relative; width: 100%; max-width: 1280px; margin-inline: auto; flex: 1; }
.cs-backdrop {
  position: absolute; z-index: -1; inset: 0 0 auto; height: 790px; overflow: hidden;
  mask-image: linear-gradient(#000 0%, #000 60%, transparent 99%);
}
.cs-backdrop img {
  width: min(100%, 1480px); height: 100%; display: block; margin-inline: auto;
  object-fit: cover; object-position: 42% center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 39%, transparent 88%);
}
.cs-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #151b16a3 0, #151b1633 17%, transparent 38%, #141b161a 63%, #161b16 100%);
}

.cs-hero { min-height: 662px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 40px var(--gutter) 56px; column-gap: 34px; }
.hero-copy { grid-column: 2; padding-bottom: 24px; }
.hero-copy h1 { font-size: clamp(34px, 4.05vw, 61px); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.hero-copy h1 span { white-space: nowrap; }
.hero-intro { font-size: clamp(18px, 2vw, 25px); line-height: 1.35; color: #e0e3da; margin-top: 17px; }
.hero-meta { margin-top: 12px; font-size: 15px; color: var(--muted); }
.hero-actions { margin-top: 29px; display: grid; grid-template-columns: 1.16fr 1fr; gap: 11px; }
.hero-actions .primary { grid-column: 1 / -1; font-size: 20px; font-weight: 850; }
.cs-button {
  min-height: 50px; padding: 12px 15px; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  border: 1px solid #d9dfce91; border-radius: 9px; color: var(--text); background: #1c231cbe;
  font-size: 15px; font-weight: 750; text-align: center; line-height: 1.2;
}
.cs-button.primary { background: var(--lime); color: #151d0d; border-color: var(--lime); }
.cs-button:hover { filter: brightness(1.09); }

.cs-section { padding-inline: var(--gutter); padding-bottom: 62px; scroll-margin-top: 22px; }
.cs-section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 850; letter-spacing: -.04em; }
.cs-section > p { color: var(--muted); margin-top: 9px; font-size: 16px; line-height: 1.45; }
.room-table { list-style: none; margin: 23px 0 0; padding: 3px 18px; border: 1px solid var(--line); border-radius: 12px; background: #1a201ac9; }
.room-table li { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 25px; padding: 13px 0; }
.room-table li + li { border-top: 1px solid var(--line); }
.map-thumb { width: 100%; height: 76px; object-fit: cover; border-radius: 6px; }
.room-name h3 { font-size: 22px; font-weight: 800; }
.room-name span { display: block; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.room-table .cs-button { min-width: 120px; min-height: 44px; }
.how-layout { display: grid; grid-template-columns: 1.9fr 1fr; gap: 34px; align-items: center; margin-top: 22px; }
.how-layout figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 8px; }
.how-copy ol { margin: 0 0 18px; padding-left: 22px; color: var(--muted); line-height: 1.52; }
.how-copy li + li { margin-top: 6px; }
.guide-link { min-height: 48px; border-color: #77845b; color: #e1f2ba; }

.site-footer { border-top: 1px solid #ede7cb21; background: #141915; }
.footer-frame {
  width: 100%; max-width: 1256px; min-height: 150px; margin-inline: auto; padding: 28px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 40px;
}
.footer-frame .brand { display: inline-block; }
.footer-brand p { margin-top: 5px; color: var(--muted); font-size: 16px; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 28px; }
.footer-links a, .footer-store, .footer-telegram { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; white-space: nowrap; color: #c4cbd0; }


.guide-page { padding: 30px var(--gutter) 70px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: #e0efa7; margin-bottom: 13px; }
.guide-page h1 { font-size: clamp(32px, 4.4vw, 59px); letter-spacing: -.045em; font-weight: 850; line-height: 1.06; }
.guide-intro { font-size: 18px; color: var(--muted); margin-top: 14px; line-height: 1.45; }
.guide-overview { display: grid; grid-template-columns: 1.75fr 1fr; align-items: start; gap: 30px; margin-top: 25px; }
.guide-overview video { width: 100%; height: auto; display: block; background: #111711; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 10px; }
.guide-toc { padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.guide-toc ol { margin: 10px 0 0; padding-left: 20px; }
.guide-toc li { padding-block: 4px; color: #d3dfc5; line-height: 1.4; }
.guide-toc a:hover { text-decoration: underline; }
.guide-steps { list-style: none; padding: 0; margin: 36px 0; }
.guide-steps > li { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.guide-steps .step-copy { display: flex; align-items: baseline; gap: 13px; }
.guide-steps .number { color: #b4cc7d; font-size: 14px; font-variant-numeric: tabular-nums; }
.guide-steps h3 { font-size: 22px; letter-spacing: -.02em; }
.guide-document p { max-width: 75ch; color: var(--muted); line-height: 1.5; }
.guide-document a { color: #e0efa7; text-decoration: underline; }
.guide-document figure { margin-top: 16px; }
.guide-document img { max-width: min(100%, 760px); height: auto; display: block; border-radius: 8px; }
.guide-document .faq summary { cursor: pointer; display: list-item; padding: 13px 0; }
.guide-document .faq details { border-bottom: 1px solid var(--line); }
.guide-document .faq details p { padding-bottom: 12px; }

@media (max-width: 1200px) {
  .footer-frame { gap: 12px 24px; grid-template-columns: 1fr auto auto; }
  .footer-brand { grid-row: 1 / 3; }
  .footer-links { grid-column: 2 / 4; grid-row: 1; gap: 20px; }
  .footer-store { grid-column: 2; grid-row: 2; }
  .footer-telegram { grid-column: 3; grid-row: 2; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .header { gap: 24px; }
  .header nav { gap: 20px; }
  .cs-hero { min-height: 542px; grid-template-columns: .84fr 1fr; gap: 21px; }
  .cs-backdrop { height: 674px; }
  .cs-backdrop img { object-position: 33% center; mask-image: linear-gradient(90deg, #000, #000 29%, transparent 78%); }
  .hero-actions .cs-button { padding-inline: 10px; font-size: 14px; }
  .hero-actions .primary { font-size: 18px; }
  .how-layout { gap: 22px; }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  .header { height: 72px; padding-inline: 20px; gap: 14px; }
  .brand { font-size: 23px; }
  .languages a { min-width: 34px; }
  .header nav { display: none; position: absolute; inset: 71px 0 auto; height: auto; padding: 6px 20px 14px; background: #181e18; border-bottom: 1px solid var(--line); }
  .header:has(.header-menu-button[aria-expanded=true]) nav { display: grid; gap: 0; }
  .header nav a { min-height: 48px; border: 0; }
  .header nav a.active { color: var(--platform-lime); }
  .header-menu-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; background: #181e1870; border: 1px solid #e3ecd83b; border-radius: 7px; }
  .header-menu-button img { filter: brightness(0) invert(.9); }
  .cs-backdrop { height: 490px; mask-image: linear-gradient(#000, #000 40%, transparent 98%); }
  .cs-backdrop img { width: 100%; object-position: 31% center; mask-image: none; }
  .cs-backdrop::after { background: linear-gradient(#161b168f 0%, #161b1640 14%, transparent 38%, #161b16f7 86%); }
  .cs-hero { min-height: 0; display: block; padding: 207px var(--gutter) 38px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(30px, 8.15vw, 54px); }
  .hero-intro { margin-top: 10px; }
  .hero-meta { margin-top: 7px; font-size: 14px; }
  .hero-actions { margin-top: 19px; gap: 8px; grid-template-columns: 1.17fr 1fr; }
  .hero-actions .cs-button { min-height: 46px; padding: 9px 6px; font-size: 13px; }
  .hero-actions .primary { min-height: 49px; font-size: 17px; }
  .hero-actions .cs-icon { width: 15px; height: 15px; }
  .cs-section { padding-bottom: 40px; }
  .cs-section > p { font-size: 14px; }
  .room-table { padding: 2px 11px; margin-top: 15px; }
  .room-table li { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 11px; padding: 11px 0; }
  .map-thumb { height: 49px; }
  .room-name h3 { font-size: 17px; }
  .room-name span { font-size: 13px; }
  .room-table .cs-button { min-width: 67px; padding-inline: 9px; font-size: 13px; }
  .how-layout { grid-template-columns: 1fr; gap: 17px; margin-top: 16px; }
  .guide-link { width: 100%; }
  .footer-frame { grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; grid-row: 1; }
  .footer-brand p { font-size: 14px; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 0 15px; flex-wrap: wrap; }
  .footer-store { grid-column: 1; grid-row: 3; white-space: normal; }
  .footer-telegram { grid-column: 2; grid-row: 3; justify-self: end; }
  .footer-links a, .footer-store, .footer-telegram { font-size: 14px; }
  .guide-page { padding-bottom: 38px; }
  .guide-overview { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .header { padding-inline: 16px; gap: 10px; }
  .brand { font-size: 21px; }
  .hero-copy h1 { font-size: 28px; }
  .room-table li { grid-template-columns: 65px minmax(0, 1fr) auto; }
}

/* Shared room UI retains the native document and its actions. */
body.cs-v1 { padding-bottom: 0; }
body.cs-v1 > .header { position: relative; z-index: 2; }
body.cs-v1 > main.cs-frame { width: 100%; max-width: 1280px; margin-inline: auto; }
body.cs-v1 > #cs16 { padding: 0 0 1px; line-height: normal; }
body.cs-v1[data-cs-view="catalog"] > #cs16,
body.cs-v1[data-cs-view="room"] > #cs16 { padding: 0 var(--gutter) 48px; }
body.cs-v1 .site-footer.cs-footer { display: block; padding: 0; margin: 0; }
body.cs-v1 .site-footer .brand { font-size: 26px; }
body.cs-v1 .site-footer p { font-size: 16px; margin-top: 5px; }
body.cs-v1 .site-footer a:not(.brand) { max-width: none; }
body.cs-v1 .footer-links { height: auto; }
body.cs-v1 .footer-links a { border: 0; }
#cs16 #entry h1 { font-size: clamp(34px, 4.05vw, 61px); line-height: 1; letter-spacing: -.045em; overflow-wrap: normal; }
#cs16 #entry h1 span { display: inline; font: inherit; letter-spacing: inherit; margin: 0; }
#cs16 #entry .hero-intro { margin-top: 17px; line-height: 1.35; }
#cs16 #entry .hero-meta { margin-top: 12px; line-height: 1.35; }
#cs16 .cs-section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; font-weight: 850; letter-spacing: -.04em; }
#cs16 .cs-section > p { margin-top: 9px; line-height: 1.45; }
#cs16 .cs-button { font: 750 15px/1.2 Inter, Arial, sans-serif; background: #1c231cbe; border-color: #d9dfce91; }
#cs16 .cs-button.cs-primary { color: #151d0d; background: var(--lime); border-color: var(--lime); }
#cs16 .hero-actions .cs-primary { grid-column: 1/-1; font-size: 20px; font-weight: 850; }
#cs16 .room-table li { margin: 0; }
#cs16 .room-table li::before { content: none; }
#cs16 .room-table li.no-map { grid-template-columns: minmax(0, 1fr) auto; }
#cs16 .room-name { overflow-wrap: anywhere; }
#cs16 .room-name h3 { display: flex; align-items: center; gap: 6px; }
#cs16 .room-name .cs-icon { width: 16px; height: 16px; }
#cs16 .room-name span { line-height: 1.4; }
#cs16 .room-table [aria-disabled="true"] { opacity: .7; }
#cs16 .how-copy li { display: list-item; margin: 0; }
#cs16 .how-copy li::before { content: none; }
#cs16 .how-copy ol { list-style: decimal; }
#cs16 .how-copy li + li { margin-top: 6px; }
#cs16 .rooms-more { margin-top: 14px; }
#cs16 [role=status]:empty { display: none; }
#cs16 > .notice { margin-inline: var(--gutter); }
#cs16 .mobsik-game-ad, #cs-guide .mobsik-game-ad { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }
#cs-guide .guide-steps .screen { display: block; margin: 14px 0 0 29px; }
#cs-guide .guide-steps .screen img { width: 100%; }
#cs-guide .guide-toc { height: auto; }
#cs-guide .guide-toc a { display: inline; }
body.cs-v1:not([data-cs-view="room"]):not([data-cs-view="catalog"]) #cs16 .game-links,
body.cs-v1[data-cs-view="room"] :is(.cs-backdrop,.rooms-section,.how-section),
body.cs-v1[data-cs-view="catalog"] :is(.cs-backdrop,.rooms-section,.how-section) { display: none; }

@media (min-width: 761px) and (max-width: 1000px) {
  #cs16 .hero-actions .cs-button { font-size: 14px; }
  #cs16 .hero-actions .cs-primary { font-size: 18px; }
}
@media (max-width: 760px) {
  #cs16 #entry h1 { font-size: clamp(30px, 8.15vw, 54px); }
  #cs16 #entry .hero-intro { margin-top: 10px; }
  #cs16 #entry .hero-meta { margin-top: 7px; }
  #cs16 .hero-actions .cs-button, #cs16 .room-table .cs-button { font-size: 13px; }
  #cs16 .hero-actions .cs-primary { font-size: 17px; }
  #cs16 .room-name h3 { font-size: 17px; }
  body.cs-v1 .site-footer .brand { font-size: 23px; }
  body.cs-v1 .site-footer p { font-size: 14px; }
  body.cs-v1 .header nav a { padding-inline: 0; }
  #cs-guide .guide-steps .screen { margin-left: 0; }
}
@media (max-width: 360px) {
  #cs16 #entry h1 { font-size: 28px; }
}
