/* Lagoon at dusk. Written for older TV browsers: flexbox only, no grid gap,
   no clamp(), no CSS variables, sizes in vw so it scales on any TV. */
html, body { height: 100%; margin: 0; }
body {
  background: #0a1224;
  color: #f5eee0;
  font-family: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;
  overflow: hidden;
  cursor: none;
}
canvas#scene { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.veil {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(10,18,36,0.80) 0%, rgba(10,18,36,0.35) 48%, rgba(10,18,36,0.58) 100%);
}

/* ---------- Shared ---------- */
.brand {
  font-size: 1.05vw; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(245,238,224,0.72);
}
.brand:before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 1.8vw; height: 1px; background: #eab866; margin-right: 0.8vw;
}

/* ---------- Logo ---------- */
.logo { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.logo-mark { width: 3vw; height: 3vw; margin-right: 0.9vw; }
.logo-word { font-family: "Libre Baskerville", Baskerville, Georgia, serif; font-size: 1.7vw; letter-spacing: 0.01em; color: #f5eee0; }
.logo-word i { font-style: italic; }
.hello .brand { margin-bottom: 2.2vh; }

/* ---------- Pairing screen ---------- */
.pair {
  position: relative; height: 100%; box-sizing: border-box;
  padding: 5vh 5vw;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-justify-content: space-between; justify-content: space-between;
}
.pair-kicker { font-size: 1.6vw; color: #eab866; margin: 0 0 1.5vh; }
.code {
  font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-weight: 700;
  font-size: 11vw; letter-spacing: 0.08em; line-height: 1;
}
.pair-steps { margin: 4vh 0 0; padding-left: 2.2vw; font-size: 1.7vw; line-height: 1.7; color: rgba(245,238,224,0.85); }
.pair-steps b { color: #f5eee0; }
.pair-note { margin: 0; font-size: 1.1vw; color: rgba(245,238,224,0.6); }

/* ---------- Welcome screen ---------- */
.stage {
  position: relative; height: 100%; box-sizing: border-box;
  padding: 5vh 5vw;
  display: -webkit-flex; display: flex;
}
.left {
  -webkit-flex: 1.25; flex: 1.25; min-width: 0; margin-right: 4vw;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-justify-content: space-between; justify-content: space-between;
}
.right {
  -webkit-flex: 1; flex: 1; min-width: 0;
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-justify-content: center; justify-content: center;
}
.greet { font-size: 1.7vw; color: #eab866; letter-spacing: 0.04em; margin-bottom: 1vh; }
h1 {
  font-family: "Gloock", Georgia, "Times New Roman", serif; font-weight: 400;
  margin: 0 0 2vh; font-size: 7.2vw; line-height: 0.98; word-wrap: break-word;
}
h1 .name { display: block; }
.stay { font-size: 1.3vw; color: rgba(245,238,224,0.72); }
.stay span { margin-right: 2vw; }
.stay b { color: #f5eee0; font-weight: 600; }
.clock .time { font-family: "Gloock", Georgia, serif; font-size: 4.6vw; line-height: 1; margin-right: 1.2vw; }
.clock .date { font-size: 1.15vw; color: rgba(245,238,224,0.72); }

.card {
  background: rgba(9,16,34,0.62); border: 1px solid rgba(245,238,224,0.16);
  border-radius: 1vw; padding: 2.2vw; margin-bottom: 2.4vh;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.label { font-size: 0.85vw; letter-spacing: 0.2em; text-transform: uppercase; color: #eab866; margin: 0 0 1.6vh; }
.wifi { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.wifi-text { -webkit-flex: 1; flex: 1; min-width: 0; }
.k { display: block; font-size: 0.9vw; color: rgba(245,238,224,0.72); }
.v {
  display: block; font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-weight: 700;
  font-size: 2vw; margin: 0.3vh 0 1.4vh; word-wrap: break-word;
}
.qr-wrap { margin-left: 1.8vw; }
.qr { background: #f5eee0; border-radius: 0.7vw; padding: 0.5vw; width: 8.5vw; line-height: 0; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-note { font-size: 0.8vw; color: rgba(245,238,224,0.72); text-align: center; margin-top: 0.8vh; }
ul.rules { list-style: none; margin: 0; padding: 0; }
ul.rules li { position: relative; padding-left: 1.6vw; font-size: 1.25vw; line-height: 1.35; margin-bottom: 1.2vh; }
ul.rules li:before {
  content: ""; position: absolute; left: 0.2vw; top: 0.55vw; width: 0.45vw; height: 0.45vw;
  background: #eab866; -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.foot {
  display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between;
  font-size: 1vw; color: rgba(245,238,224,0.72); margin-top: 0.6vh;
}
.foot b { color: #f5eee0; font-weight: 600; }

.status {
  position: fixed; right: 2vw; bottom: 2vh; font-size: 0.9vw; color: rgba(245,238,224,0.55);
}

.fade-in { -webkit-animation: rise 1.2s ease-out both; animation: rise 1.2s ease-out both; }
@-webkit-keyframes rise { from { opacity: 0.001; -webkit-transform: translateY(16px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes rise { from { opacity: 0.001; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Phones and narrow windows (for previewing, not for guests) */
@media (max-width: 800px) {
  body { overflow-y: auto; }
  .stage { -webkit-flex-direction: column; flex-direction: column; height: auto; min-height: 100%; }
  .left { margin: 0 0 6vw; }
  .brand { font-size: 3vw; }
  .logo-mark { width: 9vw; height: 9vw; margin-right: 2.5vw; } .logo-word { font-size: 5.5vw; }
  .greet { font-size: 4.5vw; }
  h1 { font-size: 13vw; }
  .stay, ul.rules li, .foot { font-size: 4vw; }
  .clock .time { font-size: 10vw; } .clock .date { font-size: 3.5vw; }
  .label, .k, .qr-note { font-size: 3vw; }
  .v { font-size: 5vw; }
  .qr { width: 26vw; }
  .card { padding: 5vw; border-radius: 3vw; }
  ul.rules li { padding-left: 5vw; } ul.rules li:before { width: 1.6vw; height: 1.6vw; top: 1.8vw; }
  .foot { -webkit-flex-direction: column; flex-direction: column; }
  .code { font-size: 16vw; } .pair-kicker { font-size: 5vw; } .pair-steps { font-size: 4.5vw; padding-left: 6vw; } .pair-note, .status { font-size: 3.5vw; }
}
