/* Зона детокса: the site's own adjustments on the 00е style, shared by every page. */

/* Opening: a full-bleed surface ground under a transparent header. */
.zone-opening {
  position: relative;
  min-height: min(100svh, 880px);
  padding: 6px 6px 28px;
  color: #fff;
  overflow: hidden;
}

.zone-opening__inner {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.zone-opening .y2k-topbar {
  background: rgba(0, 0, 80, .55);
}

.zone-opening .y2k-header {
  background: transparent;
  border-color: var(--y2k-cyan);
}

.zone-opening .y2k-wordart span {
  padding: .04em .1em .14em;
}

.zone-opening .y2k-wordart span + span {
  font-size: .44em;
  line-height: 1.2;
}

.zone-opening .y2k-burst {
  font-size: 22px;
  letter-spacing: -1px;
}

.zone-nav {
  margin-top: 12px;
}

.zone-nav .y2k-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-nav .y2k-nav a[aria-current="page"] {
  background: var(--y2k-pink);
  color: #000;
}

.zone-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px;
  align-items: center;
  min-height: 56svh;
  margin-top: 24px;
}

.zone-hero__text {
  padding: 20px 22px;
  border: 3px double var(--y2k-cyan);
  background: rgba(0, 0, 0, .62);
}

.zone-hero__title {
  margin: 0 0 14px;
  font: 900 clamp(26px, 4vw, 40px)/1.05 var(--y2k-display);
  color: var(--y2k-yellow);
  text-shadow: 3px 3px 0 var(--y2k-pink);
}

.zone-hero__text p {
  margin: 0 0 14px;
  font-size: 15px;
}

.zone-hero__note {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--y2k-cyan);
}

.zone-deck {
  position: relative;
  height: 380px;
  perspective: 900px;
}

.zone-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 178px;
  height: 262px;
  margin: 0;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, var(--y2k-violet) 0 10px, var(--y2k-pink) 10px 20px);
  box-shadow: 6px 6px 0 #000;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  cursor: pointer;
}

.zone-card--front {
  transform: translate(-50%, -50%) rotate(0deg);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, 1, .3, 1);
}

.zone-card--front.is-open {
  transform: translate(-50%, -50%) rotateY(180deg);
}

.zone-card__back,
.zone-card__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 9px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.zone-card__back {
  color: var(--y2k-yellow);
  font: 900 28px/1 var(--y2k-display);
}

.zone-card__face {
  transform: rotateY(180deg);
  background: #fff;
  color: #000;
  font: bold 15px/1.35 var(--y2k-body);
  text-align: center;
}

/* Sections below the opening: each one a Y2K box on the starfield. */
.zone-section {
  position: relative;
  width: min(1000px, calc(100% - 12px));
  margin: 56px auto 0;
  color: #fff;
}

.zone-section__title {
  margin: 0 0 18px;
  font: 900 clamp(30px, 4.6vw, 56px)/1 var(--y2k-display);
  color: var(--y2k-yellow);
  text-shadow: 3px 3px 0 var(--y2k-pink);
}

.zone-lede {
  max-width: 60ch;
  margin: 0 0 22px;
  font-size: 16px;
}

/* Morning: five steps in a row, the first one a link. */
.zone-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-steps li {
  padding: 16px 12px 18px;
  border: 3px double var(--y2k-cyan);
  background: rgba(0, 0, 0, .6);
}

.zone-steps__n {
  display: block;
  margin-bottom: 8px;
  font: 900 36px/1 var(--y2k-display);
  color: var(--y2k-pink);
}

.zone-steps__name {
  font: bold 16px/1.25 var(--y2k-body);
  color: var(--y2k-yellow);
}

.zone-steps a {
  color: var(--y2k-yellow);
}

/* Routes: a two-column set of tiles, each with its own picture. */
.zone-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-route {
  display: flex;
  flex-direction: column;
  border: 3px solid #fff;
  background: #000;
  box-shadow: 6px 6px 0 var(--y2k-pink);
}

.zone-route__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 3px solid #fff;
  background: #000;
}

.zone-route__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zone-route__body {
  padding: 14px 16px 18px;
}

.zone-route h3 {
  margin: 0 0 6px;
  font: 900 22px/1.1 var(--y2k-display);
  color: var(--y2k-cyan);
}

.zone-route p {
  margin: 0 0 12px;
  font-size: 14px;
}

.zone-route__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: bold 14px/1 var(--y2k-body);
  color: var(--y2k-yellow);
}

.zone-route__link svg {
  width: 16px;
  height: 16px;
}

/* Drawn pictures for the tiles that have no photograph. */
.zone-viz {
  position: absolute;
  inset: 0;
}

