:root {
  --pink: #ff1493;
  --hot: #ff007f;
  --ink: #17000c;
  --cream: #fff7fb;
  --line: #210014;
  --yellow: #ffef6e;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--pink);
}

a {
  color: inherit;
}

.stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #ff1493 url("assets/dog-chaos-bg.png") center / cover no-repeat;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
}

.cover-page .stage {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(255, 135, 205, 0.7), transparent 22%),
    #ff1493;
  background-size: 56px 56px, 56px 56px, auto, auto;
}

.chaos-page .stage {
  background-image: url("assets/dog-chaos-bg.png");
}

.watcher-page .stage {
  background-image: url("assets/dog-watchers-bg.png");
}

.hybrid-page .stage {
  background-image: url("assets/dog-hybrid-bg.png");
}

.tiny-dogs {
  display: none;
}

.cover-page .tiny-dogs {
  display: block;
}

.dog {
  position: absolute;
  width: calc(var(--size, 96px) * 1.14);
  height: calc(var(--size, 96px) * 1.14);
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  filter: drop-shadow(0 8px 0 rgba(39, 0, 25, 0.12));
}

.dog svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.watcher-page .dog {
  width: calc(var(--size, 112px) * 1.13);
  height: calc(var(--size, 112px) * 1.13);
  filter: drop-shadow(0 10px 0 rgba(39, 0, 25, 0.14));
}

.dog-art-sticker {
  paint-order: stroke fill markers;
}

.dog-art-doodle {
  filter: contrast(1.08);
}

.dog-art-plush {
  filter: saturate(1.12);
}

.age-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(100%, 480px);
  max-width: 100%;
  min-height: 228px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 34px 28px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 12px 12px 0 var(--line);
  text-align: center;
}

.kicker {
  margin: 0;
  max-width: 100%;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.answer {
  display: inline-grid;
  place-items: center;
  min-width: 148px;
  min-height: 58px;
  padding: 0 28px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--line);
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.answer:hover,
.answer:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--line);
  outline: none;
}

.photo-stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #ff1493;
}

.photo-frame {
  position: relative;
  width: min(100%, 1180px);
}

.photo-stage img {
  display: block;
  width: min(100%, 1180px);
  max-height: calc(100svh - 88px);
  object-fit: contain;
  border: 4px solid var(--line);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--line);
  background: #ff1493;
}

.nose-link {
  position: absolute;
  left: 46.4%;
  top: 32.3%;
  width: 9.6%;
  height: 5.7%;
  z-index: 3;
  display: block;
  cursor: default;
  background: transparent;
  border: 0;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}

.nose-link:focus {
  outline: 0;
}

.secret-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 760px);
  min-height: 420px;
  padding: 28px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 12px 12px 0 var(--line);
  text-align: center;
}

.secret-placeholder p {
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.home-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--line);
}

@media (max-width: 640px) {
  .stage {
    padding: 18px;
  }

  .age-box {
    left: 18px;
    right: auto;
    transform: translateY(-50%);
    width: min(300px, calc(100vw - 44px));
    max-width: none;
    min-height: 214px;
    padding: 28px 20px;
    box-shadow: 8px 8px 0 var(--line);
  }

  h1 {
    font-size: 32px;
    line-height: 1;
  }

  .dog {
    width: calc(var(--size, 88px) * 0.9);
    height: calc(var(--size, 88px) * 0.9);
  }

  .photo-stage img {
    max-height: calc(100svh - 76px);
    box-shadow: 7px 7px 0 var(--line);
  }

  .photo-frame {
    justify-self: start;
    width: min(330px, calc(100vw - 44px));
  }
}

.style-lab {
  min-height: 100svh;
  padding: 24px;
  background: #ff1493;
  color: var(--ink);
}

.style-lab h1 {
  margin: 0 0 18px;
  color: var(--cream);
  font-size: 36px;
  text-shadow: 3px 3px 0 var(--line);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.style-frame {
  min-width: 0;
}

.style-frame h2 {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-size: 16px;
}

.style-frame iframe {
  width: 100%;
  height: 620px;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--pink);
  box-shadow: 8px 8px 0 var(--line);
}

@media (max-width: 980px) {
  .style-grid {
    grid-template-columns: 1fr;
  }

  .style-frame iframe {
    height: 560px;
  }
}
