/* This site's own adjustments on the 00е look: pale pink glamour, lace, candles, and the hero scene. */
:root {
  --glam-pale: #ffe4f2;
  --glam-pink: #ff5ae0;
  --glam-deep: #a3008a;
  --glam-plum: #4a1234;
  --glam-gold: #ffd700;
  --glam-lace: #fff8fc;
}

html {
  background: var(--glam-pale);
}

body {
  color: var(--glam-plum);
  background-color: var(--glam-pale);
  background-image:
    radial-gradient(circle at 12px 12px, #fff 3px, transparent 4px),
    radial-gradient(circle at 36px 30px, #ffc2e6 2px, transparent 3px);
  background-size: 48px 48px;
  animation: none;
}

body::before {
  display: none;
}

a {
  color: var(--glam-deep);
}

a:visited {
  color: #7a1c9a;
}

a:hover {
  color: #fff;
  background: var(--glam-pink);
}

.y2k-topbar {
  border-color: #fff;
  background: linear-gradient(90deg, #ff5ae0, #ffd700, #ff5ae0);
  color: #fff;
  text-shadow: 1px 1px 0 var(--glam-deep);
}

.y2k-header {
  border-color: var(--glam-gold);
  background:
    radial-gradient(circle at 10% 20%, #fff 0 8px, transparent 9px),
    radial-gradient(circle at 90% 75%, #fff 0 8px, transparent 9px),
    linear-gradient(160deg, #ffb3e6, #ff7ad6 55%, #f7a1d8);
}

.y2k-wordart span {
  color: #fff;
  text-shadow: 2px 2px 0 var(--glam-deep), 0 0 18px #fff;
}

.y2k-tagline {
  color: var(--glam-plum);
}

.y2k-box {
  border: 2px solid var(--glam-gold);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 12px rgba(255, 91, 224, .55);
  color: var(--glam-plum);
}

.y2k-box h2 {
  background: linear-gradient(90deg, var(--glam-pink), var(--glam-deep), var(--glam-pink));
  background-size: 200% 100%;
  color: #fff;
  text-shadow: 1px 1px 0 var(--glam-deep);
}

.y2k-nav a {
  border-color: #ffd1f0;
  background: linear-gradient(#ffb3e6, #ff5ae0);
  color: #fff;
}

.y2k-nav a:hover {
  background: linear-gradient(var(--glam-gold), #ffb300);
  color: var(--glam-deep);
}

.y2k-construction {
  background: repeating-linear-gradient(-45deg, #ffd1f0 0 14px, #ff5ae0 14px 28px);
  color: #fff;
}

.y2k-construction strong {
  color: #fff;
  text-shadow: 1px 1px 0 var(--glam-deep);
}

.y2k-hello {
  color: var(--glam-deep);
}

.y2k-button {
  border-color: #ffe6f7;
  background: linear-gradient(#c2149a, #6d0066);
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.glam-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.glam-scene {
  margin: 0;
  padding: 8px;
  border: 4px double var(--glam-gold);
  background: #ffd1e8;
  box-shadow: 0 0 16px rgba(255, 91, 224, .5);
}

.glam-scene svg {
  display: block;
  width: 100%;
  height: auto;
}

.glam-scene figcaption {
  margin-top: 6px;
  color: var(--glam-deep);
  font: bold 12px/1.3 var(--y2k-body);
  text-align: center;
}

.glam-copy {
  display: grid;
  gap: 10px;
}

.glam-copy p {
  margin: 0;
}

.glam-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.glam-link {
  font-weight: bold;
}

.glam-quotes p {
  margin: 0 0 8px;
  color: var(--glam-deep);
  font-weight: bold;
}

.y2k-footer {
  border-color: #fff;
  background: linear-gradient(#ffb3e6, #ff5ae0);
  color: #fff;
}

.y2k-footer a {
  color: #fff;
}

@media (max-width: 760px) {
  .glam-hero-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sound switch: its own button in the menu, pressed when the sound is on. */
.glam-sound {
  display: block;
  width: calc(100% - 12px);
  margin: 6px;
  padding: 6px;
  border: 3px outset #ffd1f0;
  background: #fff;
  color: var(--glam-deep);
  font: bold 12px/1.2 var(--y2k-body);
  cursor: pointer;
}

.glam-sound[aria-pressed="true"] {
  background: linear-gradient(#ffd700, #ffb300);
}

/* Full-width boxes under the three columns. */
.glam-wide {
  margin-top: 6px;
}

/* The game: heads-up display, the corridor on canvas, its screens, and the touch pad. */
.glam-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin: 0 0 8px;
}

.glam-hud p {
  margin: 0;
}

.glam-hud b {
  color: var(--glam-deep);
}

.glam-meter {
  display: inline-block;
  width: 90px;
  height: 10px;
  border: 2px inset #fff;
  background: #fff;
  vertical-align: middle;
}

.glam-meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ff5ae0, #ffd700);
  transition: width .2s ease;
}

.glam-trail {
  height: 8px;
  margin-bottom: 8px;
  border: 2px solid var(--glam-gold);
  background: #fff;
}

.glam-trail i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #ff5ae0 0 8px, #ffd700 8px 16px);
  transition: width .2s ease;
}

.glam-stage {
  position: relative;
}

.glam-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 3px double var(--glam-gold);
  background: #ffd1e8;
  touch-action: none;
  outline: none;
}

.glam-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(74, 18, 52, .84);
  color: #fff;
  text-align: center;
}

.glam-screen[hidden] {
  display: none;
}

.glam-screen h3 {
  margin: 0;
  color: var(--glam-gold);
  font: bold clamp(20px, 3vw, 30px)/1.2 var(--y2k-display);
  text-transform: uppercase;
}

.glam-screen p {
  max-width: 60ch;
  margin: 0;
}

.glam-screen .y2k-list {
  margin: 0;
  color: #fff;
  text-align: left;
}

.glam-screen .y2k-list li {
  margin: 4px 0;
}

.glam-message {
  min-height: 1.5em;
  margin: 8px 0;
  color: var(--glam-deep);
  font-weight: bold;
}

.glam-pad {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  touch-action: none;
}

.glam-pad button {
  min-height: 52px;
  padding: 6px;
  border: 3px outset #ffd1f0;
  background: linear-gradient(#ffb3e6, #ff5ae0);
  color: #fff;
  font: bold 18px/1 var(--y2k-body);
  text-shadow: 1px 1px 0 var(--glam-deep);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.glam-pad button:active {
  background: linear-gradient(#ff5ae0, #a3008a);
}

@media (max-width: 760px) {
  .glam-pad {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glam-pad button {
    min-height: 64px;
    font-size: 22px;
  }

  .glam-pad [data-glam-hold="dog"] {
    grid-column: span 2;
    font-size: 18px;
  }

  .glam-heroes {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .glam-hero-pick {
    min-width: 0;
    flex: 1 1 0;
    padding: 4px;
    font-size: 12px;
  }

  .glam-hero-pick canvas {
    width: 76px;
  }

  .glam-hero-pick small {
    font-size: 11px;
  }

  .glam-screen {
    padding: 8px;
    gap: 6px;
  }

  .glam-screen .y2k-list {
    font-size: 12px;
  }
}

/* Decorative stickers: a leopard star that turns slowly, and a rhinestone band on black. */
.glam-hero {
  position: relative;
}

.glam-sticker {
  position: absolute;
  top: -18px;
  right: -14px;
  width: 64px;
  height: 64px;
  animation: glam-spin 9s linear infinite;
  pointer-events: none;
}

@keyframes glam-spin {
  to {
    transform: rotate(360deg);
  }
}

.glam-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 6px;
  padding: 18px 12px;
  border: 2px solid var(--glam-gold);
  background: #000;
  overflow: hidden;
}

.glam-band-crown {
  width: 56px;
  height: auto;
}

.glam-iconic {
  margin: 0;
  color: var(--glam-gold);
  font: bold clamp(20px, 3.4vw, 34px)/1.2 var(--y2k-display);
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 91, 224, .8), 2px 2px 0 var(--glam-deep);
}

.glam-gems {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.glam-gems svg {
  width: 26px;
  height: 26px;
  animation: glam-twinkle 1.6s steps(2) infinite;
}

.glam-gems svg:nth-child(2n) {
  animation-delay: -.8s;
}

@keyframes glam-twinkle {
  50% {
    opacity: .35;
  }
}

/* Пивинби: the deer thinks in a cloud, two cards side by side, a match stamp. */
.glam-pivinbi-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: center;
}

.glam-deer {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 60px;
}

.glam-cloud {
  margin: 0;
  max-width: 260px;
  padding: 10px 14px;
  border: 2px solid var(--glam-pink);
  border-radius: 40px;
  background: #fff;
  color: var(--glam-deep);
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 91, 224, .4);
}

.glam-deer-art {
  width: 160px;
  height: auto;
  animation: glam-nod 2.4s ease-in-out infinite;
}

@keyframes glam-nod {
  50% {
    transform: rotate(-4deg) translateY(-3px);
  }
}

.glam-thought-dots {
  width: 90px;
  height: auto;
}

.glam-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.glam-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffb3e6, #ff5ae0);
  color: #fff;
  text-align: center;
  cursor: grab;
  touch-action: pan-y;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
  box-shadow: 0 8px 18px rgba(163, 0, 138, .3);
  user-select: none;
  -webkit-user-select: none;
}

.glam-card svg {
  width: 96px;
  height: auto;
  pointer-events: none;
}

.glam-card h3 {
  margin: 0;
  font: bold 22px/1.1 var(--y2k-display);
  text-transform: uppercase;
  text-shadow: 1px 1px 0 var(--glam-deep);
}

.glam-card p {
  margin: 0;
  font-size: 13px;
}

.glam-card-gym {
  background: linear-gradient(160deg, #6d0066, #2a0a2e);
}

.glam-card.is-chosen {
  transform: scale(1.05) rotate(-2deg);
  border-color: var(--glam-gold);
  box-shadow: 0 0 22px var(--glam-gold);
}

.glam-card.is-passed {
  opacity: .25;
  transform: scale(.94);
}

.glam-pivinbi-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.glam-pick,
.glam-again {
  min-height: 44px;
  padding: 6px 16px;
  border: 3px outset #ffd1f0;
  background: linear-gradient(#ffb3e6, #ff5ae0);
  color: #fff;
  font: bold 15px/1 var(--y2k-body);
  text-shadow: 1px 1px 0 var(--glam-deep);
  cursor: pointer;
}

.glam-pick-gym {
  background: linear-gradient(#8a3a80, #2a0a2e);
}

.glam-pick:disabled {
  opacity: .45;
  cursor: default;
}

.glam-again[hidden],
.glam-match[hidden] {
  display: none;
}

.glam-reply {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 0;
  color: var(--glam-deep);
  font-weight: bold;
  text-align: center;
}

.glam-match {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  border: 4px double var(--glam-gold);
  background: var(--glam-deep);
  color: var(--glam-gold);
  font: bold 34px/1 var(--y2k-display);
  pointer-events: none;
  animation: glam-stamp .6s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes glam-stamp {
  from {
    transform: translate(-50%, -50%) scale(2.2) rotate(-12deg);
    opacity: 0;
  }
}

.glam-pivinbi-body {
  position: relative;
}

/* The consultation request, written as one sentence with blanks. */
.glam-line {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.7;
  color: var(--glam-plum);
}

.glam-blank {
  display: inline-block;
  width: var(--w, 8em);
  max-width: 100%;
  padding: 0 .1em;
  border: 0;
  border-bottom: 2px solid var(--glam-deep);
  background: transparent;
  color: var(--glam-deep);
  font: inherit;
  outline: none;
}

.glam-blank::placeholder {
  color: #c98ab8;
}

.glam-blank:focus {
  background: #fff3fa;
  border-bottom-color: var(--glam-gold);
}

.glam-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.glam-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 18px;
}

.glam-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
}

.glam-consent input {
  margin-top: 3px;
}

.glam-form-foot .y2k-button:disabled {
  opacity: .6;
}

.glam-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--glam-deep);
  font-weight: bold;
}

.glam-done {
  margin: 0;
  font: bold clamp(20px, 2.4vw, 28px)/1.4 var(--y2k-display);
  color: var(--glam-deep);
}

.glam-done[hidden] {
  display: none;
}

.glam-form.is-sent,
.glam-sentence.is-sent .glam-line,
.glam-sentence.is-sent .glam-form-foot,
.glam-sentence.is-sent .glam-status {
  display: none;
}

.glam-privacy {
  margin: 12px 0 0;
  font-size: 12px;
}

/* Footer: cherries and cakes bob along the bottom edge. */
.glam-sweets {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.glam-sweets svg {
  width: 30px;
  height: 30px;
  animation: glam-bob 2.6s ease-in-out infinite;
}

.glam-sweets svg:nth-child(2n) {
  animation-delay: -1.2s;
}

@keyframes glam-bob {
  50% {
    transform: translateY(-5px) rotate(6deg);
  }
}

.glam-message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glam-message-star {
  flex: none;
  width: 26px;
  height: 26px;
  animation: glam-spin 6s linear infinite;
}

@media (max-width: 760px) {
  .glam-pivinbi-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .glam-deer {
    padding-top: 0;
  }

  .glam-deer-art {
    width: 120px;
  }

  .glam-sticker {
    width: 48px;
    height: 48px;
    top: -12px;
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glam-sticker,
  .glam-deer-art,
  .glam-sweets svg,
  .glam-gems svg,
  .glam-message-star {
    animation: none;
  }
}

/* Heroine picker on the game's start screen, and the win and lose actions. */
.glam-heroes {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.glam-hero-pick {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 150px;
  padding: 6px 8px;
  border: 3px outset #ffd1f0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: bold 14px/1.2 var(--y2k-body);
  cursor: pointer;
}

.glam-hero-pick canvas {
  width: 110px;
  height: auto;
}

.glam-hero-pick small {
  font-weight: normal;
  font-size: 12px;
}

.glam-hero-pick[aria-pressed="true"] {
  border-color: var(--glam-gold);
  background: rgba(255, 215, 0, .22);
  box-shadow: 0 0 14px var(--glam-gold);
}

.glam-screen-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.glam-screen {
  place-content: safe center;
  overflow: auto;
}

@media (max-width: 760px) {
  .glam-heroes {
    flex-wrap: nowrap;
  }
}

@media (max-width: 760px) {
  .glam-hero-pick {
    min-width: 0;
    flex: 1 1 0;
    width: 0;
  }

  .glam-hero-pick canvas {
    width: 100%;
    max-width: 76px;
  }
}
