:root {
  --bg: #20282b;
  --surface: #262f33;
  --raised: #303a3f;
  --hover: #39464c;
  --line: #46545b;
  --v6-grid: #46545b;
}

body { background: #20282b !important; }

.cm72-hero-photo { filter: brightness(1.84) saturate(1.08); }
.cm72-hero::after {
  background: linear-gradient(180deg, #070a1006 0%, #0a101010 34%, #10171d3d 61%, #20282bc2 92%, #20282b 100%);
}

.v7-auth-aside > img { filter: brightness(1.12) saturate(1.08); }
.v7-auth-aside:after { background: linear-gradient(0deg, #12141680, #12141618); }
.v9-auth-layout .v7-auth-main { background: #242d31; }

#persistent-header .site-nav > a.active::after { bottom: -1px; left: 0; right: 0; height: 2px; border-radius: 2px; }

.cm72-map-preview { isolation: isolate; background: #192329; }
.cm72-map-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #111a1feF 0%, #111a1fdf 40%, #111a1f66 72%, #111a1f10 100%);
  pointer-events: none;
}
.cm72-map-preview::after { display: none !important; }
.cm72-map-preview > img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  filter: saturate(.82) brightness(.88);
}
.cm72-map-preview-mark,
.cm72-map-preview-copy,
.cm72-map-preview-link { position: relative; z-index: 1; }
.cm72-map-preview-copy { max-width: min(470px, 70%); }
.cm72-map-preview-copy > strong { overflow-wrap: anywhere; }
.cm72-map-preview-link { white-space: nowrap; }
.cm72-map-section.cm-react-map-section { display: block; padding: 0 0 74px; border: 0; }
.cm72-map-preview { display: block; height: clamp(250px, 34vw, 390px); padding: 0; background: #192329; background-image: none !important; }
.cm72-map-preview::before { background: linear-gradient(90deg, #10171dcc 0%, #10171d40 56%, #10171d08 100%); }
.cm72-map-preview-content {
  position: absolute; z-index: 1; inset: auto 22px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.cm72-map-preview-brand,.cm72-map-preview-link {
  display: inline-flex; align-items: center; gap: 11px; min-height: 48px; padding: 9px 14px;
  border: 1px solid #ffffff29; border-radius: 10px; background: #11191edb; color: #f1f5f6;
  backdrop-filter: blur(12px);
}
.cm72-map-preview-brand img { width: 28px; height: 28px; object-fit: contain; }
.cm72-map-preview-brand strong { font-size: 15px; font-weight: 650; }
.cm72-map-preview-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cm72-map-preview-link .icon { width: 15px; height: 15px; }

.payment-methods .payment-brand { flex: 0 0 auto; display: block; object-fit: contain; }
.payment-brand-sbp { width: 36px; height: 36px; }
.payment-brand-mir { width: 70px; height: 34px; object-fit: cover !important; border-radius: 4px; }
.payment-brand-card { width: 70px; height: 34px; object-fit: cover !important; border-radius: 4px; }

.cm-react-map-page {
  width: min(1760px, calc(100% - 64px)); min-height: calc(100svh - 112px); margin: 8px auto 0;
  display: flex; flex-direction: column; animation: cm-map-enter .28s ease-out both;
}
.cm-react-map-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 5px 0 14px; }
.cm-react-map-header h1 { margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.045em; }
.cm-react-map-service { display: inline-flex; align-items: center; gap: 9px; color: #c5d0d2; font-size: 13px; font-weight: 600; }
.cm-react-map-service img { width: 28px; height: 28px; object-fit: contain; }
.cm-react-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; }
.cm-react-map-worlds { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.cm-react-map-worlds::-webkit-scrollbar { display: none; }
.cm-react-map-worlds button,.cm-react-map-fullscreen {
  min-height: 40px; padding: 8px 13px; border: 1px solid #3a464b; border-radius: 8px;
  background: #20272b; color: #bdc8ca; font: inherit; font-size: 12px; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cm-react-map-worlds button:hover,.cm-react-map-fullscreen:hover { border-color: #68777e; color: #f3f7f8; }
.cm-react-map-worlds button[aria-pressed="true"] { border-color: #35d99b; color: #52e4ad; background: #17352d; }
.cm-react-map-fullscreen { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.cm-react-map-stage { flex: 1 0 560px; min-height: 560px; border: 1px solid #3b474c; border-radius: 12px; }
.cm-react-map-stage:fullscreen { flex-basis: 100vh; border: 0; border-radius: 0; }
.cm-react-map-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; color: #c6d0d1; }
.cm-react-map-empty img { width: 46px; height: 46px; object-fit: contain; }
.cm-react-map-empty p { margin: 0; }
.cm-react-map-empty .btn { min-height: 38px; }

.cm-react-rules { width: min(880px, 100%); margin: 50px auto 80px; }
.cm-react-rules > h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.05em; }
.cm-react-rules .prose { color: #d3dcdd; line-height: 1.8; }
.cm-react-rules-support { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: #59e2ae; font-size: 13px; font-weight: 600; }

.cm-link-route { min-height: calc(100svh - 90px); display: grid; place-items: center; padding: 28px 20px 46px; }
.cm-link-flow {
  width: min(560px, 100%); min-height: 480px; align-self: center; padding: clamp(28px, 5vw, 54px);
  border: 1px solid #414c52; border-radius: 18px;
  background: linear-gradient(145deg, #303b40ee, #20282bf5 64%), url("photos/copimine-night.webp") center / cover;
  box-shadow: 0 24px 80px #0004; animation: cm-map-enter .3s ease-out both;
}
.cm-link-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; color: #859297; font-size: 11px; font-variant-numeric: tabular-nums; }
.cm-link-progress span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #46535a; border-radius: 50%; }
.cm-link-progress span.is-done,.cm-link-progress span.is-current { border-color: #35d99b; color: #57e4b0; }
.cm-link-progress i { width: 42px; height: 1px; background: #46535a; }
.cm-link-progress span { display: inline-flex; align-items: center; gap: 9px; width: auto; height: auto; border: 0; border-radius: 0; }
.cm-link-progress span b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #46535a; border-radius: 50%; font: inherit; }
.cm-link-progress span small { color: #a7b3b7; font-size: 12px; }
.cm-link-progress span.is-done b,.cm-link-progress span.is-current b { border-color: #35d99b; color: #57e4b0; }
.cm-link-steps { display: grid; gap: 10px; margin: 20px 0 0; padding-left: 22px; color: #d2dbdc; line-height: 1.55; }
.cm-link-steps li::marker { color: #57e4b0; font-weight: 700; }
body:has(.v9-auth-layout) .v6-cookie-banner { position: fixed; left: 24px; right: auto; bottom: 24px; width: min(360px,calc(100vw - 48px)); }
body:has(.cm-link-route) .v6-cookie-banner { position: relative; left: auto; right: auto; bottom: auto; width: min(570px,calc(100vw - 40px)); margin: 20px auto 24px; }
.cm-link-flow .kicker { color: #58dfaa; }
.cm-link-flow h1 { margin: 12px 0; font-size: clamp(29px, 5vw, 42px); line-height: 1.1; letter-spacing: -.05em; }
.cm-link-flow > p { color: #b9c5c8; line-height: 1.65; }
.cm-link-form { display: grid; gap: 16px; margin-top: 28px; }
.cm-link-form .field { display: grid; gap: 9px; color: #d2dbdc; font-size: 13px; }
.cm-link-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #46535a; border-radius: 8px; background: #11191dbb; color: #fff; font: inherit; }
.cm-link-form input:focus-visible { outline: 2px solid #46dda8; outline-offset: 2px; }
.cm-link-form .form-error:not(:empty) { color: #ffaaa1; font-size: 12px; }
.cm-link-form .btn { justify-self: start; min-height: 46px; }
.cm-link-status { margin: 18px 0 0; font-size: 12px; }
.cm-link-restart { margin-top: 13px; padding: 6px 0; border: 0; background: transparent; color: #9babad; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cm-link-complete { display: flex; flex-direction: column; justify-content: center; }

html, body, #app { min-height: 100%; }
body { min-height: 100svh; display: flex; flex-direction: column; }
#app { display: flex; flex: 1 0 auto; flex-direction: column; min-height: 100svh; }
#page-root { display: flex; flex: 1 0 auto; flex-direction: column; }
#page-root > #view { flex: 1 0 auto; }
.cm-link-onboarding { width: 100%; margin: 28px auto 34px; }
.cm-link-onboarding .cm-link-flow { width: min(100%, 720px); min-height: 0; margin: 0 auto; }
.cm-link-complete .btn { align-self: flex-start; margin-top: 22px; }
.cm-link-note { margin: 16px 0 0; color: #aebabc; font-size: 12px; line-height: 1.6; }
.cm-account-link-gate {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #f2f6f5;
  background: #12191b url("photos/copimine-night.webp") center 48% / cover no-repeat;
}
body:has(.cm-account-link-gate) { height: 100svh; min-height: 100svh; overflow: hidden; }
.cm-account-link-gate::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #10181952 0%, #121a1b70 50%, #141b1c52 100%),
    linear-gradient(0deg, #10151699 0%, #10151612 58%, #10151629 100%);
}
.cm-link-gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1260px, calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
}
.cm-link-gate-header > a { display: block; flex-shrink: 0; }
.cm-link-gate-header > a img { display: block; width: 152px; height: auto; object-fit: contain; }
.cm-link-gate-session { display: flex; align-items: center; gap: 20px; color: #bdc9c8; font-size: 12px; }
.cm-link-gate-session strong { color: #f0f5f3; font-weight: 650; }
.cm-link-gate-logout {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #ffffff28;
  border-radius: 7px;
  background: #10171958;
  color: #e4ecea;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.cm-link-gate-logout:hover { border-color: #35d99b82; background: #193128bd; }
.cm-link-gate-main {
  display: grid;
  place-items: center;
  width: min(760px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(30px, 7vh, 72px) 0;
}
.cm-account-link-gate .cm-link-flow {
  width: 100%;
  min-height: 0;
  margin: auto;
  padding: clamp(12px, 2vw, 24px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.cm-account-link-gate .cm-link-flow h1 { font-size: clamp(30px, 3.6vw, 41px); }
.cm-account-link-gate .cm-link-progress { margin-bottom: 32px; }
.cm-account-link-gate .cm-link-form { margin-top: 24px; }
.cm-account-link-gate .cm-link-form .form-error:empty { display: none; margin: 0; padding: 0; }
.cm-account-link-gate .cm-link-form .btn { min-height: 48px; }
.cm-account-link-gate .cm-link-steps { padding-left: 20px; }
.cm-account-link-gate .cm-link-form input { background: #0d1416; }
.cm-account-link-gate .cm-link-flow h1,
.cm-account-link-gate .cm-link-flow > p { text-shadow: 0 1px 10px #081013a6; }
.cm-link-gate-logout:focus-visible,
.cm-account-link-gate a:focus-visible,
.cm-account-link-gate button:focus-visible,
.cm-account-link-gate input:focus-visible { outline: 2px solid #62e9b8; outline-offset: 3px; }
@keyframes cm-map-enter { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }

.cm72-gallery-stage {
  position: relative;
  height: 520px;
  perspective: 1450px;
  perspective-origin: 50% 43%;
  transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.cm72-gallery-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cm72-gallery-stage.is-dragging { cursor: grabbing; }
.cm72-carousel-slide {
  position: absolute;
  inset-block: 22px 18px;
  inset-inline: 0;
  width: min(76%, 860px);
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff28;
  border-radius: 16px;
  background: #182025;
  color: inherit;
  text-align: left;
  box-shadow: 0 18px 65px #0006;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
  will-change: transform, opacity;
}
.cm72-carousel-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(.96) saturate(.94);
}
.cm72-carousel-slide::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, #071014d9);
  pointer-events: none;
}
.cm72-carousel-slide[aria-current="true"] { border-color: #ffffff58; }
.cm72-carousel-slide[aria-hidden="true"] { visibility: hidden; }
.cm72-carousel-caption {
  position: absolute;
  z-index: 1;
  inset-inline: 27px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  pointer-events: none;
}
.cm72-carousel-caption strong { color: #fff; font-size: 19px; letter-spacing: -.025em; }
.cm72-carousel-caption small { color: #d0dbdd; font-size: 12px; }
.cm72-gallery-hint { display: none; }

.cm-initial-skeleton { background: #20282b; }
.cm-skeleton-header {
  left: 50%;
  right: auto;
  width: min(1240px, calc(100% - 80px));
  padding-inline: 32px;
  transform: translateX(-50%);
}
.cm-skeleton-hero {
  width: min(1240px, calc(100% - 80px));
  margin: 28px auto 0;
  border-radius: 22px;
  overflow: hidden;
}
.cm-skeleton-hero { align-items: flex-end; justify-content: center; padding: 0 28px clamp(105px, 12vh, 150px); text-align: center; }
.cm-skeleton-copy { margin-inline: auto; text-align: center; }
.cm-skeleton-copy i,.cm-skeleton-copy b,.cm-skeleton-copy span,.cm-skeleton-copy em,.cm-skeleton-copy small { margin-left: auto; margin-right: auto; }
.cm-skeleton-hero::before { filter: brightness(1.84) saturate(1.08); }
.cm-skeleton-hero::after {
  background: linear-gradient(180deg, #070a1006 0%, #0a101010 34%, #10171d3d 61%, #20282bc2 92%, #20282b 100%);
}

.v9-auth-field-hint { display: block; margin: -11px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.v6-map-shell { width: min(1760px, calc(100% - 64px)); max-width: calc(100vw - 32px); min-width: 0; }
body:has(.v6-map-shell) { overflow-x: clip; }
.v6-map-title { min-width: 0; flex-wrap: wrap; }
.v6-map-title > * { min-width: 0; }
.v6-map-title h1 { max-width: 100%; overflow-wrap: anywhere; }
.v6-map-toolbar { min-width: 0; flex-wrap: wrap; }
.v6-world-tabs { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.v6-world-tabs::-webkit-scrollbar { display: none; }
.v6-world-tabs > button { flex: 0 0 auto; white-space: nowrap; }

@media (min-width: 1600px) {
  .cm-skeleton-header { width: min(1320px, calc(100% - 100px)); }
  .cm-skeleton-hero { width: min(1320px, calc(100% - 100px)); }
}
@media (max-width: 1100px) {
  .cm-skeleton-header { width: calc(100% - 48px); }
  .cm-skeleton-hero { width: calc(100% - 48px); }
  .cm-link-gate-main { width: calc(100% - 48px); }
  .cm-link-gate-header { width: calc(100% - 48px); }
}
@media (max-width: 899px) {
  .cm-skeleton-hero { justify-content: center; padding: 0 28px 90px; }
  .cm-skeleton-copy { text-align: center; }
  .cm-skeleton-copy i,
  .cm-skeleton-copy b,
  .cm-skeleton-copy span,
  .cm-skeleton-copy em,
  .cm-skeleton-copy small { margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
  .cm-link-gate-header { width: calc(100% - 28px); min-height: 66px; }
  .cm-link-gate-header > a img { width: 126px; }
  .cm-link-gate-main { width: calc(100% - 28px); padding: 22px 0 34px; }
  .cm-account-link-gate .cm-link-flow { padding: 12px 0; }
  .cm-link-gate-session { gap: 10px; }
  .cm-link-gate-session > span { font-size: 11px; }
  .cm72-hero-photo { filter: brightness(1.9) saturate(1.1); }
  .cm72-hero::after { background: linear-gradient(180deg, #070a1006 0%, #0a10100c 32%, #10171d38 60%, #20282bd4 92%, #20282b 100%); }
  .cm-skeleton-header { top: 14px; width: calc(100% - 28px); height: 68px; padding-inline: 13px; }
  .cm-skeleton-hero { width: calc(100% - 28px); height: 650px; min-height: 580px; max-height: calc(100svh - 33px); margin-top: 14px; padding: 0 15px 77px; border-radius: 16px; }
  .cm-skeleton-hero::before { background-position: 54% 32%; filter: brightness(1.9) saturate(1.1); }
  .cm72-gallery-stage { height: 350px; perspective: 1000px; }
  .cm72-carousel-slide { inset-block: 13px 13px; width: calc(100% - 26px); border-radius: 12px; }
  .cm72-carousel-caption { inset-inline: 17px; bottom: 17px; }
  .cm72-carousel-caption strong { font-size: 15px; }
  .cm72-carousel-caption small { font-size: 10px; }
  .v6-map-shell { width: calc(100% - 32px); margin: 20px auto 35px; }
  .v6-map-title { flex-direction: column; align-items: flex-start; gap: 8px; }
  .v6-map-title h1 { font-size: clamp(29px, 8vw, 36px); }
  .v6-map-toolbar { align-items: stretch; }
  .v6-world-tabs { width: 100%; flex: 1 1 100%; }
  .v6-map-toolbar > .icon-btn { align-self: flex-end; }
  .cm72-map-preview-copy { max-width: 82%; }
  .cm72-map-section.cm-react-map-section { padding-bottom: 48px; }
  .cm72-map-preview { height: 250px; }
  .cm72-map-preview-content { inset: auto 12px 12px; gap: 8px; }
  .cm72-map-preview-brand,.cm72-map-preview-link { min-height: 42px; padding: 7px 10px; gap: 7px; }
  .cm72-map-preview-brand img { width: 24px; height: 24px; }
  .cm72-map-preview-brand strong { font-size: 12px; }
  .cm72-map-preview-link { font-size: 11px; }
  .payment-brand-sbp { width: 32px; height: 32px; }
  .payment-brand-mir { width: 60px; height: 30px; }
  .payment-brand-card { width: 60px; height: 30px; }
  .cm-react-map-page { width: calc(100% - 28px); min-height: calc(100svh - 82px); margin-top: 8px; }
  .cm-react-map-header { padding-bottom: 10px; }
  .cm-react-map-header h1 { font-size: 29px; }
  .cm-react-map-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .cm-react-map-worlds { width: 100%; }
  .cm-react-map-worlds button { flex: 1 0 auto; padding-inline: 9px; }
  .cm-react-map-fullscreen { min-height: 36px; margin-left: auto; }
  .cm-react-map-stage { flex-basis: 64svh; min-height: 400px; }
  .cm-react-rules { margin: 32px auto 56px; }
  .cm-link-route { min-height: calc(100svh - 66px); padding: 18px 14px 32px; }
  .cm-link-flow { min-height: 0; padding: 28px 22px; border-radius: 14px; }
  .cm-link-progress { margin-bottom: 27px; }
}

@media (max-width: 420px) {
  .cm-link-gate-session > span { display: none; }
  .cm-link-gate-header > a img { width: 112px; }
  .cm-link-gate-main { padding-top: 18px; }
  .cm-react-map-stage { min-height: 360px; }
  .cm-react-map-header h1 { font-size: 27px; }
}

@media (max-width: 760px) {
  body:has(.v9-auth-layout) .v6-cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cm72-carousel-slide,
  .cm72-hero-photo,
  .cm-skeleton-nav,
  .cm-skeleton-cart,
  .cm-skeleton-action,
  .cm-skeleton-copy i,
  .cm-skeleton-copy b,
  .cm-skeleton-copy span,
  .cm-skeleton-copy em,
  .cm-skeleton-copy small { animation: none !important; transition: none !important; }
  .cm-react-map-page,.cm-link-flow { animation: none !important; }
}
