* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 28px;
  overflow-x: hidden;
}

.layer {
  position: fixed;
  background-image: url("ripple-bg.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.layer-back {
  inset: -25%;
  width: 150%;
  height: 150%;
  opacity: 0.35;
  filter: blur(1px) brightness(0.7);
  animation: driftBack 70s ease-in-out infinite alternate;
  transform: scaleX(-1);
}

.layer-front {
  inset: -15%;
  width: 130%;
  height: 130%;
  opacity: 0.9;
  animation: driftFront 42s ease-in-out infinite alternate;
}

@keyframes driftBack {
  0%   { transform: scaleX(-1) translate(0%, 0%) scale(1.05); }
  50%  { transform: scaleX(-1) translate(3%, -2%) scale(1.1); }
  100% { transform: scaleX(-1) translate(-2%, 3%) scale(1.05); }
}

@keyframes driftFront {
  0%   { transform: translate(0%, 0%) scale(1.05); }
  50%  { transform: translate(-3%, 2%) scale(1.1); }
  100% { transform: translate(2%, -3%) scale(1.05); }
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 640px;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.screen.active {
  display: flex;
}

.box-text {
  border: 3px solid #fff;
  padding: 24px 28px;
  width: 100%;
  min-height: 100px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.6);
}

.box-text p {
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.box-text p:last-child {
  margin-bottom: 0;
}

.form-header {
  text-align: center;
  min-height: unset;
}

.choice-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.choice-row.inline {
  gap: 16px;
}

.choice-box {
  background: #000;
  color: #fff;
  border: 3px solid #fff;
  font-family: 'VT323', monospace;
  font-size: 26px;
  padding: 10px 28px;
  cursor: pointer;
  letter-spacing: 1px;
}

.choice-box:hover,
.choice-box:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.advance-prompt {
  align-self: flex-end;
  margin-right: 12px;
  margin-top: -20px;
  font-size: 22px;
  animation: blink 1s steps(1) infinite;
  cursor: pointer;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

#application-form {
  width: 100%;
}

.form-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.form-step.active {
  display: flex;
}

.hint {
  color: #888;
  font-size: 0.75em;
  margin: -8px 0 0 0;
  text-align: center;
}

.form-step input[type="text"],
.form-step textarea {
  background: #000;
  border: 2px solid #fff;
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 24px;
  padding: 8px 10px;
  width: 100%;
  resize: vertical;
}

.form-step input[type="text"]:focus,
.form-step textarea:focus {
  outline: none;
  background: #111;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-top: 4px;
}

.back-link {
  color: #888;
  cursor: pointer;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.back-link:hover {
  color: #fff;
}

.radio-box {
  border: 2px solid #fff;
  padding: 6px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-box input {
  accent-color: #fff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-row input {
  margin-top: 6px;
  accent-color: #fff;
  transform: scale(1.2);
}

.submit-box {
  align-self: center;
  margin-top: 10px;
}

::placeholder {
  color: #666;
}

@media (max-width: 480px) {
  body { font-size: 22px; }
  .box-text { padding: 18px; }
  .choice-box { font-size: 22px; padding: 8px 20px; }
}
