:root {
  --night: #07101f;
  --night-deep: #030814;
  --panel: rgba(7, 16, 31, 0.92);
  --panel-solid: #0b1628;
  --ink: #f7fbff;
  --muted: #bdc9d8;
  --blue: #18a9ff;
  --blue-deep: #087ee8;
  --cyan: #75e6ff;
  --line: rgba(255, 255, 255, 0.17);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --radius: 24px;
  --font-body: "Avenir Next", "Trebuchet MS", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--night-deep);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.prompt-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
}

.prompt-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  cursor: pointer;
  background-color: #0a1322;
  background-image: url("../images/mylocalfling-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.035);
  transition: filter 280ms ease, transform 700ms ease;
}

.prompt-backdrop::before,
.prompt-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.prompt-backdrop::before {
  background:
    linear-gradient(90deg, rgba(2, 7, 16, 0.93) 0%, rgba(2, 8, 18, 0.72) 42%, rgba(2, 7, 16, 0.28) 72%, rgba(2, 7, 16, 0.48) 100%),
    linear-gradient(0deg, rgba(2, 7, 16, 0.75) 0%, transparent 38%);
}

.prompt-backdrop::after {
  background: radial-gradient(circle at 22% 52%, rgba(24, 169, 255, 0.18), transparent 34%);
  mix-blend-mode: screen;
}

.prompt-backdrop:hover {
  transform: scale(1.055);
}

.prompt-backdrop:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -6px;
}

.prompt-topbar {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 44px, 1240px);
  margin: 0 auto;
  padding: 22px 0;
}

.prompt-topbar::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 8, 20, 0.96);
  content: "";
  transform: translateX(-50%);
}

.prompt-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
}

.prompt-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 5px 16px rgba(24, 169, 255, 0.35));
}

.prompt-brand-copy {
  display: grid;
  gap: 1px;
}