.zone-viz--breath {
  background:
    radial-gradient(circle at 50% 50%, var(--y2k-cyan) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, transparent 0 24%, var(--y2k-pink) 25% 27%, transparent 28%),
    radial-gradient(circle at 50% 50%, transparent 0 36%, var(--y2k-violet) 37% 39%, transparent 40%),
    radial-gradient(circle at 50% 50%, transparent 0 48%, var(--y2k-cyan) 49% 50%, transparent 51%),
    #12001f;
}

.zone-viz--aura {
  background:
    radial-gradient(60% 70% at 30% 35%, rgba(255, 43, 214, .85), transparent 70%),
    radial-gradient(55% 65% at 75% 70%, rgba(0, 240, 255, .75), transparent 70%),
    radial-gradient(50% 60% at 60% 20%, rgba(122, 28, 255, .8), transparent 70%),
    #000;
}

/* Planning: owner's lines as grabbable tags in a pit. */
.zone-pit {
  position: relative;
  height: 56svh;
  min-height: 360px;
  margin-top: 16px;
}

.zone-tag {
  padding: 12px 20px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--y2k-pink);
  color: #000;
  font: bold 16px/1.2 var(--y2k-body);
  white-space: nowrap;
}

.zone-tag:nth-child(3n+2) {
  background: var(--y2k-cyan);
}

.zone-tag:nth-child(3n) {
  background: var(--y2k-yellow);
}

/* Advice: two tips in comic type and one link to the rubric's channel. */
.zone-tips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.zone-tip {
  padding: 18px 20px;
  border: 3px double var(--y2k-yellow);
  background: rgba(0, 0, 0, .62);
  font: bold italic 20px/1.3 var(--y2k-comic);
  color: var(--y2k-yellow);
}

.zone-cta {
  display: inline-block;
  padding: 12px 20px;
  border: 3px outset var(--y2k-pink);
  background: var(--y2k-pink);
  color: #000;
  font: bold 16px/1 var(--y2k-body);
  text-decoration: none;
}

.zone-cta:hover {
  background: var(--y2k-yellow);
  color: #000;
}

/* Statement: a passage whose letters come out of blur as it is read. */
.zone-statement {
  margin: 0;
  font: 900 clamp(28px, 4vw, 52px)/1.1 var(--y2k-display);
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.zone-bitch {
  margin: 0 0 14px;
  font: 900 clamp(48px, 12vw, 130px)/.9 var(--y2k-display);
  color: var(--y2k-pink);
  text-shadow: 4px 4px 0 var(--y2k-cyan);
}

/* Meditation: a circle that breathes, and the rhythm as figures. */
.zone-breath {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.zone-breath__circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0 6%, var(--y2k-cyan) 18%, var(--y2k-violet) 62%, #12001f 100%);
  box-shadow: 0 0 60px 10px rgba(0, 240, 255, .35), inset 0 0 40px rgba(255, 43, 214, .6);
  transform: scale(.55);
  transition-property: transform;
  transition-timing-function: ease-in-out;
  transition-duration: 6s;
}

.zone-breath__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font: 900 clamp(22px, 3vw, 32px)/1.1 var(--y2k-display);
  color: #000;
  text-shadow: 0 0 6px #fff;
  pointer-events: none;
}

.zone-breath__label small {
  display: block;
  font: bold 14px/1.2 var(--y2k-body);
}

.zone-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.zone-controls .y2k-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.zone-controls .y2k-button svg {
  width: 16px;
  height: 16px;
}

.zone-count {
  font: bold 14px/1.2 var(--y2k-body);
  color: var(--y2k-cyan);
}

.zone-rhythm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zone-rhythm li {
  padding: 18px 16px;
  border: 3px double var(--y2k-cyan);
  background: rgba(0, 0, 0, .62);
}

.zone-rhythm__figure {
  display: block;
  font: 900 clamp(36px, 5vw, 56px)/1 var(--y2k-display);
  color: var(--y2k-yellow);
}

.zone-rhythm__label {
  font: bold 15px/1.3 var(--y2k-body);
}

/* Aura: a dark glow the wand clears, with a meter of what is clean. */
.zone-aura-wrap {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.zone-aura {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 3px double var(--y2k-cyan);
  background: #000;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.zone-aura__dust {
  position: absolute;
  inset: 0;
  background: #000;
}

.zone-aura__cell {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .6;
  transform: translate(-50%, -50%);
  transition: opacity .7s ease-out, transform .7s ease-out;
  pointer-events: none;
}

.zone-aura__cell.is-clean {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.7);
}

.zone-spark {
  position: absolute;
  color: var(--y2k-yellow);
  font: 16px/1 sans-serif;
  pointer-events: none;
  animation: zone-spark .9s ease-out forwards;
}

@keyframes zone-spark {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3);
  }
}

.zone-wand {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
}

