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

body {
  min-height: 100vh;
  overflow: hidden;
  font-family: system-ui, sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

body.ready {
  opacity: 1;
}

/* Accessibility: Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 0;
}

/* Accessibility: Visually hidden but screen reader accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility: Focus indicators */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.words {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  opacity: 0.65;
}

.words .title {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.words .subtitle {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  margin-top: 0.5rem;
  letter-spacing: 0.2em;
}

.tide-curve {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.tide-curve svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tide-curve .tide-curve-svg {
  z-index: 2;
}

.feedback-buttons {
  position: fixed;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1;
  z-index: 300;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(128, 128, 128, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feedback-btn {
  opacity: 0.5;
  cursor: pointer;
  padding: 0 3px;
  transition: opacity 0.2s;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
  vertical-align: baseline;
}

.feedback-btn:hover {
  opacity: 1;
}

.feedback-btn:disabled {
  cursor: default;
  opacity: 0.2;
}

.feedback-btn.sent {
  opacity: 0.8;
}

.seed-info {
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-left: 4px;
}

.seed-info:hover {
  opacity: 1;
}

.seed-info.copied {
  opacity: 1;
}

.center-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: var(--logo-blend-mode, difference);
  transition: top 1.5s ease-in-out;
}

.center-logo svg {
  height: 60vh;
  width: auto;
}

@media (max-width: 480px) {
  .center-logo svg {
    height: 50vh;
  }
  .feedback-buttons {
    font-size: 10px;
    padding: 3px 6px;
  }
}
