@font-face {
  font-family: 'Typecast';
  src: url('/☆Fonts☆/typecast-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --ink: #030812;
  --pink: #f084a4;
  --gold: #f2e2b2;
}

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-family: 'Typecast', sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

#scene { position: fixed; inset: 0; }
#scene canvas { display: block; touch-action: none; }

/* Same black dashed box as the rest of the site */
.box {
  background: #000;
  border: 1px dashed #fff;
  box-shadow: 5px 5px #000;
  padding: 8px 14px;
  box-sizing: border-box;
}

.home {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 14px;
  z-index: 5;
  color: #fff;
  text-decoration: none;
  transform: rotate(-0.5deg);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home:hover, .home:focus {
  background: #fff;
  color: #000;
  transform: rotate(0.5deg) scale(1.05);
}

#status {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

/* Last three intentions, top right */
#side {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(320px, calc(100vw - 130px));
}

#panel { width: 100%; }
#panel p { margin: 0.4em 0; overflow-wrap: anywhere; }
#panel .empty { opacity: 0.75; }

button {
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: #000;
  border: 1px dashed #fff;
  box-shadow: 3px 3px #000;
  padding: 8px 16px;
  cursor: pointer;
  transform: rotate(-0.5deg);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover, button:focus-visible {
  background: var(--pink);
  color: #000;
  transform: rotate(0.5deg) scale(1.05);
}

/* Write an intention, bottom center */
#wish {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px));
  z-index: 5;
  padding: 12px;
}

#form { display: flex; gap: 8px; }

#input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on the field */
  color: #fff;
  background: #000;
  border: 1px dashed #fff;
  padding: 10px;
}

#input::placeholder { color: var(--gold); opacity: 0.7; }

a:focus-visible, button:focus-visible, #input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#note { min-height: 1.3em; margin-top: 6px; font-size: 14px; opacity: 0.85; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  #wish { padding: 10px; }
  button { padding: 8px 12px; }
}