@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&display=swap');

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

body {
  background: #03040a;
  overflow: hidden;
  cursor: none;
  width: 100vw;
  height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
  z-index: 1000;
}

#sea {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
}

#cursor {
  position: fixed;
  width: 6px; height: 6px;
  background: rgba(200,191,176,0.6);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 9999;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 0.5px solid rgba(200,191,176,0.25);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: all 0.12s ease;
  z-index: 9998;
}

#message-form {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 80vw);
  z-index: 100;
}

#message-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 30px;
  color: rgba(200, 191, 176, 0.75);
  text-align: center;
  letter-spacing: 0.12em;
  padding: 6px 0;
  caret-color: rgba(200, 191, 176, 0.5);
  cursor: text;
}

#message-input::placeholder {
  color: rgba(200, 191, 176, 0.25);
}

#message-underline {
  height: 0.5px;
  background: rgba(200, 191, 176, 0.18);
  transition: background 0.4s ease;
}

#message-form:focus-within #message-underline {
  background: rgba(200, 191, 176, 0.45);
}

.floating-message {
  position: fixed;
  bottom: 96px;
  left: 50%;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 30px;
  color: rgba(200, 191, 176, 0.75);
  letter-spacing: 0.12em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 99;
  animation: float-to-sea 6s ease-in forwards;
}

@keyframes float-to-sea {
  0%   { transform: translateX(-50%) translateY(0)      scale(1);    opacity: 0.75; }
  60%  { transform: translateX(-50%) translateY(-38vh)  scale(0.22); opacity: 0.35; }
  100% { transform: translateX(-50%) translateY(-52vh)  scale(0.04); opacity: 0;    }
}

footer {
  position: fixed;
  bottom: 40px;
  width: 100%;
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(200,191,176,0.15);
  letter-spacing: 0.2em;
  z-index: 100;
  pointer-events: none;
}

#fullscreen-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(200, 191, 176, 0.1);
  border: none;
  border-radius: 6px;
  cursor: none;
  opacity: 0.4;
  transition: opacity 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8bfb0' stroke-width='2'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  z-index: 200;
}

#fullscreen-btn:hover {
  opacity: 1;
}

#fullscreen-btn.is-fullscreen {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8bfb0' stroke-width='2'%3E%3Cpath d='M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3'/%3E%3C/svg%3E");
}
