:root {
  color: #000;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #fff;
}

button { font: inherit; }

.experience {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 20px 26px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}

.manifesto {
  margin: 0;
  color: #000;
  font-size: clamp(.82rem, 2.4vw, .92rem);
  font-weight: 400;
  letter-spacing: .01em;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(1.17rem, 3.7vw, 1.29rem);
  font-weight: 400;
  line-height: 1;
}

.emoji-row {
  width: min(100%, 465px);
  margin: 10px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.emoji-button {
  width: clamp(42px, 9vw, 54px);
  height: clamp(42px, 9vw, 54px);
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: clamp(1.55rem, 5vw, 2.08rem);
  line-height: 1;
  transition: none;
}

.emoji-button:hover,
.emoji-button:focus-visible {
  background: #fff;
  outline: 1px solid #000;
  transform: none;
}

.emoji-button:active { transform: none; }

.rainbow-frame {
  width: min(100%, 390px);
  padding: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.result-card {
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  animation: none;
}

.result-card.refresh { animation: none; }

.image-window {
  position: relative;
  width: calc(100% - 32px);
  margin: 0 auto;
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  border: 1px solid #dedede;
  background: #f4f4f4;
  cursor: pointer;
}

.image-window img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: none;
}

.image-window img.switching { opacity: 1; transform: none; }

.image-hint {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 2px 4px;
  color: #000;
  background: #fff;
  font-size: 1rem;
  line-height: 1;
}

.map-slide {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  color: #000;
  background: #fff;
}

.map-slide.visible { display: grid; }

.map-slide::before,
.map-slide::after {
  position: absolute;
  content: "";
  background: #000;
  opacity: .8;
  transform: rotate(-17deg);
}
.map-slide::before { width: 130%; height: 18px; }
.map-slide::after { width: 18px; height: 130%; transform: rotate(31deg); }

.map-grid {
  position: absolute;
  inset: -40px;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, .22) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, .22) 1px, transparent 1px);
  background-size: 27px 27px;
  transform: rotate(-9deg);
}

.map-slide strong, .map-slide small { position: relative; z-index: 1; }
.map-slide strong {
  max-width: 75%;
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  text-align: center;
  font-size: clamp(1.15rem, 4vw, 1.55rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.map-slide small {
  position: absolute;
  bottom: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .61rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.copy { padding: 16px 0 18px; }
.description {
  margin: 0;
  font-size: clamp(.93rem, 3.25vw, 1rem);
  line-height: 1.2;
}
.meta {
  display: none;
}

.about {
  width: min(100%, 390px);
  margin-top: 9px;
  color: #777;
  font-size: .78rem;
  line-height: 1.25;
}

.about p { margin: 0; }

@media (max-width: 430px) {
  .experience { padding: 26px 12px 20px; gap: 13px; }
  .rainbow-frame { padding: 0; border-radius: 0; }
  .result-card { border-radius: 0; }
  .copy { padding: 15px 0; }
  .emoji-row { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
