
:root {
  --ink: #101010;
  --wine: #37090f;
  --red: #8f202c;
  --rose: #c98b95;
  --paper: #e8ded5;
  --line: #693039;
  --muted: #ae9a99;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* Авторизация */

.login-page {
  background:
    radial-gradient(circle at 76% 14%, #401116 0, transparent 35rem),
    #0f0e0e;
}

.login-layout {
  min-height: 100vh;
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.login-photo {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #472128;
  background: #151011;
}

.login-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: grayscale(1) sepia(0.28) brightness(0.52) contrast(1.08);
}

.login-photo:after {
  content: "";
  position: absolute;
  inset: 12% 18%;
  border: 1px solid var(--red);
  transform: rotate(-6deg);
  box-shadow: 20px 20px 0 #250e12;
}

.login-photo:before {
  content: "LANA\ADEL\AREY";
  white-space: pre;
  position: absolute;
  z-index: 2;
  bottom: 12%;
  left: 8%;
  font:
    900 clamp(42px, 8vw, 110px)/0.78 Georgia,
    serif;
  color: #dcaeb216;
}

.login-photo span {
  position: absolute;
  z-index: 3;
  left: 30px;
  bottom: 24px;
  font: 10px monospace;
  letter-spacing: 0.17em;
}

.login-card {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px clamp(34px, 7vw, 100px);
  border-left: 1px solid #3e2025;
}

.kicker {
  margin: 0 0 15px;
  color: var(--rose);
  font: 700 10px monospace;
  letter-spacing: 0.18em;
}

.login-card h1,
.intro h1,
.flow h1,
.done h1,
.transition h1 {
  margin: 0;
  font:
    900 clamp(48px, 7.4vw, 98px)/0.79 Georgia,
    serif;
  letter-spacing: -0.075em;
}

.login-card h1 em {
  color: var(--rose);
  font-weight: 400;
}

.login-card > p {
  max-width: 320px;
  margin: 28px 0;
  color: #b7a8a9;
  line-height: 1.65;
}

.login-card form {
  max-width: 420px;
  display: grid;
  gap: 15px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--rose);
  font: 700 10px monospace;
  letter-spacing: 0.14em;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  background: #171415;
  border: 1px solid #663039;
  color: var(--paper);
  font:
    15px Arial,
    sans-serif;
  letter-spacing: normal;
}

input:focus,
textarea:focus {
  border-color: var(--rose);
  outline: 0;
}

small,
.error {
  min-height: 14px;
  margin: 0;
  color: var(--rose);
  font: 12px monospace;
}

.error {
  color: #ff9da5;
}

/* Общие кнопки */

form button,
.yes,
.continue,
.rocky-next {
  border: 0;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
}

form button b,
.yes b {
  float: right;
}

/* Основной интерфейс */

.app {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 84% 2%, #3a0d14, transparent 39%),
    var(--ink);
}

.logout {
  position: fixed;
  z-index: 5;
  top: 20px;
  right: 22px;
  border: 0;
  background: transparent;
  color: var(--rose);
  font: 10px monospace;
  letter-spacing: 0.14em;
}

.zine {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
}

.zine header {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-block: 1px solid var(--line);
  color: var(--rose);
  font: 10px monospace;
  letter-spacing: 0.12em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 45px;
  align-items: center;
  padding: 62px 0;
}

.copy > p:not(.kicker) {
  max-width: 390px;
  color: #c8babc;
  font-size: 18px;
  line-height: 1.65;
}

.tape {
  width: 250px;
  margin-top: 35px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font: 12px monospace;
  letter-spacing: 0.15em;
}

.tape i {
  display: inline-block;
  width: 80px;
  height: 8px;
  margin: 0 10px;
  background: var(--red);
}

/* Коллажи */

.collages {
  position: relative;
  height: 520px;
}

.collages figure {
  position: absolute;
  width: 43%;
  margin: 0;
  padding: 8px 8px 25px;
  background: #241112;
  box-shadow: 10px 10px 0 #080707;
}

.collages figure:nth-child(1) {
  top: 0;
  left: 4%;
  transform: rotate(-5deg);
}

.collages figure:nth-child(2) {
  top: 13%;
  right: 2%;
  transform: rotate(5deg);
}

.collages figure:nth-child(3) {
  bottom: 0;
  left: 24%;
  transform: rotate(-2deg);
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

figcaption {
  margin-top: 7px;
  color: var(--rose);
  font: 9px monospace;
}

/* Вопрос о встрече */

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.question p {
  max-width: 500px;
  margin: 0;
  font:
    700 22px Georgia,
    serif;
}

#no-zone {
  position: relative;
  width: 290px;
  height: 64px;
}

.yes {
  width: 130px;
}

.no {
  position: absolute;
  left: 145px;
  height: 52px;
  padding: 0 25px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--rose);
  transition: transform 0.23s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Экран Rocky */

.transition {
  position: relative;
  display: grid;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 84% 2%, #3a0d14, transparent 39%),
    var(--ink);
  text-align: center;
}

.rocky {
  width: min(480px, 86vw);
  height: 78vh;
  height: 78dvh;
  object-fit: cover;
  opacity: 0.65;
  filter: contrast(1.2);
}

.scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    #fff1 0 2px,
    transparent 2px 7px
  );
}