.zone-wand svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 150px;
  height: 150px;
  overflow: visible;
}

.zone-meter {
  width: 100%;
  max-width: 380px;
  height: 18px;
  border: 3px solid #fff;
  background: #000;
}

.zone-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--y2k-pink), var(--y2k-cyan));
  transition: width .3s ease-out;
}

.zone-aura-status {
  margin: 0;
  font: bold 15px/1.3 var(--y2k-body);
  color: var(--y2k-yellow);
}

/* Phrase game: a head, three endings, a verdict. */
.zone-game {
  padding: 20px 22px;
  border: 3px double var(--y2k-cyan);
  background: rgba(0, 0, 0, .66);
}

.zone-game__head {
  margin: 0 0 16px;
  font: 900 clamp(24px, 3vw, 34px)/1.15 var(--y2k-display);
  color: var(--y2k-yellow);
  text-shadow: 3px 3px 0 var(--y2k-pink);
}

.zone-game__options {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.zone-game__option {
  width: 100%;
  padding: 10px 14px;
  border: 3px solid #fff;
  background: #fff;
  color: #000;
  font: bold 15px/1.3 var(--y2k-body);
  text-align: left;
  cursor: pointer;
}

.zone-game__option:hover:not(:disabled) {
  background: var(--y2k-pink);
  color: #000;
}

.zone-game__option:disabled {
  cursor: default;
  opacity: .55;
}

.zone-game__option.is-right {
  background: var(--y2k-cyan);
  opacity: 1;
}

.zone-game__option.is-wrong {
  background: var(--y2k-silver);
  opacity: 1;
}

.zone-game__result {
  min-height: 3.2em;
  margin: 0 0 12px;
  font: bold 15px/1.35 var(--y2k-body);
  color: var(--y2k-cyan);
}

/* Footer: coins rain in front of the pills, which pile along the bottom edge. */
.zone-footer {
  position: relative;
  height: min(88svh, 720px);
  margin-top: 64px;
  color: #fff;
  overflow: hidden;
}

.zone-footer__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 8svh;
  margin: 0;
  text-align: center;
  font: 900 clamp(34px, 6vw, 80px)/1 var(--y2k-display);
  color: var(--y2k-yellow);
  text-shadow: 3px 3px 0 var(--y2k-pink);
  pointer-events: none;
}

.zone-footer__legal {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(8svh + clamp(80px, 12vw, 150px));
  margin: 0;
  text-align: center;
  font: bold 12px/1.4 var(--y2k-body);
  color: var(--y2k-cyan);
  pointer-events: none;
}

.zone-coin {
  width: 62px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--y2k-yellow);
  color: var(--y2k-violet);
  font: 900 26px/1 var(--y2k-display);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25);
}

.zone-coin:nth-of-type(3n+2) {
  background: var(--y2k-cyan);
  color: #000;
}

.zone-coin:nth-of-type(3n) {
  background: var(--y2k-pink);
  color: #fff;
}

.zone-pill {
  padding: 10px 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--y2k-pink);
  color: #000;
  font: bold 16px/1.2 var(--y2k-body);
  white-space: nowrap;
  text-decoration: none;
}

.zone-pill:nth-of-type(2n) {
  background: var(--y2k-cyan);
}

/* A picture beside its text: the picture takes the wider column. */
.zone-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.zone-split__media {
  margin: 0;
  border: 3px solid #fff;
  box-shadow: 8px 8px 0 var(--y2k-pink);
  background: #000;
}

.zone-split__media img {
  display: block;
  width: 100%;
  height: auto;
}

.zone-split__text .zone-section__title {
  font-size: clamp(26px, 3.6vw, 44px);
}

/* Phone: the picture stacks above its text. */
@media (max-width: 760px) {
  .zone-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phone: the columns stack, the navigation becomes a row of buttons. */
@media (max-width: 760px) {
  .zone-nav .y2k-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-hero,
  .zone-routes,
  .zone-rhythm {
    grid-template-columns: minmax(0, 1fr);
  }

  .zone-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-deck {
    height: 300px;
  }

  .zone-card {
    width: 150px;
    height: 222px;
  }

  .zone-section {
    margin-top: 40px;
  }

  .zone-opening .y2k-wordart span + span {
    font-size: .4em;
  }
}

/* The block before a footer covers it and lifts away; the cover holds the page's last words. */
.zone-cover {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 0 20px;
  text-align: center;
  background: #000;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 40px 80px rgb(0 0 0 / .55);
}

.zone-cover h2 {
  margin: 0;
  font: 900 clamp(40px, 7vw, 100px)/1 var(--y2k-display);
  color: var(--y2k-yellow);
  text-shadow: 4px 4px 0 var(--y2k-pink), 8px 8px 0 var(--y2k-cyan);
}
