@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --background-colour: #faf5ef;
  --text-colour: #050301;
}

.dark {
  --text-colour: #faf5ef;
  --background-colour: #050301;
}

body {
  background-color: var(--background-colour);
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-style: italic;
  font-size: 90px;
  min-height: 100vh;
  overflow: hidden;
}

.scene {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  line-height: 1.1;
  white-space: nowrap;
  position: relative;
}

.row.ghost {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.row.ghost.visible {
  pointer-events: all;
}

.row.ghost .row-label {
  position: absolute;
  right: calc(100% + 0.4em);
  font-size: 0.22em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.row.ghost:hover .row-label {
  opacity: 0.7;
}

.row.ghost .row-text {
  transition: opacity 0.2s ease;
}

.row.ghost:hover .row-text {
  text-decoration: underline;
  text-underline-offset: 0.1em;
  text-decoration-thickness: 1px;
}

.row.center {
  opacity: 1;
  color: var(--text-colour);
  cursor: default;
  position: relative;
  z-index: 2;
}

/* hover hint */
.hover-hint {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 100;
}

.hover-hint.visible {
  opacity: 1;
}

.hover-hint.gone {
  opacity: 0 !important;
  transition: opacity 0.3s ease;
}

.hint-arrow {
  font-size: 2.5rem;
  font-style: normal;
  color: var(--text-colour);
  animation: bob 1.2s ease-in-out infinite;
}

.hint-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-colour);
  opacity: 0.5;
  letter-spacing: 0.03em;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* countdown fixed top-right */
.countdown {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-colour);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.countdown.visible {
  opacity: 0.35;
}