
:root {
  --yellow: #ffcc00;
  --ink: #111216;
  --muted: #737782;
  --line: #e6e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #1414140d;
}

.nav {
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.8px;
  color: #111216;
  white-space: nowrap;
}

.crown {
  width: 24px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 13px;
  font-weight: 650;
  color: #3c3d40;
}

.nav-links a {
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: #9a7800;
}

.nav-right {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: #666970;
  font-size: 12px;
  white-space: nowrap;
}

.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #ffcc00;
  color: #171717;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.button-small:hover {
  background: #ffda35;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #d9ab002e;
}

@media (max-width: 760px) {
  .header {
    height: 66px;
  }

  .nav {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-links {
    gap: 14px;
    font-size: 12px;
  }

  .nav-links a:nth-child(n+3) {
    display: none;
  }

  .nav-right {
    gap: 10px;
    font-size: 11px;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 16px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .nav-links a:nth-child(2) {
    display: none;
  }

  .nav-right > span {
    display: none;
  }
}.page {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ЛЕВАЯ ЧАСТЬ — ТОЛЬКО РИСУНКИ И КАРТОЧКИ */
.art-side {
  min-height: 790px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 45% 42%, #fff 0%, #fffefa 48%, #fbf8ed 100%);
}
.art-side::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 500px;
  left: -300px;
  top: 110px;
  border-radius: 48%;
  background: linear-gradient(135deg, #fff0a3, #fff9d9);
  transform: rotate(-20deg);
}
.art-side::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 260px;
  right: -180px;
  bottom: -90px;
  border-radius: 50%;
  background: #fff0a6;
  transform: rotate(-18deg);
}

/* Две карточки расположены вертикально и не пересекаются */
.game-stack {
  position: absolute;
  inset: 38px 20px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  z-index: 2;
}
.game-card {
  position: relative;
  width: min(350px, 78%);
  padding: 11px;
  border: 1px solid #f0d66a;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 18px 45px #30250016;
  transition: transform .25s, box-shadow .25s;
}
.game-card:first-child { transform: rotate(-3deg) translateX(-24px); }
.game-card:last-child {
  border-color: #ded1ff;
  transform: rotate(3deg) translateX(24px);
}
.game-card:first-child:hover {
  transform: rotate(-1deg) translateY(-4px) translateX(-24px);
}
.game-card:last-child:hover {
  transform: rotate(1deg) translateY(-4px) translateX(24px);
}
.game-image-wrap {
  width: 100%;
  height: 178px;
  overflow: hidden;
  border-radius: 12px;
  background: #5311a3;
}
.game-card:nth-child(2) .game-image-wrap {
  background: #eee8ff;
}
.game-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.game-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 5px 3px;
}
.game-card-label strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.game-card-label span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.game-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 20px;
}
.game-card:nth-child(2) .game-arrow { background: #e9ddff; }

/* Декоративные геометрические элементы */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.doodle-cross {
  top: 8%;
  left: 13%;
  width: 46px;
  height: 46px;
  transform: rotate(12deg);
}
.doodle-triangle {
  top: 12%;
  right: 12%;
  width: 54px;
  height: 54px;
  transform: rotate(17deg);
}
.doodle-spark {
  right: 10%;
  bottom: 9%;
  width: 43px;
  height: 43px;
}
.doodle-note {
  position: absolute;
  left: 7%;
  bottom: 8%;
  width: 80px;
  height: 84px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border-radius: 5px;
  box-shadow: 8px 10px 0 #1717170b;
  transform: rotate(-12deg);
}
.doodle-note svg { width: 48px; height: 48px; }
.doodle-pencil {
  position: absolute;
  right: 8%;
  top: 36%;
  width: 24px;
  height: 125px;
  border: 3px solid #111216;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, #ffcc00 0 68%, #e8b900 68%);
  transform: rotate(35deg);
  box-sizing: border-box;
}
.doodle-pencil::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -3px;
  width: 24px;
  height: 17px;
  border: 3px solid #111216;
  border-radius: 6px 6px 0 0;
  background: #252830;
  box-sizing: border-box;
}
.doodle-pencil::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -3px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #111216;
}

