:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #071624;
  color: #f6f4ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(circle at 50% -15%, #1d3548 0, #071624 47%);
}

.page {
  width: min(100% - 36px, 420px);
  margin: auto;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom));
}

header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.brand { font-size: 14px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.brand span { color: #d2ae71; }
.location { color: #b4bfca; font-size: 12px; letter-spacing: .04em; }

h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 7vw, 37px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.video-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid #3c4650;
  border-radius: 17px;
  background: #000;
  box-shadow: 0 18px 38px #0005;
}

.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hint { margin: 10px 0 18px; color: #afbac6; font-size: 13px; line-height: 1.4; text-align: center; }
.actions { display: grid; gap: 10px; }

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 53px;
  padding: 13px 18px;
  appearance: none;
  border: 1px solid #c5a467;
  border-radius: 11px;
  background: #c5a467;
  color: #071624;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, background .15s;
}

.action:hover { background: #e4c892; transform: translateY(-1px); }
.action.secondary { border-color: #4b697b; background: #142c3e; color: #f9f5ed; }
.action.secondary:hover { background: #24445a; }
.action.tertiary { border-color: #405360; background: transparent; color: #d2dbe3; font-weight: 500; }
.action.tertiary:hover { background: #163044; }
.action-note { margin: -2px 0 4px; color: #aebbc5; font-size: 12px; line-height: 1.4; text-align: center; }

.panel { margin: 14px 0 0; padding: 18px; border: 1px solid #50636c; border-radius: 14px; background: #112838; }
.panel[hidden], [hidden] { display: none !important; }
h2 { margin: 0 0 5px; font-size: 19px; line-height: 1.25; }
.small { margin: 0 0 16px; color: #bfccd5; font-size: 13px; line-height: 1.5; }
.form-grid { display: grid; gap: 13px; }
label { display: grid; gap: 6px; color: #e5ebee; font-size: 14px; }

.field {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #72818a;
  border-radius: 8px;
  background: #f8fafb;
  color: #162633;
  font: inherit;
  font-size: 16px;
}

.field[aria-invalid="true"] { border-color: #ff9696; box-shadow: 0 0 0 1px #ff9696; }
.field:disabled { background: #d7dde1; color: #5b6972; cursor: not-allowed; }
.help { color: #aebdc7; font-size: 12px; line-height: 1.35; }
.error { color: #ffb3b3; font-size: 13px; font-weight: 650; line-height: 1.35; }
.panel .action { margin-top: 17px; }
.disclaimer { margin: 10px 0 0; color: #b6c4cc; font-size: 12px; line-height: 1.45; }

.close {
  float: right;
  padding: 0 2px 5px 12px;
  border: 0;
  background: transparent;
  color: #e4ebef;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.action:focus-visible,
.field:focus-visible,
.close:focus-visible,
h2:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (min-width: 700px) {
  .page { padding-top: 36px; }
}

@media (max-height: 720px) {
  .page { padding-top: 16px; }
  .hint { margin-bottom: 11px; }
  h1 { margin-bottom: 10px; }
}

@media (max-width: 370px) {
  .page { width: min(100% - 24px, 420px); }
  .location { font-size: 11px; }
}