.prompt-brand-name {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.prompt-brand-tag {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prompt-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-language {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 8, 20, 0.66);
  backdrop-filter: blur(14px);
}

.prompt-language a {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.prompt-language a:hover,
.prompt-language a:focus-visible,
.prompt-language a[aria-current="page"] {
  background: rgba(24, 169, 255, 0.2);
  color: #fff;
  outline: none;
}

.prompt-login,
.prompt-primary,
.prompt-secondary,
.prompt-accept,
.prompt-refuse {
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.prompt-login {
  padding: 0 20px;
  border: 1px solid rgba(117, 230, 255, 0.36);
  background: rgba(3, 8, 20, 0.72);
  color: #fff;
}

.prompt-login:hover,
.prompt-login:focus-visible {
  background: rgba(24, 169, 255, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.prompt-main {
  display: flex;
  align-items: center;
  width: min(100% - 44px, 1240px);
  margin: 0 auto;
  padding: clamp(28px, 7vh, 86px) 0 clamp(58px, 10vh, 118px);
}

.prompt-intro {
  width: min(590px, 100%);
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(7, 16, 31, 0.96), rgba(7, 16, 31, 0.77));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.prompt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 19px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.prompt-eyebrow::before {
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  content: "";
}

.prompt-title {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.96;
  text-wrap: balance;
}

.prompt-title em {
  color: var(--cyan);
  font-style: italic;
}

.prompt-lead {
  max-width: 49ch;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  text-wrap: pretty;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.prompt-primary,
.prompt-accept {
  padding: 0 27px;
  background: linear-gradient(120deg, var(--blue), var(--blue-deep));
  box-shadow: 0 13px 32px rgba(8, 126, 232, 0.3);
  color: #fff;
}

.prompt-primary:hover,
.prompt-primary:focus-visible,
.prompt-accept:hover,
.prompt-accept:focus-visible {
  box-shadow: 0 17px 38px rgba(8, 126, 232, 0.42);
  outline: none;
  transform: translateY(-2px);
}

.prompt-secondary,
.prompt-refuse {
  padding: 0 23px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.prompt-secondary:hover,
.prompt-secondary:focus-visible,
.prompt-refuse:hover,
.prompt-refuse:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.prompt-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 30px 0 0;
  padding: 19px 0 0;
  border-top: 1px solid var(--line);
  color: #dbe8f5;
  font-size: 0.83rem;
  font-weight: 700;
}

.prompt-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.prompt-proof span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(117, 230, 255, 0.1);
  content: "";
}

.prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 44px, 1240px);
  margin: 0 auto;
  padding: 18px 0 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
}

.prompt-foot p {
  margin: 0;
}

.prompt-foot strong {
  color: #fff;
}

.prompt-view-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-view-hint::after {
  content: "↗";
  color: var(--cyan);
  font-size: 1rem;
}

.prompt-promo-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(1, 5, 12, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  visibility: hidden;
}

.prompt-promo-shell.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.prompt-promo-card {
  position: relative;
  width: min(100%, 490px);
  padding: clamp(28px, 5vw, 45px);
  overflow: hidden;
  border: 1px solid rgba(117, 230, 255, 0.34);
  border-radius: 28px;
  background: var(--panel-solid);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.68);
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms ease;
}

.prompt-promo-shell.is-visible .prompt-promo-card {
  transform: translateY(0) scale(1);
}

.prompt-promo-card::before {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(24, 169, 255, 0.16);
  content: "";
  filter: blur(2px);
}

.prompt-promo-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 169, 255, 0.15);
  color: var(--cyan);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-promo-title {
  position: relative;
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.prompt-promo-text {
  position: relative;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.prompt-promo-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.prompt-promo-actions button {
  width: 100%;
}

.prompt-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.prompt-close:hover,
.prompt-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

body.prompt-modal-open {
  overflow: hidden;
}

/* SEO Content — intentionally placed in the masked details mode requested. */
details {
  position: absolute;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

details summary {
  display: none;
}

details article {
  max-width: 760px;
}

@media (min-width: 761px) and (max-height: 800px) {
  .prompt-topbar {
    padding: 12px 0;
  }

  .prompt-main {
    padding: 18px 0 24px;
  }

  .prompt-intro {
    padding: 29px 40px 27px;
  }

  .prompt-title {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
  }

  .prompt-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .prompt-actions {
    margin-top: 21px;
  }

  .prompt-proof {
    margin-top: 20px;
    padding-top: 14px;
  }

  .prompt-foot {
    padding: 12px 0 15px;
  }
}

@media (max-width: 760px) {
  .prompt-scene {
    min-height: 100svh;
  }

  .prompt-backdrop {
    background-position: 61% center;
  }

  .prompt-backdrop::before {
    background: linear-gradient(0deg, rgba(2, 7, 16, 0.94) 0%, rgba(2, 7, 16, 0.72) 65%, rgba(2, 7, 16, 0.5) 100%);
  }

  .prompt-topbar,
  .prompt-main,
  .prompt-foot {
    width: min(100% - 28px, 1240px);
  }

  .prompt-topbar {
    align-items: flex-start;
    padding-top: 14px;
  }

  .prompt-brand-tag,
  .prompt-login {
    display: none;
  }

  .prompt-language a {
    min-width: 34px;
    min-height: 34px;
  }

  .prompt-main {
    align-items: end;
    padding: 24px 0 12px;
  }

  .prompt-intro {
    padding: 22px 22px 20px;
    border-radius: 21px;
  }

  .prompt-title {
    max-width: 11ch;
    font-size: clamp(2.55rem, 13vw, 4.4rem);
  }

  .prompt-actions {
    display: grid;
  }

  .prompt-actions button {
    width: 100%;
  }

  .prompt-proof {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
  }

  .prompt-foot {
    align-items: flex-start;
    padding: 14px 0 18px;
  }

  .prompt-view-hint {
    display: none;
  }
}

@media (max-width: 430px) {
  .prompt-language a {
    min-width: 31px;
    padding: 0 4px;
  }

  .prompt-brand img {
    width: 39px;
    height: 39px;
  }

  .prompt-brand-name {
    font-size: 1rem;
  }

  .prompt-lead {
    margin-top: 14px;
    font-size: 0.92rem;
  }

  .prompt-actions {
    margin-top: 18px;
    gap: 9px;
  }

  .prompt-primary,
  .prompt-secondary {
    min-height: 46px;
  }

  .prompt-proof {
    display: none;
  }

  .prompt-foot {
    padding: 9px 0 12px;
    font-size: 0.68rem;
  }

  .prompt-promo-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