/* ПРАВАЯ ЧАСТЬ — РЕГИСТРАЦИЯ */
.form-side {
  display: grid;
  place-items: center;
  padding: 42px clamp(24px, 5vw, 75px);
  background: #fff;
}
.form-card {
  width: min(100%, 480px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid #f0f0ed;
  border-radius: 25px;
  background: #ffffffed;
  box-shadow: 0 18px 55px #14141408;
}
.form-accent {
  width: 44px;
  height: 6px;
  border-radius: 9px;
  background: var(--yellow);
  margin-bottom: 21px;
}
h1 {
  margin: 0;
  font-size: clamp(32px, 3.2vw, 43px);
  letter-spacing: -.055em;
  line-height: 1.08;
}
.form-intro {
  margin: 15px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.fields { display: grid; gap: 13px; }
.field {
  height: 57px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within {
  border-color: #e2b600;
  box-shadow: 0 0 0 3px #ffcc001f;
}
.field > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: #596173;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.field input::placeholder { color: #858b98; opacity: 1; }
.toggle-password {
  border: 0;
  padding: 5px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #596173;
  cursor: pointer;
}
.toggle-password svg { width: 20px; height: 20px; }
.submit {
  width: 100%;
  min-height: 56px;
  margin-top: 17px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #171717;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.submit:hover {
  background: #ffda35;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #d9ab002e;
}

.submit span {
  font-size: 21px;
  font-weight: 500;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.google {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d7dbe3;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.google:hover { background: #fafafa; border-color: #b9bfcb; }
.google-mark {
  font-size: 20px;
  font-weight: 950;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.signin {
  margin: 25px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.signin a {
  color: #a17b00;
  font-weight: 850;
  margin-left: 5px;
}
.terms {
  margin: 16px 0 0;
  text-align: center;
  color: #8a8d95;
  font-size: 10px;
  line-height: 1.6;
}
.terms a {
  color: #555a64;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 950px) {
  .nav { width: calc(100% - 36px); gap: 22px; }
  .nav-links { gap: 17px; }
  .page { grid-template-columns: .9fr 1.1fr; }
  .art-side { min-height: 750px; }
  .game-card { width: 82%; }
  .game-image-wrap { height: 150px; }
  .form-side { padding: 28px 22px; }
  .form-card { padding: 30px; }
}
@media (max-width: 720px) {
  .header { height: 68px; }
  .nav { gap: 12px; }
  .brand { font-size: 25px; }
  .crown { width: 30px; }
  .nav-links { display: none; }
  .nav-right { gap: 10px; font-size: 11px; }
  .button-small { min-height: 37px; padding-inline: 17px; }
  .page { display: flex; flex-direction: column; }
  .art-side { min-height: 700px; order: 1; }
  .form-side { order: 2; padding: 25px 16px 40px; }
  .game-stack { inset: 45px 12px; gap: 24px; }
  .game-card { width: min(350px, 78%); }
  .game-image-wrap { height: 175px; }
  .doodle-pencil { right: 5%; top: 43%; }
  .doodle-note { left: 4%; bottom: 5%; }
  .form-card { max-width: 480px; padding: 28px 22px; }
  h1 { font-size: 35px; }
}
@media (max-width: 420px) {
  .nav-right > span { display: none; }
  .art-side { min-height: 625px; }
  .game-stack { gap: 20px; }
  .game-card { width: 82%; }
  .game-image-wrap { height: 145px; }
  .game-card-label strong { font-size: 13px; }
  .doodle-cross { left: 6%; }
  .doodle-triangle { right: 5%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media (max-width: 720px) {
  .art-side {
    display: none;
  }

  .page {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 68px);
  }

  .form-side {
    flex: 1;
    padding: 28px 16px;
  }

  .form-card {
    width: 100%;
    max-width: 480px;
  }
}

.status-message {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f0d66a;
  border-radius: 10px;
  background: #fff9df;
  color: #29240e;
  font-size: 13px;
  line-height: 1.5;
}
.status-message.visible { display: block; }
.status-message.error {
  border-color: #efb7b7;
  background: #fff1f1;
  color: #8c2424;
}
.submit:disabled { opacity: .65; cursor: wait; transform: none; }
