/* Poseidon's Tollgate — shared styles. Matches the Voyage to Ithaca hall pages, in deep-sea colours. */
:root {
  --abyss: #050d14;
  --deep: #0a1c27;
  --sea: #0f3340;
  --glow: #1f6f78;
  --foam: #d9f2ec;
  --foam-dim: #a9c9c3;
  --bronze: #c9a86a;
  --bronze-dim: #8d7650;
  --teal: #5fd4c4;
  --teal-dim: #2e8f86;
  --danger: #e2735f;
  --card: rgba(8, 22, 30, 0.88);
  --line: rgba(201, 168, 106, 0.35);
  --serif: "EB Garamond", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--serif);
  color: var(--foam);
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(31, 111, 120, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 45% at 80% 0%, rgba(15, 51, 64, 0.9), transparent 70%),
    linear-gradient(180deg, var(--deep), var(--abyss));
  background-attachment: fixed;
  min-height: 100vh;
}

/* ------------------------------------------------ landing card */

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 140px;
  position: relative;
  overflow: hidden;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 0 32px;
  position: relative;
}

.meander {
  height: 12px;
  margin: 14px -18px;
  opacity: 0.85;
  background-repeat: repeat-x;
  background-size: 20px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M1 11V1h12v8H5V5h4' fill='none' stroke='%23c9a86a' stroke-width='1.3'/%3E%3Cpath d='M13 11h7' fill='none' stroke='%23c9a86a' stroke-width='1.3'/%3E%3C/svg%3E");
}
.meander.bottom { transform: scaleY(-1); }

.card h1 {
  font-family: var(--display);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 6vw, 38px);
  text-align: center;
  margin: 26px 0 2px;
  color: var(--bronze);
  text-shadow: 0 0 24px rgba(201, 168, 106, 0.35);
}

.card .sub {
  font-family: var(--display);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--foam-dim);
  margin: 0 0 24px;
}

.lore {
  border-left: 2px solid var(--teal-dim);
  padding: 2px 0 2px 16px;
  margin: 0 0 26px;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #cfe3de;
}

label.field {
  display: block;
  font-family: var(--display);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 15px;
  color: var(--bronze);
  margin-bottom: 8px;
}

input[type="text"].name {
  width: 100%;
  padding: 14px 16px;
  font: 18px var(--serif);
  color: var(--foam);
  background: rgba(2, 8, 12, 0.85);
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 2px;
  outline: none;
}
input[type="text"].name:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(95, 212, 196, 0.15); }
input[type="text"].name::placeholder { color: #6f8a86; }

.confirm {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0 20px;
  font-size: 16px;
  color: var(--foam-dim);
}
.confirm b { color: var(--foam); }
.confirm input { width: 16px; height: 16px; accent-color: var(--teal); }

.btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 17px;
  color: #041014;
  background: linear-gradient(180deg, #8fe6d8, #3fa79c);
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(0.7) brightness(0.7); cursor: not-allowed; }
a.btn { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }
a.btn[hidden] { display: none; }

.how {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: var(--foam-dim);
}

.error {
  min-height: 24px;
  color: var(--danger);
  font-style: italic;
  margin: 12px 0 8px;
  text-align: center;
}

/* ------------------------------------------------ decorative tridents */

.tridents {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3.4vw, 40px);
  pointer-events: none;
}
.tridents svg {
  width: 26px;
  height: 64px;
  filter: drop-shadow(0 0 8px rgba(95, 212, 196, 0.45));
  animation: bob 4.5s ease-in-out infinite;
}
.tridents svg:nth-child(odd) { animation-delay: -2.2s; }
.tridents svg:nth-child(3n) { animation-delay: -1.1s; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  opacity: 0.5;
  background-repeat: repeat-x;
  background-size: 60px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='26'%3E%3Cpath d='M0 14 Q15 2 30 14 T60 14' fill='none' stroke='%235fd4c4' stroke-width='1.5'/%3E%3C/svg%3E");
  animation: drift 12s linear infinite;
}
@keyframes drift { to { background-position-x: 60px; } }

@media (max-width: 520px) {
  .card { padding: 0 18px; }
  .card .sub { letter-spacing: 0.18em; font-size: 11px; }
  .tridents svg:nth-child(n+7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tridents svg, .waves { animation: none; }
}