.transition p,
.transition h1,
.transition small,
.rocky-next {
  position: absolute;
  z-index: 2;
  margin: 0;
}

.transition p {
  top: 34%;
  font: 12px monospace;
  letter-spacing: 0.34em;
}

.transition h1 {
  font-size: clamp(72px, 12vw, 150px);
  mix-blend-mode: screen;
}

.transition small {
  bottom: 12%;
  font: 10px monospace;
  letter-spacing: 0.2em;
}

.rocky-next {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 40px));
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.rocky-next:hover {
  background: var(--rose);
}

.rocky-next:active {
  background: var(--red);
  color: var(--paper);
}

/* Календарь и выбор времени */

.flow {
  width: min(680px, 100%);
  margin: auto;
  padding: clamp(32px, 7vw, 80px) 20px;
}

.flow h1 {
  margin-bottom: 34px;
  font-size: clamp(46px, 10vw, 90px);
}

.calendar {
  padding: 18px;
  border: 1px solid var(--line);
  background: #160d0f;
}

.month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font: 12px monospace;
  letter-spacing: 0.12em;
}

.month button {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 20px;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--rose);
  font: 9px monospace;
  text-align: center;
  word-spacing: 20px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.days button {
  aspect-ratio: 1;
  border: 0;
  background: #251417;
  color: var(--paper);
}

.days button:disabled {
  color: #61454a;
  text-decoration: line-through;
}

.picked {
  background: var(--red) !important;
  color: #fff !important;
}

.times {
  margin-top: 30px;
}

.times p {
  color: var(--rose);
  font: 10px monospace;
  letter-spacing: 0.15em;
}

.times button {
  width: 24%;
  margin: 0.5%;
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
}

.continue {
  width: 100%;
  margin-top: 25px;
}

/* Выбор формата встречи */

.plans {
  display: grid;
  gap: 10px;
}

.plans button {
  display: grid;
  grid-template-columns: 55px 1fr;
  padding: 19px;
  border: 1px solid var(--line);
  background: #160d0f;
  color: var(--paper);
  text-align: left;
}

.plans b {
  grid-row: span 2;
  color: var(--rose);
  font: 16px monospace;
}

.plans small {
  grid-column: 2;
}

.wish {
  margin-top: 25px;
}

.wish textarea {
  height: 105px;
  resize: vertical;
}

.wish small {
  text-align: right;
}

/* Финальный экран */

.done {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  min-height: 100vh;
  padding: 7vw;
}

.mustang {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.done h1 {
  font-size: clamp(65px, 11vw, 130px);
}

.done dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font: 12px monospace;
}

.done dt {
  color: var(--rose);
}

.done dd {
  margin: 0;
}

.change {
  margin-top: 20px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--rose);
  background: transparent;
  color: var(--paper);
  font: 10px monospace;
  letter-spacing: 0.1em;
}


/* Rocky — VHS animation */

.rocky {
  animation: rocky-jitter 2.4s steps(1, end) infinite;
  will-change: transform;
}

@keyframes rocky-jitter {
  0%, 30%, 38%, 70%, 85%, 100% {
    transform: translate(0, 0);
  }

  32% {
    transform: translate(2px, -1px);
  }

  34% {
    transform: translate(-2px, 1px);
  }

  36% {
    transform: translate(1px, 0);
  }

  72% {
    transform: translate(-1px, -2px);
  }

  74% {
    transform: translate(2px, 1px);
  }

  76% {
    transform: translate(0, 0);
  }
}

/* Кратковременные горизонтальные помехи */

.transition::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 45px,
    rgba(255, 255, 255, 0.13) 46px 48px,
    transparent 49px 90px
  );
  animation: rocky-interference 3s steps(1, end) infinite;
}

@keyframes rocky-interference {
  0%, 25%, 32%, 65%, 72%, 100% {
    opacity: 0;
  }

  27%, 29%, 67%, 69% {
    opacity: 0.8;
  }
}


/* Мобильная адаптация */

@media (max-width: 700px) {
  .login-layout,
  .intro-grid,
  .done {
    grid-template-columns: 1fr;
  }

  .login-photo {
    min-height: 300px;
    height: 42vh;
    border: 0;
  }

  .login-photo img {
    object-position: center 58%;
  }

  .login-card {
    min-height: unset;
    padding: 36px 24px;
  }

  .login-photo:before {
    font-size: 52px;
  }

  .collages {
    height: 435px;
  }

  .collages figure {
    width: 50%;
  }

  figure img {
    height: auto;
  }

  .question {
    display: block;
  }

  .question p {
    margin-bottom: 22px;
  }

  /* Rocky на мобильных устройствах */

  .rocky {
    width: min(86vw, 420px);
    height: 70vh;
    height: 70dvh;
  }

  .transition h1 {
    font-size: clamp(64px, 17vw, 110px);
  }

  .rocky-next {
    bottom: max(24px, env(safe-area-inset-bottom));
  }

  .done {
    gap: 20px;
    padding: 30px 20px;
  }

  .mustang {
    max-height: 42vh;
  }

  .times button {
    width: 32%;
  }
}

/* Уменьшение анимаций */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
