:root {
  --bg: #0d1511;
  --bg-2: #13201a;
  --card: rgba(255, 255, 255, 0.06);
  --card-solid: #17261e;
  --line: rgba(255, 255, 255, 0.15);
  --text: #f4f7f4;
  --muted: #b4c4b8;
  --pink: #e3262e;      /* Welsh red: focus rings */
  --orange: #ffb547;    /* skip */
  --yellow: #ffd84d;    /* new-request flash */
  --cyan: #6fd27a;      /* names & links: dragon green */
  --green: #39b54a;
  --red: #ff5a5f;
  --grad: linear-gradient(180deg, #ef3a40 0%, #c8161e 100%);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, .btn { font-family: Fredoka, Inter, system-ui, sans-serif; }
a { color: var(--cyan); }

.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 10% -10%, rgba(227, 38, 46, .30), transparent 60%),
    radial-gradient(35rem 28rem at 110% 15%, rgba(57, 181, 74, .25), transparent 60%),
    radial-gradient(40rem 30rem at 50% 120%, rgba(57, 181, 74, .18), transparent 60%);
}

/* ---------- guest page ---------- */
.wrap {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px 32px;
}
.brand { text-align: center; margin: 4px 0 20px; }
.brand h1 { margin: 0; line-height: 0; }
.logo {
  display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto;
  /* soft light halo so the logo's black outline stands out on the dark page */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 6px 22px rgba(0, 0, 0, .5));
}
.dash-title { margin: 14px 0 0; font-size: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.card h2 { margin: 0 0 4px; font-size: 26px; font-weight: 600; }
.muted { color: var(--muted); }
.intro { margin: 0 0 18px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: rgba(0, 0, 0, .25);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: rgba(185, 176, 220, .55); }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(57, 181, 74, .25); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--grad); color: #fff;
  font-size: 17px; font-weight: 600; padding: 12px 22px;
  box-shadow: 0 8px 24px rgba(227, 38, 46, .35);
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: default; }
.btn-big { width: 100%; font-size: 19px; padding: 15px 22px; margin-top: 6px; }

.errors {
  background: rgba(255, 90, 110, .14); border: 1px solid rgba(255, 90, 110, .5);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.errors p { margin: 4px 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success, .closed { text-align: center; padding: 8px 0; }
.tick {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: var(--green); box-shadow: 0 0 0 8px rgba(61, 220, 132, .18);
}
.sent-song {
  margin: 14px auto; padding: 12px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
}
.sent-song strong { display: block; font-size: 19px; }
.sent-song span { color: var(--muted); }
.success .btn { margin-top: 10px; }

.foot { text-align: center; margin-top: 22px; font-size: 14px; }
.foot a { color: var(--muted); }

.notice {
  background: rgba(57, 181, 74, .16); border: 1px solid rgba(57, 181, 74, .55);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.notice p { margin: 4px 0; }

/* ---------- house rules ---------- */
.notice-box {
  background: rgba(255, 216, 77, .09);
  border: 1.5px solid rgba(255, 216, 77, .6);
  border-radius: 14px; padding: 14px 16px; margin: 0 0 20px;
}
.notice-head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-family: Fredoka, Inter, sans-serif; font-size: 20px; font-weight: 600; color: var(--yellow);
}
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; }
.rule-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--yellow); color: #1a1a1a;
}
.rules strong { display: block; font-size: 16px; }
.rules li > div > span { display: block; font-size: 15px; color: var(--muted); }
.rules-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(255, 216, 77, .4); font-weight: 600; font-size: 15px; }

.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  background: rgba(0, 0, 0, .22); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; margin: 4px 0 8px;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: none; width: 26px; height: 26px; border-radius: 7px; margin-top: 1px;
  border: 2px solid var(--muted); background: rgba(0, 0, 0, .3);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.check .box::after {
  content: ""; width: 7px; height: 13px; margin-top: -3px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0);
  transition: transform .12s;
}
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .box { outline: 3px solid rgba(57, 181, 74, .45); outline-offset: 2px; }
.check-text { font-size: 15px; font-weight: 500; }
.check:has(input:checked) { border-color: rgba(57, 181, 74, .6); }
