
/* =========================================================
   Questeria Adventure UI — shared enhancement layer
   Builds on the original style.css without replacing it.
   ========================================================= */

:root {
  --quest-shadow: 0 18px 48px rgba(31,41,51,.12);
  --quest-border: rgba(31,41,51,.09);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

body > header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body > header::before,
body > header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 2px dashed rgba(31,41,51,.10);
  border-radius: 50%;
  z-index: -1;
}

body > header::before {
  width: 620px;
  height: 300px;
  left: -180px;
  top: -150px;
  transform: rotate(-18deg);
}

body > header::after {
  width: 520px;
  height: 250px;
  right: -150px;
  bottom: -130px;
  transform: rotate(16deg);
}

.logo {
  filter: drop-shadow(0 14px 25px rgba(31,41,51,.13));
  transition: transform .25s ease;
}

.logo:hover {
  transform: translateY(-5px) rotate(1deg);
}

body > header h1 {
  position: relative;
  letter-spacing: -.035em;
}

body > header h1::after {
  content: "✦";
  display: inline-block;
  margin-left: 12px;
  color: var(--accent);
  font-size: .55em;
  vertical-align: middle;
}

section {
  position: relative;
}

section:not(.preview):not(.audience) {
  background:
    radial-gradient(circle at 8% 20%, rgba(111,218,220,.13), transparent 22%),
    radial-gradient(circle at 92% 75%, rgba(255,152,0,.08), transparent 20%);
}

.feature,
.status-box {
  border: 1px solid var(--quest-border);
  box-shadow: var(--quest-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(31,41,51,.14);
  border-color: rgba(111,218,220,.45);
}

.feature h3 {
  position: relative;
}

.feature h3::first-letter {
  font-size: 1.1em;
}

.preview {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(31,41,51,.06);
}

.preview::before {
  content: "QUEST MAP";
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: .68rem;
  letter-spacing: .18em;
  font-weight: 800;
  color: rgba(31,41,51,.22);
}

.screen img {
  transition: transform .3s ease, box-shadow .3s ease;
}

.screen:hover img {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 26px 60px rgba(0,0,0,.25);
}

.audience {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(31,41,51,.12);
}

.audience::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 220px;
  border: 2px dashed rgba(255,255,255,.20);
  border-radius: 50%;
  right: -120px;
  top: -80px;
  transform: rotate(-18deg);
  pointer-events: none;
}

.audience-grid > div {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(5px);
}

.audience-grid p {
  color: rgba(255,255,255,.86);
}

.status-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px;
  background:
    radial-gradient(circle at 50% 0%, rgba(111,218,220,.12), transparent 45%),
    var(--light);
}

.status-icon {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31,41,51,.10);
}

.status-title {
  font-weight: 750;
}

body.legal-page section {
  max-width: 920px;
}

body.legal-page section > h3:first-child {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

body.legal-page section > h3:first-child::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 16px;
  border-radius: 99px;
  background: var(--accent);
}

body.legal-page section h2 {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(31,41,51,.08);
}

body.legal-page section h3:not(:first-child) {
  color: var(--dark);
  font-size: 1.35rem;
}

body.legal-page section p,
body.legal-page section li {
  color: var(--muted);
}

body.legal-page section strong {
  color: var(--dark);
}

body.legal-page section ul,
body.legal-page section ol {
  background: rgba(255,255,255,.65);
  border-radius: 18px;
  padding: 18px 22px 18px 42px;
}

body.tester-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(111,218,220,.22), transparent 25%),
    radial-gradient(circle at 90% 90%, rgba(255,152,0,.13), transparent 25%),
    var(--light);
}

.tester-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.tester-hero {
  text-align: center;
  padding: 48px 28px;
  background: var(--primary);
  border-radius: 32px;
  box-shadow: var(--quest-shadow);
  position: relative;
  overflow: hidden;
}

.tester-hero::after {
  content: "◆  ·  ◆  ·  ◆";
  position: absolute;
  bottom: 18px;
  right: 24px;
  color: rgba(31,41,51,.16);
  letter-spacing: .35em;
}

.tester-hero h1 {
  margin: 0 0 10px;
}

.tester-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
}

.tester-group {
  margin-top: 34px;
}

.tester-group h2 {
  margin-bottom: 16px;
}

.quest-link {
  display: block;
  margin: 12px 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--quest-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.quest-link:hover {
  transform: translateX(5px);
  border-color: rgba(111,218,220,.55);
  box-shadow: 0 14px 32px rgba(31,41,51,.11);
}

.quest-link .env {
  display: inline-block;
  min-width: 58px;
  margin-right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(111,218,220,.18);
  color: #278f90;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quest-link.https .env {
  background: rgba(255,152,0,.14);
  color: #b66c00;
}

@media (max-width: 700px) {
  .logo { height: 120px; }
  body > header { padding: 44px 20px; }
  section { padding: 52px 20px; }
  .status-box { padding: 34px 22px; }
  .audience-grid > div { padding: 20px; }
  .tester-shell { padding: 28px 16px 60px; }
  .tester-hero { padding: 38px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .feature, .screen img, .quest-link {
    transition: none;
  }
}
