:root {
  color-scheme: light;
  --paper: #fff7eb;
  --paper-soft: #fffaf3;
  --sand: #f3ecdf;
  --ink: #243347;
  --muted: #657181;
  --blue: #243347;
  --blue-dark: #182638;
  --teal: #5fa3a2;
  --coral: #ff876a;
  --sunshine: #f4b72a;
  --sage: #8ba57b;
  --dusty: #6d8fb3;
  --glass: #dcefed;
  --glass-strong: #8cc7c4;
  --crystal: #f7fffc;
  --rust: #ff876a;
  --mist: #e7f0de;
  --line: #dfd5c5;
  --dark: #243347;
  --dark-panel: #2d4057;
  --dark-panel-2: #365675;
  --dark-text: #fff7eb;
  --dark-muted: #d8e0e7;
  --signal: #f4b72a;
  --green: #8ba57b;
  --red: #d46a54;
  --shadow: 0 20px 50px rgba(32, 38, 43, 0.14);
  --dark-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 4px;
  --content: min(1120px, calc(100% - 32px));
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-body: Inter, Arial, Helvetica, sans-serif;
}

/* Mission 02 — Különös baleset / digital case-file system */
.lake-mission-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
  color: #f4f7f6;
  background: #06151a;
  border-color: rgba(238, 164, 44, 0.45);
}

.lake-mission-card::before,
.lake-mission-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.lake-mission-card::before {
  inset: 14px;
  border: 1px solid rgba(238, 164, 44, 0.42);
  background:
    linear-gradient(#eaa42d, #eaa42d) left top / 38px 2px no-repeat,
    linear-gradient(#eaa42d, #eaa42d) left top / 2px 38px no-repeat,
    linear-gradient(#eaa42d, #eaa42d) right bottom / 38px 2px no-repeat,
    linear-gradient(#eaa42d, #eaa42d) right bottom / 2px 38px no-repeat;
}

.lake-mission-card::after {
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(94, 210, 207, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 210, 207, 0.25) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to top, #000, transparent 72%);
}

.lake-card-video,
.lake-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lake-card-video {
  z-index: -2;
  object-fit: cover;
}

.lake-card-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 12, 17, 0.97) 0%, rgba(2, 18, 23, 0.86) 54%, rgba(2, 16, 21, 0.46) 100%),
    linear-gradient(to top, rgba(2, 12, 17, 0.92), transparent 65%);
}

.lake-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(26px, 5vw, 54px);
}

.lake-card-content h3 {
  max-width: 510px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.mission-grid .lake-mission-card p {
  max-width: 600px;
  color: rgba(239, 247, 246, 0.82);
}

.lake-card-kicker {
  margin: 24px 0 8px;
  color: #eaa42d !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #8ee9df;
  background: rgba(5, 26, 31, 0.72);
  border: 1px solid rgba(111, 226, 213, 0.38);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-status i,
.lake-system-label span {
  width: 7px;
  height: 7px;
  background: #64ddd0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(100, 221, 208, 0.13), 0 0 16px #64ddd0;
  animation: lake-status-pulse 2s ease-in-out infinite;
}

.lake-card-meta {
  margin: 4px 0 22px;
}

.lake-card-meta span {
  color: rgba(242, 247, 246, 0.88);
  background: rgba(7, 29, 34, 0.7);
  border-color: rgba(122, 220, 209, 0.24);
}

.button.lake-button {
  color: #07181d;
  background: #efa831;
  border: 1px solid #ffc65f;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(239, 168, 49, 0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button.lake-button:hover {
  color: #07181d;
  background: #ffc65f;
}

.app-shell:has(.lake-case-page) {
  color: #dfe9e7;
  background: #041217;
}

.app-shell:has(.lake-case-page) .site-header {
  color: #f3f7f5;
  background: rgba(3, 16, 21, 0.84);
  border-bottom-color: rgba(229, 163, 48, 0.26);
}

.app-shell:has(.lake-case-page) .site-footer {
  color: rgba(229, 238, 236, 0.72);
  background: #020b0e;
  border-top: 1px solid rgba(229, 163, 48, 0.2);
}

.lake-case-page {
  --lake-bg: #041217;
  --lake-panel: #081b21;
  --lake-line: rgba(92, 203, 193, 0.2);
  --lake-cyan: #67d8ce;
  --lake-amber: #efa831;
  position: relative;
  overflow: hidden;
  color: #dfe9e7;
  background:
    radial-gradient(circle at 82% 34%, rgba(14, 83, 88, 0.19), transparent 28rem),
    var(--lake-bg);
  font-family: var(--font-body);
}

.lake-case-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.035;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px);
}

.lake-case-hero {
  position: relative;
  min-height: min(850px, calc(100svh - 72px));
  overflow: hidden;
  isolation: isolate;
  background: #041319;
}

.lake-satellite,
.lake-hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lake-satellite {
  z-index: -2;
  max-width: none;
  object-fit: cover;
  object-position: center;
  animation: lake-map-drift 18s ease-in-out infinite alternate;
}

.lake-hero-vignette {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 10, 14, 0.94) 0%, rgba(2, 15, 20, 0.66) 42%, rgba(2, 13, 18, 0.12) 72%),
    linear-gradient(0deg, #041217 0%, transparent 26%, rgba(1, 10, 14, 0.24) 100%),
    radial-gradient(circle at 55% 58%, transparent 0 20%, rgba(0, 8, 12, 0.4) 70%);
}

.lake-scan-line {
  position: absolute;
  z-index: 2;
  top: -15%;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(100, 224, 211, 0.25) 15%, #74e5da 52%, transparent 88%);
  box-shadow: 0 0 34px 10px rgba(78, 220, 208, 0.13);
  animation: lake-scan 7s linear infinite;
}

.lake-target {
  position: absolute;
  z-index: 2;
  top: 56%;
  left: 61%;
  width: 112px;
  aspect-ratio: 1;
  border: 1px solid rgba(239, 168, 49, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: lake-target-turn 18s linear infinite;
}

.lake-target::before,
.lake-target::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(239, 168, 49, 0.7);
  border-radius: 50%;
}

.lake-target::after {
  inset: 50% -22px auto;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: rgba(239, 168, 49, 0.7);
}

.lake-target span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff0c8;
  border-radius: 50%;
  box-shadow: 0 0 8px 4px #efa831, 0 0 34px 12px rgba(239, 168, 49, 0.58);
  transform: translate(-50%, -50%);
}

.lake-coordinates {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 72px);
  bottom: 92px;
  color: rgba(209, 229, 225, 0.68);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: right;
}

.lake-coordinates b {
  color: var(--lake-amber);
}

.lake-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: min(850px, calc(100svh - 72px));
  margin: 0 auto;
  padding: clamp(70px, 12vh, 140px) 0 92px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.lake-system-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--lake-cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lake-case-hero h1 {
  max-width: 820px;
  color: #f5f8f7;
  font-size: clamp(3.7rem, 9.5vw, 8.8rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.55);
}

.lake-case-hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 168, 49, 0.95);
  font-style: normal;
}

.lake-lead {
  max-width: 610px;
  margin: 32px 0 0;
  color: rgba(229, 238, 236, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.55;
}

.lake-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.lake-hero-actions > span {
  color: rgba(217, 231, 228, 0.58);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.lake-scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(213, 231, 228, 0.45);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  transform: translateX(-50%);
}

.lake-scroll-cue i {
  width: 34px;
  height: 1px;
  overflow: hidden;
  background: rgba(103, 216, 206, 0.25);
}

.lake-scroll-cue i::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: var(--lake-cyan);
  animation: lake-scroll 1.8s ease-in-out infinite;
}

.lake-case-strip {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: -32px auto 0;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(7, 28, 34, 0.96);
  border: 1px solid rgba(103, 216, 206, 0.22);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.lake-case-strip > div {
  display: flex;
  min-height: 124px;
  padding: 22px 26px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(103, 216, 206, 0.13);
}

.lake-case-strip > div:last-child {
  border-right: 0;
}

.lake-case-strip span,
.lake-case-strip small {
  color: rgba(207, 226, 222, 0.5);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lake-case-strip strong {
  margin: 7px 0 4px;
  color: #f2f6f5;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.lake-dossier,
.lake-questions,
.lake-assignment {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.lake-dossier {
  padding: clamp(100px, 13vw, 180px) 0 130px;
}

.lake-dossier::before {
  content: "CASE 02";
  position: absolute;
  top: 74px;
  right: -1vw;
  color: rgba(103, 216, 206, 0.03);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(6rem, 15vw, 13rem);
  font-weight: 900;
  white-space: nowrap;
}

.lake-dossier-heading {
  position: relative;
  max-width: 850px;
  margin-bottom: 70px;
}

.lake-dossier h2,
.lake-questions h2,
.lake-assignment h2 {
  color: #eff5f3;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.lake-story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.lake-evidence-panel {
  position: sticky;
  top: 100px;
  padding: 14px;
  background: rgba(8, 31, 37, 0.72);
  border: 1px solid rgba(103, 216, 206, 0.2);
  box-shadow: 18px 22px 0 rgba(0, 0, 0, 0.12);
  transform: rotate(-1.2deg);
}

.lake-evidence-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #021014;
}

.lake-evidence-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(0.65) contrast(1.15);
}

.lake-evidence-photo span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  color: #06161a;
  background: var(--lake-amber);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.lake-evidence-panel dl {
  margin: 12px 0 0;
}

.lake-evidence-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(103, 216, 206, 0.12);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
}

.lake-evidence-panel dt {
  color: rgba(213, 229, 226, 0.42);
  text-transform: uppercase;
}

.lake-evidence-panel dd {
  margin: 0;
  color: rgba(233, 241, 239, 0.82);
  text-align: right;
}

.lake-evidence-panel .status-open {
  color: var(--lake-amber);
}

.lake-story-copy {
  max-width: 700px;
  color: rgba(220, 233, 230, 0.76);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
}

.lake-story-copy p {
  margin: 0 0 26px;
}

.lake-story-copy .lake-dropcap::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  color: var(--lake-amber);
  font-family: var(--font-display);
  font-size: 4.8rem;
  line-height: 0.72;
}

.lake-story-copy blockquote {
  position: relative;
  margin: 48px 0;
  padding: 28px 30px 28px 38px;
  color: #f6f8f7;
  background: linear-gradient(90deg, rgba(239, 168, 49, 0.1), transparent);
  border-left: 2px solid var(--lake-amber);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.lake-questions {
  padding: 110px 0;
  border-top: 1px solid var(--lake-line);
}

.lake-questions::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -15%;
  width: 78%;
  height: 140px;
  opacity: 0.2;
  background: url("/public/assets/lake/rendorseg-szalag.png") center / cover no-repeat;
  transform: rotate(-5deg);
  pointer-events: none;
}

.lake-question-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(50px, 9vw, 130px);
}

.lake-question-grid ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lake-question-grid li {
  display: grid;
  min-height: 96px;
  padding: 22px 0;
  grid-template-columns: 58px 1fr;
  align-items: center;
  color: rgba(235, 242, 240, 0.86);
  border-bottom: 1px solid rgba(103, 216, 206, 0.16);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.45;
}

.lake-question-grid li span {
  color: var(--lake-amber);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.lake-assignment {
  padding: 90px 0 130px;
}

.lake-assignment-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 86px);
  background:
    linear-gradient(135deg, rgba(9, 40, 46, 0.96), rgba(5, 23, 29, 0.98)),
    #081c22;
  border: 1px solid rgba(103, 216, 206, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.lake-assignment-inner::after {
  content: "02";
  position: absolute;
  right: -0.03em;
  bottom: -0.29em;
  color: rgba(103, 216, 206, 0.045);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(12rem, 30vw, 24rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.lake-assignment-inner > * {
  position: relative;
  z-index: 1;
}

.lake-assignment h2 {
  max-width: 900px;
}

.lake-assignment-inner > p:not(.lake-system-label) {
  max-width: 760px;
  margin: 28px 0;
  color: rgba(219, 232, 229, 0.72);
  font-size: 1.08rem;
}

.lake-case-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.lake-case-summary span {
  padding: 10px 13px;
  color: rgba(222, 235, 232, 0.66);
  background: rgba(3, 18, 23, 0.5);
  border: 1px solid rgba(103, 216, 206, 0.15);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.lake-case-summary b {
  color: var(--lake-amber);
}

.lake-assignment .lake-button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.lake-assignment-inner > small {
  display: block;
  margin-top: 12px;
  color: rgba(210, 227, 223, 0.45);
}

@keyframes lake-status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes lake-map-drift {
  from { transform: scale(1.015) translate3d(-0.4%, 0, 0); }
  to { transform: scale(1.075) translate3d(0.7%, -0.6%, 0); }
}

@keyframes lake-scan {
  0% { top: -10%; opacity: 0; }
  8% { opacity: 0.8; }
  72% { opacity: 0.7; }
  86%, 100% { top: 108%; opacity: 0; }
}

@keyframes lake-target-turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes lake-scroll {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(200%); }
}

@media (max-width: 850px) {
  .lake-case-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .lake-case-strip > div:nth-child(2) {
    border-right: 0;
  }

  .lake-case-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(103, 216, 206, 0.13);
  }

  .lake-story-grid,
  .lake-question-grid {
    grid-template-columns: 1fr;
  }

  .lake-evidence-panel {
    position: relative;
    top: auto;
    max-width: 520px;
    transform: rotate(-0.6deg);
  }

  .lake-questions::after {
    top: 88px;
    right: -30%;
    width: 110%;
  }
}

@media (max-width: 640px) {
  .lake-mission-card {
    min-height: 610px;
  }

  .lake-card-content {
    min-height: 580px;
    padding: 28px 25px;
  }

  .mission-grid .lake-mission-card p {
    line-height: 1.55;
  }

  .lake-card-video {
    object-position: 64% center;
  }

  .lake-case-hero,
  .lake-hero-content {
    min-height: calc(100svh - 66px);
  }

  .lake-satellite {
    object-position: 61% center;
  }

  .lake-hero-vignette {
    background:
      linear-gradient(0deg, #041217 0%, rgba(2, 13, 18, 0.48) 30%, rgba(1, 10, 14, 0.14) 64%),
      linear-gradient(90deg, rgba(1, 10, 14, 0.88), rgba(1, 10, 14, 0.18));
  }

  .lake-hero-content {
    width: calc(100% - 34px);
    padding: 78px 0 86px;
    justify-content: flex-end;
  }

  .lake-case-hero h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .lake-lead {
    margin-top: 22px;
    font-size: 1rem;
  }

  .lake-target {
    top: 32%;
    left: 65%;
    width: 88px;
  }

  .lake-coordinates {
    top: 22px;
    right: 17px;
    bottom: auto;
    font-size: 0.56rem;
  }

  .lake-scroll-cue {
    display: none;
  }

  .lake-case-strip,
  .lake-dossier,
  .lake-questions,
  .lake-assignment {
    width: calc(100% - 28px);
  }

  .lake-case-strip {
    margin-top: -20px;
  }

  .lake-case-strip > div {
    min-height: 104px;
    padding: 16px;
  }

  .lake-case-strip strong {
    font-size: 0.98rem;
  }

  .lake-case-strip span,
  .lake-case-strip small {
    font-size: 0.54rem;
  }

  .lake-dossier {
    padding: 92px 0 80px;
  }

  .lake-dossier-heading {
    margin-bottom: 44px;
  }

  .lake-dossier h2,
  .lake-questions h2,
  .lake-assignment h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .lake-story-grid {
    gap: 48px;
  }

  .lake-story-copy blockquote {
    margin: 38px 0;
    padding: 22px 20px 22px 24px;
  }

  .lake-questions {
    padding: 80px 0;
  }

  .lake-question-grid {
    gap: 30px;
  }

  .lake-question-grid li {
    grid-template-columns: 42px 1fr;
  }

  .lake-assignment {
    padding: 52px 0 90px;
  }

  .lake-assignment-inner {
    padding: 34px 24px;
  }

  .lake-case-summary {
    display: grid;
  }
}

/* Route-aware mission picker. */
.nav-mission-picker {
  position: relative;
  display: grid;
}

.nav-mission-trigger {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.nav-mission-trigger:hover,
.nav-mission-trigger[aria-expanded="true"] {
  background: rgba(95, 163, 162, 0.2);
}

.nav-mission-trigger span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-mission-trigger[aria-expanded="true"] span {
  transform: translateY(2px) rotate(225deg);
}

.nav-mission-menu {
  display: none;
  gap: 4px;
  padding: 6px;
  background: rgba(18, 34, 53, 0.98);
  border: 1px solid rgba(255, 135, 106, 0.25);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(8, 18, 31, 0.34);
}

.nav-mission-picker.is-open .nav-mission-menu {
  display: grid;
}

.site-nav .nav-mission-menu a {
  display: grid;
  min-height: 0;
  gap: 2px;
  justify-items: start;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
}

.nav-mission-menu a small {
  color: #9fb6ce;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-mission-menu a strong {
  color: #fff7eb;
  font-size: 0.88rem;
  line-height: 1.25;
}

.nav-mission-menu a[aria-current="page"] {
  background: rgba(255, 135, 106, 0.14);
  box-shadow: inset 3px 0 0 #ff876a;
}

@media (min-width: 900px) {
  .nav-mission-picker {
    display: flex;
    align-items: center;
  }

  .nav-mission-trigger {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.94rem;
  }

  .nav-mission-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: 286px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav-mission-picker.is-open .nav-mission-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

/* Exact specificity is required to beat the lake page's original dark chrome. */
.app-shell:has(.lake-case-page:not(.bernat-case-page)) .site-header,
.app-shell:has(.bernat-mission-page) .site-header {
  color: #fff7eb;
  background: #243347;
  border-bottom-color: rgba(255, 135, 106, 0.22);
}

.app-shell:has(.lake-case-page:not(.bernat-case-page)) .site-footer,
.app-shell:has(.bernat-mission-page) .site-footer {
  color: #fff7eb;
  background: #243347;
  border-top-color: rgba(255, 135, 106, 0.22);
}

/* Start page: mission posters echo the homepage without motion. */
.app-shell:not(.game-mode) .start-screen {
  width: min(1040px, calc(100% - 32px));
  padding: clamp(46px, 8vh, 88px) 0;
}

.app-shell:not(.game-mode) .start-panel {
  max-width: 1040px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.start-panel > .eyebrow {
  margin-bottom: 12px;
}

.start-panel > h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.start-panel > h1 + p {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--dark-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.6;
}

.start-mission-picker {
  gap: 14px;
}

.start-mission-picker legend {
  margin-bottom: 2px;
}

.start-mission-picker label > span {
  position: relative;
  display: flex;
  min-height: 238px;
  align-items: flex-end;
  overflow: hidden;
  padding: 25px;
  border: 2px solid rgba(255, 247, 235, 0.18);
  border-radius: 14px 4px 14px 4px;
  box-shadow: 0 22px 52px rgba(8, 18, 31, 0.28);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.start-mission-picker .bernat-choice > span {
  background:
    linear-gradient(0deg, rgba(2, 19, 13, 0.96), rgba(5, 43, 29, 0.22) 74%),
    linear-gradient(90deg, rgba(3, 28, 19, 0.88), rgba(3, 28, 19, 0.12)),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #08291d;
  border-color: rgba(166, 255, 211, 0.5);
}

.start-mission-picker .lake-choice > span {
  background:
    linear-gradient(0deg, rgba(7, 18, 35, 0.97), rgba(18, 49, 88, 0.2) 74%),
    linear-gradient(90deg, rgba(10, 34, 66, 0.86), rgba(10, 34, 66, 0.1)),
    url("/public/assets/lake/to-muhold-kep.png") center / cover no-repeat,
    #142f55;
  border-color: rgba(75, 145, 245, 0.64);
}

.start-mission-picker label:hover > span {
  border-color: #ff876a;
  box-shadow: 0 25px 58px rgba(8, 18, 31, 0.36);
  transform: none;
}

.start-mission-picker input:checked + span {
  border-color: #ff876a;
  box-shadow:
    inset 0 0 0 2px rgba(255, 135, 106, 0.28),
    0 24px 58px rgba(8, 18, 31, 0.38);
}

.start-mission-picker input:checked + span::after {
  content: "✓";
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #243347;
  background: #ff876a;
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 7px 18px rgba(8, 18, 31, 0.3);
}

.start-mission-picker label > span strong {
  position: relative;
  z-index: 1;
  max-width: 92%;
  color: #fff7eb;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.15rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.access-code-field {
  margin-top: 22px;
}

.start-panel .code-row {
  max-width: 620px;
}

@media (max-width: 619px) {
  .app-shell:not(.game-mode) .start-screen {
    width: min(100% - 28px, 1040px);
    padding-top: 32px;
  }

  .start-panel > h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .start-mission-picker label > span {
    min-height: 168px;
    padding: 20px;
  }

  .start-mission-picker label > span strong {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }
}

/* Shared navigation CTA hover — identical on every public route. */
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--blue);
  background: #ff9a80;
  box-shadow: 0 8px 18px rgba(255, 135, 106, 0.22);
}

/* Mission selection comes before access-code validation. */
.start-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  margin: -5px 0 18px;
  padding: 6px 9px;
  color: var(--dark-muted);
  background: transparent;
  border: 1px solid rgba(255, 247, 235, 0.16);
  border-radius: 7px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.start-back:hover,
.start-back:focus-visible {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 135, 106, 0.44);
}

.start-mission-picker {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.start-mission-picker legend {
  margin-bottom: 9px;
  color: var(--dark-text);
  font-weight: 900;
}

.start-mission-picker label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.start-mission-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.start-mission-picker label > span {
  display: grid;
  min-height: 88px;
  gap: 3px;
  padding: 14px 16px 14px 19px;
  color: var(--dark-text);
  background: rgba(15, 31, 49, 0.58);
  border: 1px solid rgba(255, 247, 235, 0.16);
  border-radius: 9px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.start-mission-picker label:hover > span {
  background: rgba(15, 31, 49, 0.78);
  border-color: rgba(255, 135, 106, 0.4);
  transform: translateY(-1px);
}

.start-mission-picker input:checked + span {
  background: rgba(255, 135, 106, 0.12);
  border-color: #ff876a;
  box-shadow: inset 4px 0 0 #ff876a, 0 10px 24px rgba(8, 18, 31, 0.2);
}

.start-mission-picker input:focus-visible + span {
  outline: 3px solid rgba(255, 135, 106, 0.52);
  outline-offset: 3px;
}

.start-mission-picker small {
  color: #9fb6ce;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.start-mission-picker strong {
  font-size: 1rem;
  line-height: 1.25;
}

.start-mission-picker em {
  color: var(--dark-muted);
  font-size: 0.76rem;
  font-style: normal;
}

.access-code-field {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.access-code-field p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.access-code-field p strong {
  color: var(--dark-text);
}

@media (min-width: 620px) {
  .start-panel {
    max-width: 720px;
    padding: 30px;
  }

  .start-mission-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-mission-picker legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .lake-case-page:not(.bernat-case-page) .lake-hero-content {
    padding: 72px 0 96px;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lake-card-video {
    display: none;
  }

  .lake-satellite,
  .lake-scan-line,
  .lake-target,
  .case-status i,
  .lake-system-label span,
  .lake-scroll-cue i::after {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--dark-text);
  background:
    radial-gradient(circle at 15% 4%, rgba(95, 163, 162, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(255, 135, 106, 0.14), transparent 26rem),
    linear-gradient(180deg, #243347, #1b2a3c);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(90deg, rgba(255, 247, 235, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 235, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.scroll-guide {
  position: fixed;
  top: 74px;
  bottom: 18px;
  left: 50%;
  z-index: 0;
  width: min(86vw, 760px);
  pointer-events: none;
  opacity: 0.28;
  transform: translateX(-50%);
}

.scroll-guide-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scroll-guide-path path {
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 4;
  stroke-linecap: round;
}

.scroll-guide-path .guide-track {
  stroke-dasharray: 1 18;
  opacity: 0.1;
}

.scroll-guide-path .guide-trail {
  stroke: var(--blue);
  stroke-dasharray: var(--scroll-progress, 0) 1;
  opacity: 0.58;
  filter: drop-shadow(0 5px 8px rgba(13, 59, 102, 0.16));
}

.detective-walker {
  position: absolute;
  top: var(--detective-y, 10vh);
  left: 50%;
  width: clamp(48px, 7.2vw, 92px);
  height: auto;
  transform: translate(var(--detective-x, 0), -50%) scaleX(var(--detective-scale, 1)) rotate(var(--detective-tilt, -7deg));
  transition: transform 120ms linear, top 120ms linear;
}

.detective-walker img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(32, 40, 51, 0.18));
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  color: var(--dark-text);
  background: rgba(36, 51, 71, 0.88);
  border-bottom: 1px solid rgba(255, 247, 235, 0.12);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  box-shadow: 0 12px 34px rgba(8, 18, 31, 0.32);
}

.game-mode .site-header,
.mission-hero ~ .site-header {
  color: var(--dark-text);
  background: rgba(36, 51, 71, 0.94);
  border-bottom-color: rgba(244, 183, 42, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(116px, 18vw, 154px);
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

.game-mode .brand-logo {
  filter: none;
}

.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--dark-muted);
  font-size: 0.76rem;
}

.game-mode .brand small {
  color: var(--dark-muted);
}

.menu-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  color: var(--dark-text);
  background: rgba(255, 247, 235, 0.08);
  border: 1px solid rgba(255, 247, 235, 0.22);
  border-radius: var(--radius);
}

.menu-button span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  display: grid;
  gap: 6px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  color: var(--dark-text);
  background: #243347;
  border: 1px solid rgba(255, 247, 235, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  color: inherit;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(95, 163, 162, 0.2);
}

.site-nav .nav-cta {
  color: var(--blue);
  background: var(--coral);
  font-weight: 900;
}

.hero,
.page-hero,
.section,
.final-cta,
.start-screen,
.game-narrative,
.task-layout,
.finish-screen {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
}

.hero {
  padding: 48px 0 52px;
}

.hero-grid,
.section-grid,
.story-layout,
.finish-grid {
  display: grid;
  gap: 28px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(1.95rem, 9vw, 3.85rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.55rem, 7vw, 2.55rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.15;
}

p {
  line-height: 1.7;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.case-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.case-strip span {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.95), rgba(245, 241, 232, 0.72));
  border: 2px solid rgba(13, 59, 102, 0.14);
  border-radius: 16px 5px 16px 5px;
  box-shadow: 0 12px 26px rgba(13, 59, 102, 0.09);
  font-size: 0.84rem;
  font-weight: 900;
  transform: rotate(var(--tag-tilt, -1deg));
}

.case-strip span::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  background: var(--blue);
  box-shadow: inset 0 0 0 4px rgba(255, 250, 241, 0.9);
}

.case-strip span:nth-child(2) {
  --tag-tilt: 1.5deg;
}

.case-strip span:nth-child(3) {
  --tag-tilt: -2deg;
}

.case-strip [data-icon="file"]::before {
  border-radius: 4px;
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%);
}

.case-strip [data-icon="pin"]::before {
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.case-strip [data-icon="team"]::before {
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px rgba(255, 250, 241, 0.9),
    9px 5px 0 -2px var(--rust);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button,
.code-row button,
.hint-box button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.code-row button:hover,
.hint-box button:hover {
  transform: translateY(-2px);
}

.button.primary,
.code-row button,
.hint-box button {
  color: var(--paper-soft);
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(36, 51, 71, 0.18);
}

.button.primary:hover,
.code-row button:hover,
.hint-box button:hover {
  background: var(--blue-dark);
}

.button.primary.light {
  color: var(--blue);
  background: var(--signal);
  box-shadow: 0 16px 30px rgba(244, 183, 42, 0.24);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 251, 242, 0.64);
  border-color: var(--line);
}

.button.ghost.dark {
  color: var(--dark-text);
  background: rgba(245, 239, 228, 0.08);
  border-color: rgba(245, 239, 228, 0.22);
}

.hero-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-soft);
  border: 2px solid rgba(36, 51, 71, 0.14);
  box-shadow: 0 24px 60px rgba(36, 51, 71, 0.14);
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(40, 79, 84, 0.12);
  border-radius: 7px;
}

.old-map-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 241, 232, 0.72), transparent 12rem),
    linear-gradient(135deg, rgba(245, 241, 232, 0.14), rgba(13, 59, 102, 0.06));
  mix-blend-mode: soft-light;
}

.map-base {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.old-map-scene::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  pointer-events: none;
  border: 2px dashed rgba(36, 51, 71, 0.16);
  border-radius: 7px;
}

.map-label {
  position: absolute;
  z-index: 3;
  padding: 8px 10px;
  color: var(--blue-dark);
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(13, 59, 102, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(36, 35, 24, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
}

.label-a {
  top: 28px;
  left: 26px;
}

.label-b {
  right: 22px;
  bottom: 28px;
}

.map-clue {
  position: absolute;
  z-index: 3;
  width: clamp(68px, 8vw, 94px);
  height: clamp(68px, 8vw, 94px);
  object-fit: contain;
  opacity: 0;
  filter: blur(2px) saturate(0.92);
  transform: scale(0.74);
  pointer-events: none;
}

.clue-clock {
  top: 8%;
  left: 9%;
  animation: reveal-clock 12s ease-in-out infinite;
}

.clue-key {
  right: 8%;
  bottom: 8%;
  animation: reveal-key 12s ease-in-out infinite;
}

.clue-code {
  left: 9%;
  bottom: 9%;
  animation: reveal-code 12s ease-in-out infinite;
}

.clue-footprint {
  top: 42%;
  left: 45%;
  animation: reveal-footprint 12s ease-in-out infinite;
}

.map-magnifier {
  position: absolute;
  z-index: 5;
  top: 2%;
  left: 6%;
  width: clamp(88px, 11vw, 126px);
  aspect-ratio: 1;
  filter: drop-shadow(0 15px 18px rgba(36, 51, 71, 0.2));
  animation: map-search-route 12s cubic-bezier(0.58, 0, 0.28, 1) infinite;
}

.map-magnifier img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.magnifier-coral {
  animation: coral-search-state 12s linear infinite;
}

.magnifier-yellow {
  opacity: 0;
  animation: yellow-found-state 12s linear infinite;
}

.map-lines {
  position: absolute;
  inset: 0;
  opacity: 0.46;
  background:
    linear-gradient(30deg, transparent 0 42%, rgba(40, 79, 84, 0.18) 42.2% 42.6%, transparent 42.8%),
    linear-gradient(150deg, transparent 0 50%, rgba(40, 79, 84, 0.12) 50.2% 50.6%, transparent 50.8%),
    linear-gradient(90deg, rgba(40, 79, 84, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(40, 79, 84, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

.route-path {
  position: absolute;
  inset: 16% 12% 18% 10%;
  border: 0;
  background:
    radial-gradient(circle at 8% 78%, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 40% 34%, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 58%, var(--blue) 0 5px, transparent 6px);
  opacity: 0.85;
}

.route-path::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(40, 79, 84, 0.55) 0 2px, transparent 2.5px);
  background-size: 16px 16px;
  clip-path: polygon(5% 74%, 17% 66%, 28% 50%, 39% 35%, 51% 38%, 63% 49%, 78% 57%, 90% 48%, 94% 51%, 79% 68%, 62% 58%, 49% 46%, 39% 43%, 28% 58%, 18% 74%, 7% 84%);
  animation: dash-slide 7s linear infinite;
}

.pin {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  background: var(--rust);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(40, 79, 84, 0.18);
}

.pin::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(88, 107, 97, 0.38);
  border-radius: 50%;
  animation: pin-pulse 2.6s ease-out infinite;
}

.pin-a {
  left: 14%;
  bottom: 24%;
}

.pin-b {
  left: 43%;
  top: 26%;
  animation-delay: -0.8s;
}

.pin-c {
  right: 18%;
  top: 48%;
  animation-delay: -1.6s;
}

.magnifier {
  position: absolute;
  z-index: 4;
  top: 20%;
  left: 12%;
  width: 112px;
  height: 112px;
  border: 10px solid rgba(22, 53, 58, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.86), transparent 22%),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 0 26px rgba(155, 216, 200, 0.24),
    0 22px 46px rgba(22, 53, 58, 0.22);
  backdrop-filter: blur(8px);
  transform: rotate(-12deg);
  animation: inspect-sweep 8s ease-in-out infinite;
}

.magnifier::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -28px;
  width: 72px;
  height: 13px;
  background: rgba(22, 53, 58, 0.92);
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.magnifier span {
  position: absolute;
  top: 42%;
  left: 24%;
  width: 52%;
  height: 2px;
  background: rgba(88, 107, 97, 0.55);
  transform: rotate(18deg);
}

.binoculars {
  position: absolute;
  right: 9%;
  top: 15%;
  z-index: 3;
  width: 118px;
  height: 70px;
  filter: drop-shadow(0 18px 28px rgba(22, 53, 58, 0.2));
  animation: clue-float 4.6s ease-in-out infinite;
}

.binoculars span {
  position: absolute;
  top: 8px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 38%, rgba(255, 255, 255, 0.82), transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(155, 216, 200, 0.44), rgba(22, 53, 58, 0.96) 68%);
  border: 3px solid rgba(22, 53, 58, 0.9);
}

.binoculars span:first-child {
  left: 5px;
}

.binoculars span:last-child {
  right: 5px;
}

.binoculars::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 48px;
  width: 22px;
  height: 14px;
  background: rgba(22, 53, 58, 0.92);
  border-radius: 3px;
}

.glass-token {
  position: absolute;
  display: grid;
  place-items: center;
  color: #16353a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(223, 243, 238, 0.34)),
    rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(151, 206, 193, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 42px rgba(27, 65, 66, 0.12);
  font-family: var(--font-display);
  font-weight: 900;
  backdrop-filter: blur(16px);
  animation: glass-drift 6s ease-in-out infinite;
}

.token-one {
  top: 50%;
  left: 19%;
  width: 86px;
  height: 108px;
  transform: rotate(-10deg);
  font-size: 2.5rem;
}

.token-two {
  top: 35%;
  right: 16%;
  width: 112px;
  height: 74px;
  transform: rotate(8deg);
  animation-delay: -1.8s;
}

.token-three {
  right: 26%;
  bottom: 17%;
  width: 122px;
  height: 72px;
  transform: rotate(-4deg);
  font-size: 1.05rem;
  animation-delay: -3s;
}

.thread-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 79, 84, 0.58), transparent);
  transform-origin: left center;
}

.line-one {
  top: 42%;
  left: 30%;
  width: 42%;
  transform: rotate(-16deg);
}

.line-two {
  top: 53%;
  left: 30%;
  width: 48%;
  transform: rotate(22deg);
}

.floating-clue {
  position: absolute;
  z-index: 2;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(32, 38, 43, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
  animation: clue-float 4s ease-in-out infinite;
}

.clue-one {
  top: 34px;
  left: 20px;
}

.clue-two {
  right: 18px;
  bottom: 34px;
  animation-delay: -1.4s;
}

.clue-three {
  right: 22px;
  top: 66px;
  animation-delay: -2.2s;
}

.section {
  padding: 52px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 22px;
}

.intro-band,
.know-before {
  padding-top: 30px;
}

.value-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.audience-item {
  padding: 16px;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px 4px 12px 4px;
  box-shadow: 0 12px 26px rgba(13, 59, 102, 0.06);
  font-weight: 700;
}

.value-list {
  gap: 14px;
}

.value-list span {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(245, 241, 232, 0.78));
  border: 2px solid rgba(13, 59, 102, 0.1);
  border-radius: 18px 5px 18px 5px;
  box-shadow: 0 16px 34px rgba(13, 59, 102, 0.08);
  transform: rotate(var(--value-tilt, 0deg));
}

.value-list span:nth-child(2) {
  --value-tilt: -1deg;
}

.value-list span:nth-child(3) {
  --value-tilt: 1deg;
}

.value-list span::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  grid-row: 1 / span 2;
  background: var(--blue);
  border-radius: 15px 4px 15px 4px;
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 241, 0.86),
    0 10px 20px rgba(13, 59, 102, 0.12);
}

.value-list span:nth-child(1)::before {
  background: var(--teal);
}

.value-list span:nth-child(2)::before {
  background: var(--coral);
}

.value-list span:nth-child(3)::before {
  background: var(--sunshine);
}

.value-list span::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 82px;
  height: 82px;
  border: 2px dashed rgba(13, 59, 102, 0.1);
  border-radius: 50%;
}

.value-list [data-icon="route"]::before {
  clip-path: polygon(18% 18%, 72% 18%, 72% 34%, 36% 34%, 36% 58%, 84% 58%, 84% 76%, 18% 76%);
}

.value-list [data-icon="phone"]::before {
  border-radius: 10px;
  clip-path: inset(6% 22% 6% 22% round 8px);
}

.value-list [data-icon="clue"]::before {
  border-radius: 50%;
  clip-path: polygon(50% 7%, 61% 37%, 93% 37%, 67% 56%, 77% 88%, 50% 68%, 23% 88%, 33% 56%, 7% 37%, 39% 37%);
}

.value-list strong,
.value-list small {
  display: block;
}

.value-list strong {
  align-self: end;
  color: var(--ink);
}

.value-list small {
  align-self: start;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.steps {
  display: grid;
  gap: 12px;
}

.step-card {
  position: relative;
  min-height: 170px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(245, 241, 232, 0.78));
  border: 1px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  box-shadow: var(--shadow);
}

.step-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--paper-soft);
  background: var(--blue);
  border-radius: 12px 4px 12px 4px;
  font-weight: 900;
}

.step-card:nth-child(2) span {
  background: var(--teal);
}

.step-card:nth-child(3) span {
  color: var(--blue);
  background: var(--sunshine);
}

.step-card:nth-child(4) span {
  background: var(--coral);
}

.step-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(13, 59, 102, 0.22);
  border-radius: 50%;
}

.audience-grid {
  display: grid;
  gap: 10px;
}

.mission-teaser {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1120px) / 2));
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(245, 241, 232, 0.98) 0 34%, rgba(238, 247, 243, 0.76) 58%, rgba(18, 24, 25, 0.08)),
    url("/public/assets/generated/crystal-coal-mission-1280.jpg") right center / cover,
    linear-gradient(135deg, #f5f1e8, #d8e6df);
}

.mission-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 243, 238, 0.58)),
    rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(151, 206, 193, 0.58);
  border-radius: 16px 4px 16px 4px;
  box-shadow: 0 22px 55px rgba(13, 59, 102, 0.14);
  backdrop-filter: blur(14px);
}

.mission-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(155, 216, 200, 0.18));
  border: 1px solid rgba(151, 206, 193, 0.48);
  transform: rotate(19deg);
  pointer-events: none;
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(40, 79, 84, 0.08);
  background:
    linear-gradient(90deg, rgba(40, 79, 84, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(40, 79, 84, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.mission-card > * {
  position: relative;
  z-index: 1;
}

.mission-material {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(48%, 420px);
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(18, 24, 25, 0.05)),
    url("/public/assets/generated/crystal-coal-mission-1280.jpg") right bottom / cover;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.mission-card .eyebrow,
.mission-hero .eyebrow,
.dark-info .eyebrow,
.game-mode .eyebrow {
  color: var(--signal);
}

.mission-card p {
  color: var(--muted);
}

.mission-hero p {
  color: #d8e5df;
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.mission-meta span {
  padding: 8px 10px;
  color: #16353a;
  background: rgba(155, 216, 200, 0.34);
  border: 1px solid rgba(116, 183, 156, 0.32);
  border-radius: 10px 3px 10px 3px;
  font-weight: 800;
}

.price-panel,
.buy-box {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(223, 243, 238, 0.54));
  border: 1px solid rgba(151, 206, 193, 0.56);
  border-radius: 14px 4px 14px 4px;
}

.price-panel strong,
.buy-box strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.price-panel em,
.buy-box em {
  color: var(--rust);
  font-style: normal;
  font-weight: 800;
}

.quote-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 760px) / 2));
  padding-left: max(16px, calc((100% - 760px) / 2));
  background: var(--sand);
}

.narrow {
  max-width: 760px;
}

.final-cta {
  width: 100%;
  padding: 58px max(16px, calc((100% - 920px) / 2));
  color: var(--dark-text);
  background:
    linear-gradient(135deg, rgba(17, 19, 18, 0.92), rgba(38, 57, 73, 0.82)),
    var(--dark);
  text-align: left;
}

.final-cta p {
  color: var(--dark-muted);
}

.mission-hero {
  width: 100%;
  padding: 48px max(16px, calc((100% - 1120px) / 2)) 58px;
  color: var(--dark-text);
  background:
    radial-gradient(circle at 74% 18%, rgba(155, 216, 200, 0.26), transparent 25rem),
    linear-gradient(135deg, rgba(18, 24, 25, 0.98), rgba(26, 44, 42, 0.94)),
    var(--dark);
}

.mission-hero h1 {
  max-width: 840px;
}

.crystal-hero-art {
  position: relative;
  min-height: 360px;
  align-self: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 251, 248, 0.12), rgba(155, 216, 200, 0.05)),
    radial-gradient(circle at 58% 38%, rgba(155, 216, 200, 0.34), transparent 14rem);
  border: 1px solid rgba(155, 216, 200, 0.24);
  border-radius: 10px;
  box-shadow: var(--dark-shadow);
  isolation: isolate;
}

.crystal-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(90deg, rgba(244, 251, 248, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(244, 251, 248, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.crystal-stack span {
  position: absolute;
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(155, 216, 200, 0.12)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 243, 238, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 22px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  animation: glass-drift 7s ease-in-out infinite;
}

.crystal-stack span:nth-child(1) {
  top: 54px;
  left: 18%;
  width: 156px;
  height: 230px;
  transform: skew(-9deg) rotate(-6deg);
}

.crystal-stack span:nth-child(2) {
  top: 96px;
  right: 20%;
  width: 170px;
  height: 190px;
  transform: skew(11deg) rotate(8deg);
  animation-delay: -2s;
}

.crystal-stack span:nth-child(3) {
  right: 18%;
  bottom: 42px;
  width: 250px;
  height: 68px;
  transform: rotate(-3deg);
  animation-delay: -3.5s;
}

.evidence-tag,
.glass-coordinate {
  position: absolute;
  z-index: 2;
  color: var(--dark-text);
  background: rgba(18, 24, 25, 0.72);
  border: 1px solid rgba(155, 216, 200, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.evidence-tag {
  top: 28px;
  left: 28px;
  padding: 10px 13px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.glass-coordinate {
  right: 24px;
  bottom: 28px;
  padding: 9px 11px;
  color: var(--signal);
  font-size: 0.82rem;
}

.dark-info {
  width: 100%;
  padding: 32px max(16px, calc((100% - 1120px) / 2));
  color: var(--dark-text);
  background: var(--dark);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-grid div {
  padding: 14px;
  background: rgba(245, 239, 228, 0.06);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--radius);
}

.info-grid span {
  display: block;
  color: var(--dark-muted);
  font-size: 0.78rem;
}

.info-grid strong {
  display: block;
  margin-top: 4px;
}

.story-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background: var(--paper-soft);
}

.story-copy p {
  max-width: 720px;
}

.note-card,
.bernat-note {
  position: relative;
  padding: 22px;
  color: #2a2115;
  background:
    linear-gradient(90deg, rgba(96, 69, 35, 0.1), transparent 18px),
    #ead8a1;
  border: 1px solid #b9904b;
  border-radius: var(--radius);
  box-shadow: inset 0 0 28px rgba(99, 64, 27, 0.15), 0 18px 40px rgba(47, 31, 13, 0.12);
}

.letter-card {
  position: relative;
  padding: 22px;
  color: #173331;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(223, 243, 238, 0.5));
  border: 1px solid rgba(151, 206, 193, 0.62);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(29, 68, 68, 0.1);
  backdrop-filter: blur(14px);
}

.letter-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(40, 79, 84, 0.18);
  transform: rotate(18deg);
}

.note-card span,
.bernat-note span {
  display: block;
  margin-bottom: 8px;
  color: #6d4217;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.letter-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.letter-card p,
.bernat-note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-style: italic;
}

.purchase-section {
  background: var(--sand);
}

.page-hero.compact {
  padding: 48px 0 26px;
}

.faq-section {
  display: grid;
  gap: 26px;
}

.faq-group {
  display: grid;
  gap: 10px;
}

.faq-group h2 {
  margin-bottom: 4px;
  font-size: clamp(1.75rem, 8vw, 2.8rem);
}

details {
  background: rgba(255, 251, 242, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(32, 38, 43, 0.06);
}

summary {
  min-height: 54px;
  padding: 16px;
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--muted);
}

.contact-card {
  padding: 22px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.start-screen {
  display: grid;
  min-height: calc(100vh - 70px);
  place-items: center;
  padding: 36px 0;
}

.start-panel {
  width: 100%;
  max-width: 620px;
  min-width: 0;
  padding: 24px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.access-form,
.answer-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

label {
  color: var(--muted);
  font-weight: 900;
}

.code-row {
  display: grid;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-error {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.continue-button {
  width: 100%;
  margin-top: 14px;
}

.game-mode {
  min-height: 100vh;
  color: var(--dark-text);
  background:
    linear-gradient(rgba(17, 19, 18, 0.86), rgba(17, 19, 18, 0.94)),
    url("/public/assets/word/media/image1.jpg") center / cover fixed,
    var(--dark);
}

.game-narrative,
.finish-screen {
  display: grid;
  min-height: calc(100vh - 70px);
  align-items: center;
  padding: 34px 0;
}

.narrative-card,
.finish-copy,
.status-panel,
.task-card,
.leaderboard ol,
.leaderboard > p {
  background: rgba(28, 33, 31, 0.9);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--dark-shadow);
  backdrop-filter: blur(12px);
}

.narrative-card,
.finish-copy {
  min-width: 0;
  padding: clamp(22px, 6vw, 46px);
}

.note-card {
  display: grid;
  gap: 6px;
  max-width: 360px;
  margin: 26px 0;
}

.note-card strong {
  font-size: 2.2rem;
}

.task-layout {
  display: grid;
  gap: 16px;
  padding: 22px 0 46px;
}

.status-panel,
.task-card {
  padding: 18px;
}

.status-panel h1 {
  font-size: clamp(2rem, 12vw, 3.8rem);
}

.status-panel p,
.task-card p,
.narrative-card p,
.finish-copy p {
  color: var(--dark-muted);
}

.timer {
  margin: 18px 0 12px;
  color: var(--signal);
  font-size: 2.4rem;
  font-weight: 900;
}

.hint-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.34);
  border-radius: var(--radius);
}

.hint-counter span {
  color: var(--dark-muted);
}

.hint-counter strong {
  color: var(--signal);
  font-size: 1.35rem;
}

.progress {
  height: 10px;
  overflow: hidden;
  background: #111513;
  border: 1px solid rgba(245, 239, 228, 0.14);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 400ms ease;
}

.task-puzzle {
  font-size: 1.06rem;
}

.task-image {
  width: 100%;
  max-height: 420px;
  margin: 18px 0;
  object-fit: contain;
  background: #111;
  border: 1px solid rgba(245, 239, 228, 0.14);
  border-radius: var(--radius);
}

.hint-box {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 239, 228, 0.14);
}

.hint-box button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.muted {
  color: var(--dark-muted);
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.choice-card {
  display: grid;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  color: var(--dark-text);
  text-align: left;
  background: #171b19;
  border: 1px solid rgba(245, 239, 228, 0.14);
  border-radius: var(--radius);
}

.choice-card span {
  color: var(--signal);
  font-weight: 900;
}

.choice-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.finish-grid {
  align-items: center;
}

.finish-video {
  width: 100%;
  border: 1px solid rgba(217, 164, 65, 0.24);
  border-radius: var(--radius);
  box-shadow: var(--dark-shadow);
}

.finish-sequence {
  display: grid;
  gap: clamp(34px, 7vw, 64px);
  width: 100%;
}

.finish-vault-intro {
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: center;
}

.finish-vault-intro h1 {
  margin-bottom: 24px;
}

.finish-vault-stage {
  position: relative;
  width: min(100%, 405px, 40vh);
  margin: 0 auto;
  overflow: hidden;
  background: #050605;
  border-radius: var(--radius);
  aspect-ratio: 9 / 16;
}

.finish-vault-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.finish-vault-stage .finish-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finish-open-button,
.finish-message-button {
  position: absolute;
  right: 50%;
  bottom: clamp(18px, 5vw, 32px);
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 30px);
  transform: translateX(50%);
}

.finish-open-button[hidden],
.finish-message-button[hidden],
.finish-vault-intro[hidden],
.finish-reward[hidden] {
  display: none !important;
}

.finish-message-button {
  opacity: 0;
  transform: translate(50%, 14px) scale(0.96);
}

.finish-message-button.is-visible {
  opacity: 1;
  transform: translate(50%, 0) scale(1);
  transition: opacity 480ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.finish-message-button:hover,
.finish-message-button:focus-visible {
  transform: translate(50%, -2px) scale(1);
}

.finish-video-error {
  margin-top: 12px;
  text-align: center;
}

.finish-reward {
  width: min(100%, 760px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px);
  scroll-margin-top: 92px;
}

.finish-reward.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.finish-reward .single-paper {
  width: min(100%, 430px);
  margin-top: 0;
  margin-bottom: 0;
}

.finish-leaderboard-form {
  width: min(100%, 560px);
  margin: 18px auto 0;
}

.finish-elapsed {
  display: grid;
  gap: 3px;
  width: min(100%, 560px);
  margin: 28px auto 0;
  padding: 16px 18px;
  text-align: center;
  background: rgba(244, 183, 42, 0.1);
  border: 1px solid rgba(244, 183, 42, 0.34);
  border-radius: var(--radius);
}

.finish-elapsed span,
.finish-elapsed small {
  color: rgba(238, 241, 233, 0.7);
}

.finish-elapsed span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.finish-elapsed strong {
  color: #f4b72a;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.finish-elapsed small {
  font-size: 0.76rem;
}

.single-paper .stack-sheet {
  display: none;
}

.leaderboard {
  padding-top: 18px;
}

.leaderboard ol {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 16px;
  list-style: none;
}

.leaderboard li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--radius);
}

.leaderboard li strong {
  color: #f4b72a;
  font-variant-numeric: tabular-nums;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glass-drift {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes clue-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes dash-slide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 32px 16px;
  }
}

@keyframes pin-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.7);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes inspect-sweep {
  0%,
  100% {
    transform: translate(0, 0) rotate(-12deg);
  }
  45% {
    transform: translate(28px, 18px) rotate(-4deg);
  }
  70% {
    transform: translate(6px, 38px) rotate(-16deg);
  }
}

@keyframes map-search-route {
  0% {
    top: 24%;
    left: 68%;
    transform: rotate(18deg);
  }
  8% {
    top: 16%;
    left: 28%;
    transform: rotate(-12deg);
  }
  13%,
  19% {
    top: 8%;
    left: 2.5%;
    transform: rotate(-24deg);
  }
  29% {
    top: 24%;
    left: 70%;
    transform: rotate(14deg);
  }
  38%,
  44% {
    top: 42%;
    left: 38%;
    transform: rotate(-4deg);
  }
  54% {
    top: 54%;
    left: 58%;
    transform: rotate(20deg);
  }
  63%,
  69% {
    top: 71%;
    left: 2.5%;
    transform: rotate(-20deg);
  }
  79% {
    top: 28%;
    left: 52%;
    transform: rotate(10deg);
  }
  88%,
  94% {
    top: 71%;
    left: 66%;
    transform: rotate(18deg);
  }
  100% {
    top: 24%;
    left: 68%;
    transform: rotate(18deg);
  }
}

@keyframes coral-search-state {
  0%,
  11%,
  21%,
  36%,
  46%,
  61%,
  71%,
  86%,
  96%,
  100% {
    opacity: 1;
  }
  13%,
  19%,
  38%,
  44%,
  63%,
  69%,
  88%,
  94% {
    opacity: 0;
  }
}

@keyframes yellow-found-state {
  0%,
  11%,
  21%,
  36%,
  46%,
  61%,
  71%,
  86%,
  96%,
  100% {
    opacity: 0;
  }
  13%,
  19%,
  38%,
  44%,
  63%,
  69%,
  88%,
  94% {
    opacity: 1;
  }
}

@keyframes reveal-clock {
  0%,
  11%,
  21%,
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.74);
  }
  13%,
  19% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes reveal-footprint {
  0%,
  36%,
  46%,
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.74);
  }
  38%,
  44% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes reveal-code {
  0%,
  61%,
  71%,
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.74);
  }
  63%,
  69% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes reveal-key {
  0%,
  86%,
  96%,
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: scale(0.74);
  }
  88%,
  94% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

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

/* Bernát bácsi hagyatéka – játékfelület */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.game-mode {
  background:
    radial-gradient(circle at 18% 8%, rgba(98, 151, 126, 0.2), transparent 34rem),
    radial-gradient(circle at 84% 74%, rgba(25, 82, 68, 0.28), transparent 40rem),
    linear-gradient(145deg, rgba(5, 25, 22, 0.94), rgba(8, 37, 31, 0.9)),
    url("/public/assets/site/broken-glass-greeny-800.jpg") center / cover fixed,
    #071d19;
}

.game-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.045), transparent 28% 64%, rgba(161, 219, 199, 0.04)),
    radial-gradient(circle at 50% -10%, rgba(222, 255, 239, 0.1), transparent 38%);
  backdrop-filter: blur(2px) saturate(1.1);
}

.game-mode > * {
  position: relative;
  z-index: 1;
}

.game-hud {
  position: fixed;
  top: 82px;
  right: max(14px, calc((100vw - 1180px) / 2));
  left: max(14px, calc((100vw - 1180px) / 2));
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.game-time {
  display: grid;
  gap: 1px;
  min-width: 104px;
  padding: 8px 12px;
  color: #f7f0df;
  background: rgba(5, 26, 22, 0.74);
  border: 1px solid rgba(188, 225, 206, 0.24);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.game-time span {
  color: rgba(238, 244, 235, 0.65);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-time strong {
  color: #f4b72a;
  font-variant-numeric: tabular-nums;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
}

.hint-orb {
  position: relative;
  display: grid;
  width: 54px;
  min-height: 54px;
  padding: 0;
  color: #102c25;
  background: radial-gradient(circle at 34% 25%, #ffe89b, #f4b72a 55%, #b8750d);
  border: 1px solid rgba(255, 235, 166, 0.82);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 0 0 5px rgba(244, 183, 42, 0.11);
  place-items: center;
  pointer-events: auto;
}

.hint-orb:hover {
  transform: translateY(-2px) rotate(3deg);
}

.hint-orb:disabled {
  cursor: default;
  filter: grayscale(0.75);
  opacity: 0.68;
}

.hint-question {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hint-badge {
  position: absolute;
  right: -4px;
  bottom: -3px;
  display: grid;
  width: 23px;
  height: 23px;
  color: white;
  background: #c44f3f;
  border: 2px solid #08241e;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  place-items: center;
}

.paper-note {
  position: relative;
  width: min(100%, 640px);
  min-height: 360px;
  margin: 24px auto;
  padding: clamp(58px, 10vw, 88px) clamp(48px, 9vw, 82px) clamp(54px, 9vw, 78px) clamp(62px, 11vw, 96px);
  overflow: hidden;
  color: #2f291f;
  background: #d9c39b url("/public/assets/bernat/papirlap-kisebb.jpg") center / 100% 100% no-repeat;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.38);
  clip-path: polygon(3% 3%, 96% 2%, 98% 8%, 97% 94%, 93% 97%, 7% 96%, 3% 92%, 2% 10%);
  transform: rotate(-0.6deg);
  animation: paper-arrives 720ms cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

.paper-note:nth-of-type(even) {
  transform: rotate(0.45deg);
}

.paper-label {
  display: block;
  margin-bottom: 15px;
  color: rgba(74, 50, 27, 0.7);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.handwriting,
.handwriting p {
  color: #30281f !important;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.72;
}

.handwriting p {
  margin: 0 0 0.8em;
}

.handwriting p:last-child {
  margin-bottom: 0;
}

.opening-paper .handwriting p:first-child,
.small-paper .handwriting p:first-child {
  color: #251d15 !important;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
}

.small-paper {
  width: min(100%, 390px);
  min-height: 330px;
}

.small-paper .handwriting {
  text-align: center;
}

.small-paper .handwriting p:first-child {
  margin-top: 36px;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  letter-spacing: 0.13em;
}

.narrative-card,
.finish-copy,
.status-panel,
.task-card {
  background: linear-gradient(145deg, rgba(12, 46, 38, 0.7), rgba(5, 25, 22, 0.82));
  border-color: rgba(187, 225, 207, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px) saturate(1.12);
}

.narrative-card {
  padding-top: clamp(72px, 12vw, 94px);
}

.opening-copy {
  max-width: 690px;
  margin-bottom: 28px;
}

.opening-copy h1 {
  margin-bottom: 20px;
}

.opening-copy p {
  margin: 0.18em 0;
  color: #eef1e9 !important;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.opening-copy p:nth-last-child(2) {
  margin-top: 1em;
}

.opening-copy p:last-child {
  color: #f4b72a !important;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
}

.task-layout {
  position: relative;
  padding-top: 112px;
}

.task-layout > .game-hud {
  grid-column: 1 / -1;
}

.task-paper {
  margin-top: 0;
}

.task-puzzle,
.next-instruction {
  color: #eef1e9 !important;
  font-family: var(--font-body);
  font-style: normal;
  line-height: 1.65;
}

.task-puzzle {
  margin: 22px 0;
  padding: 16px 18px;
  background: rgba(4, 24, 20, 0.54);
  border-left: 3px solid #f4b72a;
  border-radius: 4px;
}

.next-instruction {
  max-width: 680px;
  margin: 18px auto 24px;
}

.note-reveal-button {
  margin-right: 10px;
}

.surviving-note,
.first-record {
  animation: paper-arrives 560ms ease both;
}

.hint-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 102;
  width: min(92vw, 410px);
  height: 100dvh;
  padding: 88px 24px 28px;
  overflow-y: auto;
  color: #f4f1e8;
  background: linear-gradient(155deg, rgba(13, 48, 40, 0.98), rgba(4, 23, 19, 0.99));
  border-left: 1px solid rgba(190, 226, 209, 0.22);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
  transform: translateX(105%);
  transition: transform 280ms ease;
}

.hint-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.hint-drawer h2 {
  margin-bottom: 6px;
}

.hint-limit {
  color: rgba(239, 243, 234, 0.7);
}

.hint-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: #f4f1e8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 1.7rem;
}

.revealed-hints {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.revealed-hints p {
  margin: 0;
  padding: 14px;
  color: #ecf2e9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.hint-backdrop {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: none;
  min-height: 0;
  padding: 0;
  background: rgba(0, 9, 7, 0.58);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(2px);
}

.hint-drawer-open .hint-backdrop {
  display: block;
}

.hint-confirm-modal {
  width: min(92vw, 430px);
  padding: 26px;
  color: #f4f1e8;
  background: linear-gradient(155deg, rgba(13, 48, 40, 0.98), rgba(4, 23, 19, 0.99));
  border: 1px solid rgba(244, 183, 42, 0.42);
  border-radius: 16px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
}

.hint-confirm-modal::backdrop {
  background: rgba(1, 12, 10, 0.72);
  backdrop-filter: blur(4px);
}

.hint-confirm-modal h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.45rem, 5vw, 2rem);
}

.hint-confirm-modal p:not(.eyebrow) {
  color: rgba(239, 243, 234, 0.78);
}

.hint-confirm-modal strong {
  color: var(--signal);
}

.hint-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.choice-card:not(:has(img)) {
  min-height: 58px;
  align-content: center;
}

.choice-card:not(:has(img)) span {
  font-size: 1rem;
}

@keyframes paper-arrives {
  from {
    opacity: 0;
    transform: translateY(34px) rotate(-3deg) scale(0.94);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-0.6deg) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 720px) {
  .game-hud {
    top: 74px;
  }

  .game-time {
    min-width: 92px;
    padding: 6px 10px;
  }

  .hint-orb {
    width: 49px;
    min-height: 49px;
  }

  .game-narrative {
    padding-top: 76px;
  }

  .task-layout {
    padding-top: 96px;
  }

  .paper-note {
    min-height: 330px;
    padding: 58px 42px 52px 54px;
  }

  .handwriting,
  .handwriting p {
    font-size: 0.98rem;
    line-height: 1.62;
  }
}

@media (max-width: 390px) {
  .paper-note {
    padding-right: 34px;
    padding-left: 44px;
  }

  .narrative-card,
  .task-card,
  .status-panel {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-note,
  .surviving-note,
  .first-record {
    animation: none;
  }

  .hint-drawer {
    transition: none;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .scroll-guide {
    left: 50%;
    width: 100vw;
    opacity: 0.22;
    transform: translateX(-50%);
  }

  .detective-walker {
    width: 56px;
    left: 50%;
  }

  .map-clue {
    width: 76px;
    height: 76px;
  }

  .map-magnifier {
    width: 92px;
  }
}

.site-footer {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 24px;
  width: 100%;
  padding: 42px max(16px, calc((100% - 1120px) / 2));
  color: var(--dark-text);
  background: var(--blue);
}

.site-footer img {
  width: 170px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--dark-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-content: center;
}

.site-footer a {
  font-weight: 800;
}

@media (min-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Slate Navy marketing theme */
.app-shell:not(.game-mode) {
  color: var(--dark-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(95, 163, 162, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 28%, rgba(109, 143, 179, 0.12), transparent 28rem);
}

.app-shell:not(.game-mode) .lead,
.app-shell:not(.game-mode) .hero-info,
.app-shell:not(.game-mode) .section-head > p,
.app-shell:not(.game-mode) .intro-band p,
.app-shell:not(.game-mode) .difference-section p,
.app-shell:not(.game-mode) .page-hero p,
.app-shell:not(.game-mode) .contact-card p {
  color: var(--dark-muted);
}

.app-shell:not(.game-mode) .eyebrow {
  color: var(--sunshine);
}

.app-shell:not(.game-mode) .button.primary {
  color: var(--blue);
  background: var(--coral);
  box-shadow:
    0 14px 28px rgba(4, 12, 22, 0.22),
    0 6px 14px rgba(255, 135, 106, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.app-shell:not(.game-mode) .button.primary:hover {
  color: var(--blue);
  background: #ff9a80;
  box-shadow:
    0 18px 34px rgba(4, 12, 22, 0.26),
    0 8px 18px rgba(255, 135, 106, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.app-shell:not(.game-mode) .button.ghost {
  color: var(--dark-text);
  background: rgba(255, 247, 235, 0.06);
  border-color: rgba(255, 247, 235, 0.28);
}

.app-shell:not(.game-mode) .button.ghost:hover {
  background: rgba(95, 163, 162, 0.18);
}

.app-shell:not(.game-mode) .intro-band,
.app-shell:not(.game-mode) .steps-section,
.app-shell:not(.game-mode) .audience-section,
.app-shell:not(.game-mode) .missions-section,
.app-shell:not(.game-mode) .faq-section,
.app-shell:not(.game-mode) .contact-section,
.app-shell:not(.game-mode) .purchase-section,
.app-shell:not(.game-mode) .story-section,
.app-shell:not(.game-mode) .quote-section,
.app-shell:not(.game-mode) .know-before {
  background: transparent;
}

.app-shell:not(.game-mode) .value-list span,
.app-shell:not(.game-mode) .step-card,
.app-shell:not(.game-mode) .audience-item,
.app-shell:not(.game-mode) .contact-card,
.app-shell:not(.game-mode) details,
.app-shell:not(.game-mode) .how-notes {
  color: var(--dark-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(95, 163, 162, 0.06));
  border-color: rgba(255, 247, 235, 0.14);
  box-shadow:
    0 20px 45px rgba(8, 18, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.app-shell:not(.game-mode) .value-list strong,
.app-shell:not(.game-mode) .audience-item h3,
.app-shell:not(.game-mode) summary {
  color: var(--dark-text);
}

.app-shell:not(.game-mode) .value-list small,
.app-shell:not(.game-mode) .audience-item p,
.app-shell:not(.game-mode) details p {
  color: var(--dark-muted);
}

.app-shell:not(.game-mode) .positioning-line {
  color: var(--teal);
}

.app-shell:not(.game-mode) .difference-section {
  background:
    radial-gradient(circle at 20% 40%, rgba(95, 163, 162, 0.15), transparent 24rem),
    rgba(17, 34, 52, 0.42);
  border-top: 1px solid rgba(255, 247, 235, 0.08);
  border-bottom: 1px solid rgba(255, 247, 235, 0.08);
}

.app-shell:not(.game-mode) .page-hero,
.app-shell:not(.game-mode) .start-screen {
  color: var(--dark-text);
}

.app-shell:not(.game-mode) .start-panel,
.app-shell:not(.game-mode) .buy-box,
.app-shell:not(.game-mode) .price-panel {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 247, 235, 0.16);
  box-shadow: 0 24px 60px rgba(8, 18, 31, 0.28);
  backdrop-filter: blur(16px);
}

.app-shell:not(.game-mode) label {
  color: var(--dark-muted);
}

.app-shell:not(.game-mode) input {
  color: var(--dark-text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 247, 235, 0.18);
}

.app-shell:not(.game-mode) input::placeholder {
  color: rgba(216, 224, 231, 0.62);
}

.app-shell:not(.game-mode) .site-footer {
  background: #182638;
  border-top: 1px solid rgba(255, 247, 235, 0.1);
}

/* Bernat mission page */
.mission-hero {
  min-height: min(760px, calc(100vh - 68px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 20, 23, 0.94) 0 34%, rgba(15, 20, 23, 0.74) 58%, rgba(15, 20, 23, 0.32)),
    radial-gradient(circle at 78% 20%, rgba(217, 164, 65, 0.32), transparent 24rem),
    radial-gradient(circle at 18% 70%, rgba(95, 163, 162, 0.2), transparent 28rem),
    #11161a;
}

.mission-hero::before,
.mission-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mission-hero::before {
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(244, 183, 42, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 235, 0.07) 1px, transparent 1px);
  background-size: 74px 74px, 74px 74px;
  mask-image: linear-gradient(90deg, black 0 64%, transparent 92%);
}

.mission-hero::after {
  right: max(18px, calc((100% - 1120px) / 2));
  bottom: -120px;
  width: min(42vw, 520px);
  aspect-ratio: 0.72;
  opacity: 0.28;
  background: url("/public/assets/bernat/papirlap.png") center / contain no-repeat;
  filter: sepia(0.35) drop-shadow(0 24px 42px rgba(0, 0, 0, 0.42));
  transform: rotate(8deg);
}

.mission-hero .hero-grid {
  position: relative;
  z-index: 1;
}

.mission-hero .hero-copy {
  max-width: 600px;
}

.mission-hero .hero-copy::before {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--signal), rgba(95, 163, 162, 0));
}

.bernat-hero-art {
  position: relative;
  min-height: clamp(390px, 44vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(244, 183, 42, 0.28);
  border-radius: 6px;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

.bernat-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 12, 13, 0.08), rgba(9, 12, 13, 0.72)),
    radial-gradient(circle at 52% 45%, transparent 0 28%, rgba(0, 0, 0, 0.54) 74%);
  pointer-events: none;
}

.bernat-hero-photo,
.bernat-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bernat-hero-photo img {
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08) saturate(0.86) sepia(0.16);
}

.bernat-dossier {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.note-sheet {
  position: absolute;
  width: 178px;
  aspect-ratio: 0.74;
  background:
    linear-gradient(rgba(41, 32, 21, 0.12) 1px, transparent 1px),
    url("/public/assets/bernat/papirlap-kisebb.jpg") center / cover;
  background-size: 100% 24px, cover;
  border-radius: 3px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.note-sheet::after {
  content: "47.1 / 17.5\a n=1.52\a sin a -> sin b\a 7 x 24";
  position: absolute;
  inset: 22px 18px;
  white-space: pre-line;
  color: rgba(54, 42, 26, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.55;
  transform: rotate(-2deg);
}

.note-sheet-a {
  right: 18px;
  top: 22px;
  transform: rotate(9deg);
}

.note-sheet-b {
  left: 22px;
  bottom: 24px;
  width: 148px;
  opacity: 0.88;
  transform: rotate(-8deg);
}

.lens {
  position: absolute;
  border: 1px solid rgba(208, 246, 240, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 50% 52%, rgba(171, 226, 218, 0.22), rgba(20, 43, 46, 0.1) 62%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(5px);
}

.lens::after {
  content: "";
  position: absolute;
  right: -45%;
  bottom: -16%;
  width: 62%;
  height: 8px;
  background: rgba(15, 20, 23, 0.72);
  border-radius: 2px;
  transform: rotate(42deg);
}

.lens-a {
  right: 26%;
  bottom: 18%;
  width: 118px;
  height: 118px;
  transform: rotate(-12deg);
}

.lens-b {
  top: 42%;
  left: 12%;
  width: 76px;
  height: 76px;
  opacity: 0.72;
  transform: rotate(18deg);
}

.story-section {
  overflow: hidden;
  color: var(--dark-text);
  background:
    linear-gradient(90deg, rgba(255, 247, 235, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 235, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(244, 183, 42, 0.16), transparent 28rem),
    linear-gradient(180deg, #18222c, #111820);
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.story-copy {
  position: relative;
}

.story-copy::before {
  content: none;
}

.story-evidence {
  position: relative;
  display: grid;
  gap: 18px;
  align-self: stretch;
}

.safe-evidence {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(244, 183, 42, 0.28);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.safe-evidence::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(9, 12, 13, 0.72)),
    radial-gradient(circle at 50% 24%, rgba(244, 183, 42, 0.18), transparent 20rem);
  pointer-events: none;
}

.safe-evidence img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(0.92);
}

.lens-c {
  right: 24px;
  bottom: 28px;
  z-index: 2;
  width: 92px;
  height: 92px;
}

.story-evidence .letter-card {
  color: #2a2115;
  background:
    linear-gradient(90deg, rgba(96, 69, 35, 0.12), transparent 18px),
    #ead8a1;
  border-color: #b9904b;
  box-shadow:
    inset 0 0 28px rgba(99, 64, 27, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.22);
  transform: rotate(-1.5deg);
}

.mission-final {
  background:
    linear-gradient(135deg, rgba(17, 19, 18, 0.94), rgba(38, 57, 73, 0.82)),
    radial-gradient(circle at 78% 38%, rgba(244, 183, 42, 0.2), transparent 24rem),
    #111820;
}

@media (max-width: 640px) {
  .mission-hero {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 46px;
    background:
      linear-gradient(180deg, rgba(15, 20, 23, 0.96) 0 48%, rgba(15, 20, 23, 0.72)),
      radial-gradient(circle at 72% 12%, rgba(217, 164, 65, 0.28), transparent 18rem),
      #11161a;
  }

  .mission-hero .hero-copy {
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
    min-width: 0;
  }

  .mission-hero .hero-grid {
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
    min-width: 0;
  }

  .mission-hero h1 {
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 2.3rem);
    line-height: 1.05;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .mission-hero .lead,
  .mission-hero .hero-copy > p:not(.eyebrow) {
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .mission-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 32px));
    max-width: 100%;
  }

  .mission-hero .hero-actions .button {
    width: 100%;
  }

  .mission-hero::after {
    right: -74px;
    bottom: 30%;
    width: 260px;
    opacity: 0.18;
  }

  .bernat-hero-art {
    width: min(100%, calc(100vw - 32px));
    min-height: 520px;
    margin-top: 18px;
  }

  .bernat-hero-photo img {
    object-position: center bottom;
  }

  .note-sheet-a {
    right: 10px;
    top: 14px;
    width: 132px;
  }

  .note-sheet-b {
    left: 12px;
    bottom: 18px;
    width: 118px;
  }

  .note-sheet::after {
    inset: 16px 14px;
    font-size: 0.76rem;
  }

  .lens-a {
    right: 18%;
    bottom: 16%;
    width: 88px;
    height: 88px;
  }

  .lens-b {
    width: 58px;
    height: 58px;
  }

  .safe-evidence,
  .safe-evidence img {
    min-height: 320px;
  }

  .mission-final {
    background:
      linear-gradient(180deg, rgba(17, 19, 18, 0.96), rgba(38, 57, 73, 0.82)),
      #111820;
  }
}

@media (max-width: 500px) {
  .mission-hero .hero-grid,
  .mission-hero .hero-copy,
  .mission-hero h1,
  .mission-hero .lead,
  .mission-hero .hero-copy > p:not(.eyebrow),
  .mission-hero .hero-actions,
  .bernat-hero-art {
    max-width: min(100%, 358px);
  }
}

.mission-hero {
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(9, 13, 15, 0.88) 0 45%, rgba(9, 13, 15, 0.54) 72%, rgba(9, 13, 15, 0.4)),
    linear-gradient(180deg, rgba(9, 13, 15, 0.16), rgba(9, 13, 15, 0.78)),
    url("/public/assets/bernat/ladika-fekvo.jpg") center / cover no-repeat,
    #11161a;
}

.mission-hero::before {
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(circle at 28% 42%, rgba(244, 183, 42, 0.16), transparent 18rem),
    linear-gradient(90deg, rgba(9, 13, 15, 0.18), transparent 72%);
  mask-image: none;
}

.mission-hero::after {
  content: none;
}

.mission-hero .hero-grid {
  display: block;
}

.mission-hero .hero-copy {
  max-width: 650px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.mission-hero .hero-copy::before {
  margin-bottom: 20px;
}

.story-evidence {
  min-height: 560px;
  align-content: center;
  padding: 34px 22px;
  isolation: isolate;
}

.story-evidence::before,
.story-evidence::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.story-evidence::before {
  content: none;
}

.story-evidence::after {
  right: -22px;
  bottom: 26%;
  width: min(280px, 58vw);
  aspect-ratio: 1;
  opacity: 0.68;
  background: url("/public/assets/bernat/optikai-lencse-transparent.png") center / contain no-repeat;
  filter: saturate(0.85) drop-shadow(0 22px 34px rgba(0, 0, 0, 0.25));
  transform: rotate(-14deg);
}

.safe-evidence {
  width: min(100%, 270px);
  min-height: 0;
  aspect-ratio: 0.72;
  justify-self: center;
}

.safe-evidence img {
  min-height: 0;
}

.safe-evidence::after {
  background:
    linear-gradient(180deg, transparent 44%, rgba(9, 12, 13, 0.58)),
    radial-gradient(circle at 50% 24%, rgba(244, 183, 42, 0.14), transparent 13rem);
}

@media (max-width: 640px) {
  .mission-hero {
    min-height: calc(100vh - 68px);
    background:
      linear-gradient(180deg, rgba(9, 13, 15, 0.82) 0 48%, rgba(9, 13, 15, 0.58)),
      linear-gradient(90deg, rgba(9, 13, 15, 0.58), rgba(9, 13, 15, 0.2)),
      url("/public/assets/bernat/ladika-allo.jpg") center bottom / cover no-repeat,
      #11161a;
  }

  .mission-hero .hero-copy {
    width: min(100%, 358px);
    padding: 0;
  }

  .story-evidence {
    min-height: 460px;
    padding: 26px 0;
  }

  .story-evidence::before {
    right: 8%;
    width: 220px;
  }

  .story-evidence::after {
    right: -28px;
    bottom: 24%;
    width: 210px;
  }

  .safe-evidence {
    width: min(72vw, 230px);
  }
}

@media (min-width: 640px) {
  .code-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .steps,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-card,
  .section-grid,
  .finish-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
  }

  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 14px max(24px, calc((100% - 1180px) / 2));
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.94rem;
  }

  .site-nav .nav-cta {
    margin-left: 6px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 76px;
    padding-bottom: 82px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
  }

  .hero-art {
    min-height: 470px;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .info-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .task-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
    padding-top: 34px;
  }

  .status-panel {
    position: sticky;
    top: 92px;
  }

  .status-panel,
  .task-card {
    padding: 24px;
  }
}

@media (max-width: 380px) {
  :root {
    --content: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 2.25rem;
  }

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

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Home page thread system and refreshed document-based layout */
.case-thread-map {
  position: absolute;
  top: var(--header-height, 70px);
  left: 0;
  z-index: 1;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.case-thread-canvas,
.case-thread-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-thread-pins {
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.case-thread-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}

.case-thread-segment {
  --draw-progress: 0;
  --wrap-progress: 0;
  opacity: 0;
}

.case-thread-segment.is-visible {
  opacity: 1;
}

.case-thread-path,
.case-thread-shadow,
.case-thread-twist,
.case-thread-highlight,
.case-thread-wrap {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.case-thread-origin-wrap {
  --wrap-progress: 1;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: origin-wrap-in 720ms cubic-bezier(0.2, 0.8, 0.2, 1) 420ms forwards;
}

.case-thread-shadow {
  stroke: rgba(8, 18, 31, 0.34);
  stroke-width: 11;
  transform: translateY(4px);
  filter: blur(2.4px);
}

.case-thread-path {
  stroke: #d73d38;
  stroke-width: 7.5;
  filter: drop-shadow(0 3px 3px rgba(8, 18, 31, 0.24));
}

.case-thread-twist {
  stroke: #7f2027;
  stroke-width: 2.2;
  stroke-dasharray: 2 7 10 5;
  stroke-dashoffset: 1;
  opacity: 0.78;
}

.case-thread-highlight {
  stroke: rgba(244, 106, 86, 0.72);
  stroke-width: 1.25;
  stroke-dasharray: 8 8 3 6;
  stroke-dashoffset: -3;
  opacity: 0.72;
}

.case-thread-wrap {
  stroke: #d95e52;
  stroke-width: 6;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--wrap-progress));
  filter: drop-shadow(0 3px 3px rgba(8, 18, 31, 0.24));
}

.case-thread-wrap-texture {
  fill: none;
  stroke: rgba(105, 28, 31, 0.62);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.008 0.012 0.026 0.01 0.012 0.016;
  vector-effect: non-scaling-stroke;
}

.case-thread-pin {
  --pin-tip-x: 41.9%;
  --pin-tip-y: 83.7%;
  position: absolute;
  z-index: 6;
  width: clamp(52px, 5.2vw, 74px);
  aspect-ratio: 360 / 503;
  opacity: 0;
  transform: translate(-41.9%, -83.7%) rotate(var(--pin-tilt)) scale(0.35);
  transform-origin: var(--pin-tip-x) var(--pin-tip-y);
  filter:
    saturate(0.96)
    brightness(1.06)
    drop-shadow(0 10px 8px rgba(8, 18, 31, 0.34));
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(0.18, 1.45, 0.4, 1);
}

.case-thread-pin::before {
  content: "";
  position: absolute;
  top: 11%;
  left: 50%;
  width: 76%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(244, 183, 42, 0.34), transparent 68%);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.case-thread-pin img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(244, 183, 42, 0.95));
}

.case-thread-pin.is-ready {
  opacity: 1;
  transform: translate(-41.9%, -83.7%) rotate(var(--pin-tilt)) scale(1);
}

.case-thread-pin.is-ready::before {
  animation: pin-halo 780ms ease-out 120ms both;
}

.case-thread-pin.is-first {
  animation: first-pin-breathe 4.8s ease-in-out 1.2s infinite;
}

.case-thread-segment.is-dangling .case-thread-path,
.case-thread-segment.is-dangling .case-thread-highlight {
  animation: loose-thread-sway 3.4s ease-in-out infinite;
}

.case-thread-map.is-scroll-idle .case-thread-segment.is-tensioning:not(.is-connected) .case-thread-path,
.case-thread-map.is-scroll-idle .case-thread-segment.is-tensioning:not(.is-connected) .case-thread-highlight {
  animation: traveling-thread-sway 3.8s ease-in-out infinite;
}

.thread-section {
  position: relative;
  z-index: auto;
  isolation: auto;
}

.thread-section > :not(.section-thread) {
  position: relative;
  z-index: 2;
}

.section-thread {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 360px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

@keyframes pin-halo {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  36% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}

@keyframes origin-wrap-in {
  from {
    opacity: 0;
    stroke-dashoffset: 1;
  }
  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes loose-thread-sway {
  0%, 100% { transform: rotate(-0.7deg) translateX(-2px); }
  50% { transform: rotate(0.8deg) translateX(3px); }
}

@keyframes traveling-thread-sway {
  0%, 100% { transform: rotate(-0.16deg) translateY(1px); }
  50% { transform: rotate(0.2deg) translateY(-2px); }
}

@keyframes first-pin-breathe {
  0%, 78%, 100% { filter: saturate(0.96) brightness(1.06) drop-shadow(0 10px 8px rgba(8, 18, 31, 0.34)); }
  88% { filter: saturate(1.04) brightness(1.14) drop-shadow(0 12px 10px rgba(244, 183, 42, 0.28)); }
}

.section-thread[data-reveal] {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.section-thread .thread-line {
  position: absolute;
  top: 50%;
  left: -2.5%;
  width: 105%;
  height: 6px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 196, 181, 0.68) 0 18%,
      rgba(244, 128, 105, 0.58) 34% 68%,
      rgba(220, 100, 77, 0.5) 84% 100%
    );
  border-radius: 999px;
  box-shadow:
    0 5px 3px rgba(4, 12, 22, 0.18),
    0 11px 18px rgba(4, 12, 22, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.62);
  transition: transform 1.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease;
}

.thread-right .thread-line {
  opacity: 0;
  transform: rotate(30deg) scaleX(0);
  transform-origin: 5% center;
}

.thread-left .thread-line {
  opacity: 0;
  transform: rotate(-30deg) scaleX(0);
  transform-origin: 95% center;
}

.thread-right.is-visible .thread-line {
  opacity: 0.72;
  transform: rotate(30deg) scaleX(1);
}

.thread-left.is-visible .thread-line {
  opacity: 0.72;
  transform: rotate(-30deg) scaleX(1);
}

.section-thread .thread-pin {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 8%, var(--sunshine) 10% 45%, #c3840d 75%);
  border: 3px solid rgba(36, 51, 71, 0.18);
  border-radius: 50%;
  box-shadow:
    0 8px 12px rgba(36, 51, 71, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(0.62);
  opacity: 0;
  transition: opacity 240ms ease 720ms, transform 340ms cubic-bezier(0.16, 1, 0.3, 1) 720ms;
}

.section-thread.is-visible .thread-pin {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.section-thread .pin-start {
  left: 5%;
}

.section-thread .pin-end {
  right: 5%;
}

.thread-left .thread-pin {
  background:
    radial-gradient(circle at 34% 28%, #fff 0 8%, var(--teal) 10% 45%, #397775 75%);
}

.home-hero .section-thread {
  top: 76%;
}

.difference-section .section-thread {
  top: 78%;
}

.final-cta .section-thread {
  top: 82%;
}

.home-hero {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  min-height: min(720px, calc(100vh - 68px));
  align-items: center;
}

.home-hero .hero-copy {
  max-width: 830px;
  padding: 36px 0;
}

.home-hero h1 {
  max-width: 820px;
}

.hero-info {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-info b {
  margin: 0 7px;
  color: var(--coral);
}

.positioning-line {
  display: block;
  margin-top: 24px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.missions-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background:
    radial-gradient(circle at 85% 20%, rgba(95, 163, 162, 0.18), transparent 24rem),
    var(--paper-soft);
}

.mission-grid {
  display: grid;
  gap: 20px;
}

.mission-grid .mission-card {
  min-height: 420px;
  align-content: center;
  grid-template-columns: 1fr;
  padding: clamp(22px, 5vw, 42px);
}

.mission-grid .mission-card::before,
.mission-grid .mission-card::after {
  display: none;
}

.mission-grid .mission-card h3 {
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.glass-mission {
  color: var(--dark-text);
  background:
    linear-gradient(90deg, rgba(18, 38, 56, 0.96) 0 54%, rgba(24, 50, 68, 0.72) 72%, rgba(95, 163, 162, 0.26)),
    url("/public/assets/generated/crystal-coal-mission-900.jpg") right center / cover;
  border: 2px solid rgba(109, 143, 179, 0.9);
  box-shadow:
    0 30px 75px rgba(4, 12, 22, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 50px rgba(95, 163, 162, 0.12);
  backdrop-filter: blur(22px) saturate(1.25);
}

.mission-grid .glass-mission::after {
  content: "";
  position: absolute;
  inset: -45% -20%;
  z-index: 2;
  display: block;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.38) 48%, rgba(255, 255, 255, 0.08) 54%, transparent 62%);
  transform: translateX(-45%);
  animation: glass-sheen 5.8s ease-in-out infinite;
}

.glass-mission > div:first-child {
  position: relative;
  z-index: 4;
  max-width: 660px;
  text-shadow: 0 2px 10px rgba(4, 12, 22, 0.42);
}

.broken-glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
  overflow: hidden;
}

.broken-glass-overlay span {
  position: absolute;
  inset: 0;
  background: url("/public/assets/site/broken-glass-greeny-800.jpg") center / cover no-repeat;
  opacity: 0;
  filter: contrast(1.08);
  will-change: transform, opacity;
}

.broken-glass-overlay .crack-from-left {
  clip-path: polygon(0 0, 55% 0, 50% 52%, 55% 100%, 0 100%);
  animation: crack-from-left 10s ease-in-out infinite;
}

.broken-glass-overlay .crack-from-right {
  clip-path: polygon(45% 0, 100% 0, 100% 100%, 45% 100%, 50% 52%);
  animation: crack-from-right 10s ease-in-out infinite;
}

.broken-glass-overlay .crack-from-top {
  clip-path: polygon(0 0, 100% 0, 50% 52%);
  animation: crack-from-top 10s ease-in-out infinite;
}

.broken-glass-overlay .crack-from-bottom {
  clip-path: polygon(0 100%, 50% 52%, 100% 100%);
  animation: crack-from-bottom 10s ease-in-out infinite;
}

.glass-mission h3 {
  color: var(--dark-text);
}

.glass-mission p {
  color: #e4edf0;
}

.glass-mission em {
  display: block;
  margin: 4px 0 18px;
  color: #cbd7dc;
  font-style: italic;
}

.glass-mission .mission-meta span {
  color: var(--dark-text);
  background: rgba(95, 163, 162, 0.2);
  border: 1px solid rgba(140, 199, 196, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.glass-mission .mission-price strong,
.glass-mission .mission-price span {
  color: var(--dark-text);
}

.mission-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
}

.mission-price strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.coming-mission {
  color: var(--dark-text);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2), transparent 14rem),
    var(--sage);
  border: 2px solid rgba(36, 51, 71, 0.14);
  box-shadow: 0 26px 58px rgba(36, 51, 71, 0.2);
}

.coming-mission p {
  color: rgba(255, 255, 255, 0.9);
}

.coming-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--sunshine);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(36, 51, 71, 0.18);
  font-weight: 900;
}

.how-notes {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
  background: rgba(255, 247, 235, 0.9);
  border-left: 5px solid var(--teal);
  box-shadow: 0 14px 30px rgba(36, 51, 71, 0.08);
}

.how-notes p {
  margin: 0;
}

.pinned-card {
  transform-origin: top center;
}

.pinned-card[data-reveal].is-visible {
  animation: card-pin-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-pin {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 17px;
  height: 17px;
  background: var(--pin-color, var(--coral));
  border: 2px solid rgba(36, 51, 71, 0.16);
  border-radius: 50%;
  box-shadow: 0 5px 8px rgba(36, 51, 71, 0.22);
}

.step-card:nth-child(2) .card-pin { --pin-color: var(--teal); }
.step-card:nth-child(3) .card-pin { --pin-color: var(--sunshine); }
.step-card:nth-child(4) .card-pin { --pin-color: var(--dusty); }

.audience-item {
  min-height: 160px;
  translate: 0;
  rotate: 0deg;
}

.audience-item h3 {
  margin-bottom: 10px;
}

.audience-item p {
  margin: 0;
  color: var(--muted);
}

.audience-item[data-reveal].is-visible {
  animation:
    audience-arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) both,
    audience-fidget var(--fidget-cycle, 4.2s) ease-in-out var(--fidget-delay, 1.4s) infinite;
}

.audience-item:nth-child(1) { --fidget-cycle: 4.1s; --fidget-delay: 1.5s; }
.audience-item:nth-child(2) { --fidget-cycle: 4.7s; --fidget-delay: 2.8s; }
.audience-item:nth-child(3) { --fidget-cycle: 3.9s; --fidget-delay: 2.1s; }
.audience-item:nth-child(4) { --fidget-cycle: 4.4s; --fidget-delay: 3.4s; }
.audience-item:nth-child(5) { --fidget-cycle: 4.9s; --fidget-delay: 1.9s; }
.audience-item:nth-child(6) { --fidget-cycle: 4.2s; --fidget-delay: 3.1s; }

.audience-item:nth-child(2)[data-reveal].is-visible {
  animation-delay: 70ms, var(--fidget-delay);
}

.audience-item:nth-child(3)[data-reveal].is-visible {
  animation-delay: 140ms, var(--fidget-delay);
}

.audience-item:nth-child(4)[data-reveal].is-visible {
  animation-delay: 210ms, var(--fidget-delay);
}

.audience-item:nth-child(5)[data-reveal].is-visible {
  animation-delay: 280ms, var(--fidget-delay);
}

.audience-item:nth-child(6)[data-reveal].is-visible {
  animation-delay: 350ms, var(--fidget-delay);
}

@keyframes glass-sheen {
  0%, 18% { transform: translateX(-48%); opacity: 0; }
  35% { opacity: 1; }
  62% { transform: translateX(48%); opacity: 0.85; }
  78%, 100% { transform: translateX(48%); opacity: 0; }
}

@keyframes crack-from-left {
  0%, 20% {
    opacity: 0;
    transform: translateX(-16%);
  }
  40%, 60% {
    opacity: 0.16;
    transform: translateX(0);
  }
  80%, 100% {
    opacity: 0;
    transform: translateX(2%);
  }
}

@keyframes crack-from-right {
  0%, 20% {
    opacity: 0;
    transform: translateX(16%);
  }
  40%, 60% {
    opacity: 0.16;
    transform: translateX(0);
  }
  80%, 100% {
    opacity: 0;
    transform: translateX(-2%);
  }
}

@keyframes crack-from-top {
  0%, 20% {
    opacity: 0;
    transform: translateY(-18%);
  }
  40%, 60% {
    opacity: 0.13;
    transform: translateY(0);
  }
  80%, 100% {
    opacity: 0;
    transform: translateY(2%);
  }
}

@keyframes crack-from-bottom {
  0%, 20% {
    opacity: 0;
    transform: translateY(18%);
  }
  40%, 60% {
    opacity: 0.13;
    transform: translateY(0);
  }
  80%, 100% {
    opacity: 0;
    transform: translateY(-2%);
  }
}

@keyframes audience-arrive {
  0% {
    opacity: 0;
    transform: translateY(30px) rotate(-1.5deg) scale(0.94);
  }
  68% {
    opacity: 1;
    transform: translateY(-4px) rotate(0.7deg) scale(1.015);
  }
  84% {
    transform: translateY(2px) rotate(-0.35deg) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes audience-fidget {
  0%, 72%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  78% {
    translate: -2px -2px;
    rotate: -0.45deg;
  }
  84% {
    translate: 2px 0;
    rotate: 0.4deg;
  }
  90% {
    translate: -1px -1px;
    rotate: -0.2deg;
  }
  95% {
    translate: 1px 0;
    rotate: 0.12deg;
  }
}

.difference-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 760px) / 2));
  padding-left: max(16px, calc((100% - 760px) / 2));
  background: linear-gradient(135deg, rgba(109, 143, 179, 0.16), rgba(255, 247, 235, 0.86));
}

@keyframes card-pin-in {
  0% { opacity: 0; transform: translateY(24px) scale(0.9); }
  72% { opacity: 1; transform: translateY(-3px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes friendly-wiggle {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-1.2deg) translateY(-2px); }
  70% { transform: rotate(1deg) translateY(-1px); }
}

@media (min-width: 760px) {
  .mission-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  }
}

@media (min-width: 1100px) {
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .audience-item {
    display: grid;
    min-height: 154px;
    align-content: start;
    grid-template-rows: auto 1fr;
    padding: 18px;
  }

  .audience-item h3 {
    min-height: 1.2em;
    white-space: nowrap;
  }

  .mission-meta {
    flex-wrap: nowrap;
  }

  .mission-meta span,
  .mission-price {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    max-width: 100vw;
    overflow: visible;
  }

  .menu-button {
    justify-self: end;
  }

  .home-hero {
    width: calc(100% - 48px);
  }

  .home-hero .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9.4vw, 2.35rem);
    overflow-wrap: anywhere;
  }

  .home-hero .lead {
    max-width: 100%;
  }

  .home-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero .hero-actions .button {
    width: 100%;
  }

  .hero-info {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section-thread {
    width: 100vw;
    height: 280px;
    opacity: 0.78;
  }

  .case-thread-map {
    opacity: 1;
  }

  .case-thread-overlay,
  .case-thread-shadow,
  .case-thread-twist,
  .case-thread-highlight {
    display: none;
  }

  .case-thread-canvas {
    shape-rendering: optimizeSpeed;
  }

  .case-thread-path,
  .case-thread-wrap {
    stroke-width: 4.5;
    filter: none;
  }

  .case-thread-shadow {
    stroke-width: 7;
  }

  .case-thread-pin {
    width: 42px;
    filter: none;
  }

  .case-thread-pin img {
    filter: none;
  }

  .case-thread-pin::before {
    display: none;
  }

  .case-thread-pin.is-first {
    animation: none;
  }

  .section-thread .thread-line {
    height: 5px;
  }

  .section-thread .thread-pin {
    width: 19px;
    height: 19px;
  }

  .hero-info b {
    display: inline-block;
  }

  .broken-glass-overlay {
    opacity: 0.9;
  }

  .broken-glass-overlay span {
    background-position: 57% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-thread-segment.is-dangling .case-thread-path,
  .case-thread-segment.is-dangling .case-thread-highlight,
  .case-thread-pin,
  .case-thread-pin::before {
    animation: none;
  }
}

/* A későbbi reszponzív alapszabályok után érvényes játék-elrendezés. */
@media (min-width: 860px) {
  .game-mode .task-layout {
    padding-top: 112px;
  }
}

@media (max-width: 859px) {
  .game-mode .task-layout {
    padding-top: 96px;
  }
}

/* A feltöltött Bernát-lapok és a lapforgatás animációja. */
.game-hud {
  justify-content: flex-end;
}

.app-shell.bernat-game-mode > .site-header {
  display: none;
}

.bernat-game-mode {
  display: flow-root;
  min-height: 100svh;
  background-color: #071d19;
}

.bernat-game-exit {
  position: relative;
  z-index: 82;
  display: block;
  width: min(1180px, calc(100% - 28px));
  margin: calc(env(safe-area-inset-top, 0px) + 10px) auto 0;
  padding: 0;
  color: #f4d77b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
}

.bernat-game-mode .game-hud {
  top: calc(env(safe-area-inset-top, 0px) + 46px);
}

.bernat-game-mode .narrative-card {
  padding-top: clamp(28px, 7vw, 44px);
}

.bernat-game-mode .status-panel {
  display: grid;
  width: min(100%, 390px);
  margin: 0 auto;
  justify-items: center;
  text-align: left;
}

.bernat-game-mode .status-panel > * {
  width: min(100%, 280px);
}

.bernat-game-mode .status-panel h1 {
  font-size: clamp(2.25rem, 10vw, 3.25rem);
}

.bernat-game-mode .status-panel p {
  font-size: clamp(0.95rem, 3.4vw, 1.04rem);
}

@media (max-width: 720px) {
  .bernat-game-mode .game-narrative {
    min-height: calc(100svh - 32px);
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .bernat-game-mode .task-layout,
  .game-mode.bernat-game-mode .task-layout {
    padding-top: 48px;
    padding-bottom: 32px;
    gap: 12px;
  }

  .bernat-game-mode .narrative-card {
    padding-top: 28px;
  }
}

.paper-stack {
  position: relative;
  width: min(100%, 620px, calc(100svh - 110px));
  margin: clamp(22px, 5vw, 38px) auto;
  perspective: 1400px;
  isolation: isolate;
}

.stack-sheet,
.paper-face {
  display: block;
  width: 100%;
  border-radius: 4px;
  transform-origin: 12% 50%;
}

.stack-sheet {
  position: absolute;
  inset: 2.5% 2% 1.5%;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.12), transparent 32%),
    #cdb98e;
  border: 1px solid rgba(77, 55, 28, 0.48);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

.stack-sheet-back {
  transform: translate(10px, 9px) rotate(4deg);
  animation: sheet-shuffle-back 760ms cubic-bezier(0.2, 0.76, 0.25, 1) both;
}

.stack-sheet-middle {
  transform: translate(-7px, 5px) rotate(-3deg);
  animation: sheet-shuffle-middle 820ms 70ms cubic-bezier(0.2, 0.76, 0.25, 1) both;
}

.paper-face {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backface-visibility: hidden;
  animation: paper-turn-in 900ms 110ms cubic-bezier(0.16, 0.84, 0.22, 1) both;
}

.paper-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.28));
}

.paper-stack.has-overlay .paper-face {
  aspect-ratio: 3 / 4;
}

.paper-stack.has-overlay .paper-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paper-overlay {
  position: absolute;
  inset: 10% 10% 12% 13%;
  display: grid;
  align-content: start;
  color: #17154b;
  text-align: center;
}

.paper-overlay p {
  color: #17154b !important;
  font-size: clamp(0.95rem, 2.6vw, 1.35rem);
  line-height: 1.7;
}

.game-mode .task-puzzle {
  margin: 0 0 30px;
  padding: 18px 0 0;
  color: #eef1e9 !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 1.04rem;
  line-height: 1.65;
}

.task-card .paper-stack {
  margin-bottom: clamp(22px, 5vw, 40px);
}

.success-card h1 {
  margin-bottom: clamp(34px, 6vw, 56px);
}

.success-card .paper-stack {
  margin-top: 0;
  margin-bottom: clamp(38px, 7vw, 62px);
}

.success-card .next-instruction {
  margin-top: 0;
  margin-bottom: 34px;
}

.game-mode .task-puzzle,
.success-note-stage > .next-instruction,
.first-record .narrator-copy {
  position: relative;
}

.game-mode .task-puzzle::before,
.success-note-stage > .next-instruction::before,
.first-record .narrator-copy::before {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-bottom: 14px;
  background: #f4b72a;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(244, 183, 42, 0.22);
}

.success-card > .button {
  margin-top: 12px;
}

.success-copy {
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin: -28px auto 34px;
  color: rgba(239, 243, 234, 0.8);
}

.success-copy p {
  margin: 0;
}

.success-video-stage {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  overflow: hidden;
  background: #061713;
  border: 1px solid rgba(244, 183, 42, 0.3);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
  aspect-ratio: 1;
  scroll-margin-top: 92px;
}

.success-video-stage[hidden],
.success-video-action[hidden],
.success-note-stage[hidden] {
  display: none !important;
}

.success-reveal-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-video-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(2, 14, 11, 0.78));
}

.success-video-action {
  position: absolute;
  right: 50%;
  bottom: clamp(18px, 4vw, 30px);
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  opacity: 0;
  transform: translate(50%, 16px) scale(0.96);
}

.success-video-action.is-visible {
  opacity: 1;
  transform: translate(50%, 0) scale(1);
  transition: opacity 360ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.success-note-stage {
  opacity: 0;
  transform: translateY(18px);
}

.success-note-stage.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.success-note-stage > .button {
  margin-top: 12px;
}

.first-record > p:first-child {
  margin-top: 34px;
  margin-bottom: 28px;
}

.first-record .paper-stack {
  margin-top: 0;
  margin-bottom: 40px;
}

.first-record .narrator-copy {
  max-width: 680px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  background: rgba(4, 24, 20, 0.48);
  border-left: 0;
}

.first-record .narrator-copy p {
  margin: 0;
  color: #eef1e9 !important;
  line-height: 1.65;
}

.finish-paper {
  width: min(100%, 540px);
}

@keyframes paper-turn-in {
  0% {
    opacity: 0;
    transform: translate3d(48px, -18px, 60px) rotateY(-78deg) rotateZ(7deg) scale(0.92);
    filter: blur(2px);
  }
  58% {
    opacity: 1;
    transform: translate3d(-8px, 4px, 0) rotateY(9deg) rotateZ(-1.6deg) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheet-shuffle-back {
  from {
    opacity: 0;
    transform: translate(70px, -28px) rotate(13deg) scale(0.9);
  }
  to {
    opacity: 0.72;
    transform: translate(10px, 9px) rotate(4deg);
  }
}

@keyframes sheet-shuffle-middle {
  from {
    opacity: 0;
    transform: translate(-62px, 22px) rotate(-12deg) scale(0.92);
  }
  to {
    opacity: 0.86;
    transform: translate(-7px, 5px) rotate(-3deg);
  }
}

@media (max-width: 620px) {
  .paper-stack {
    width: min(100%, 470px);
  }

  .paper-overlay {
    inset: 9% 8% 10% 11%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-face,
  .stack-sheet {
    animation: none;
  }

  .success-video-action,
  .success-note-stage {
    transition: none;
  }
}

/* 7. küldetés – képrészletek, megfejtés és széftárcsa */
.final-puzzle {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 1.5vw, 14px);
}

.detail-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #071d19;
  border: 1px solid rgba(223, 237, 229, 0.2);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1;
}

.detail-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.detail-card span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 7px;
  color: #102c25;
  background: rgba(244, 183, 42, 0.92);
  border-radius: 999px;
  font-size: clamp(0.52rem, 1.5vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.detail-card:hover img,
.detail-card:focus-visible img {
  filter: brightness(1.08);
  transform: scale(1.045);
}

.detail-card:hover span,
.detail-card:focus-visible span {
  opacity: 1;
  transform: none;
}

.safe-code-area {
  display: grid;
  gap: clamp(24px, 5vw, 40px);
  align-items: center;
}

.safe-dial {
  --dial-angle: 0deg;
  position: relative;
  width: min(100%, 390px);
  margin: 0 auto;
  overflow: hidden;
  background: #151513;
  border: 1px solid rgba(244, 183, 42, 0.38);
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38), 0 0 0 5px rgba(244, 183, 42, 0.06);
  aspect-ratio: 1;
  isolation: isolate;
}

.safe-dial-base,
.safe-dial-rotor,
.safe-dial-symbols {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.safe-dial-rotor,
.safe-dial-symbols {
  position: absolute;
  inset: 0;
}

.safe-dial-rotor {
  z-index: 1;
  clip-path: circle(37.7% at 50% 50%);
  transform: rotate(var(--dial-angle));
  transition: transform 680ms cubic-bezier(0.18, 0.9, 0.24, 1.12);
  will-change: transform;
}

.safe-dial-symbols {
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.safe-dial-symbol-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.safe-dial-mark-symbol,
.safe-dial-mark-letter {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  color: #2c1606;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 226, 140, 0.22), 0 2px 5px rgba(0, 0, 0, 0.34);
}

.safe-dial-mark-symbol {
  font-size: clamp(1.05rem, 6.3vw, 1.85rem);
}

.safe-dial-mark-letter {
  font-size: clamp(1.05rem, 6.6vw, 1.9rem);
}

.safe-dial-glint {
  position: absolute;
  inset: 7%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 247, 201, 0.24) 49%, transparent 62%);
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-35%) rotate(-8deg);
}

.safe-dial.is-turning .safe-dial-glint {
  animation: safe-glint 620ms ease-out;
}

.letter-code-form {
  margin: 0;
}

.letter-code-form fieldset {
  padding: 0;
  border: 0;
}

.letter-code-form legend {
  width: 100%;
  margin-bottom: 18px;
  color: #eef1e9;
  font-weight: 900;
  text-align: center;
}

.letter-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(7px, 2vw, 14px);
  max-width: 520px;
  margin: 0 auto;
}

.letter-slot {
  min-width: 0;
  min-height: 58px;
  padding: 0 2px;
  color: #f7f0df;
  background: transparent;
  border: 0;
  border-bottom: 3px solid rgba(244, 183, 42, 0.78);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.letter-slot:focus {
  border-bottom-color: #fff1b5;
  box-shadow: 0 8px 0 -6px rgba(244, 183, 42, 0.35);
  outline: 0;
}

.letter-slot[readonly] {
  color: #f4b72a;
}

.letter-slot:disabled {
  color: rgba(238, 241, 233, 0.35);
  border-bottom-color: rgba(238, 241, 233, 0.24);
  opacity: 1;
}

.letter-slot[aria-invalid="true"] {
  border-bottom-color: #df7868;
}

.detail-modal {
  width: min(94vw, 820px);
  max-height: 92vh;
  padding: 0;
  overflow: visible;
  background: #071d19;
  border: 1px solid rgba(244, 183, 42, 0.42);
  border-radius: 14px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.72);
}

.detail-modal::backdrop {
  background: rgba(1, 12, 10, 0.88);
  backdrop-filter: blur(5px);
}

.detail-modal img {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 13px;
}

.detail-modal-close {
  position: absolute;
  top: -16px;
  right: -12px;
  z-index: 2;
  display: grid;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: #102c25;
  background: #f4b72a;
  border: 2px solid #fff1b5;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  font-size: 1.8rem;
  line-height: 1;
  place-items: center;
}

@keyframes safe-glint {
  0% { opacity: 0; transform: translateX(-42%) rotate(-8deg); }
  44% { opacity: 1; }
  100% { opacity: 0; transform: translateX(42%) rotate(-8deg); }
}

@media (min-width: 660px) {
  .detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .safe-code-area {
    grid-template-columns: minmax(240px, 0.8fr) minmax(310px, 1.2fr);
  }
}

@media (max-width: 420px) {
  .detail-card span {
    display: none;
  }

  .detail-modal-close {
    top: -54px;
    right: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .safe-dial-rotor,
  .detail-card img {
    transition-duration: 0.01ms;
  }

  .safe-dial.is-turning .safe-dial-glint {
    animation: none;
  }
}

/* Bernát küldetés – bemutatkozó oldal, feltöltött képi világgal */
.mission-hero {
  background:
    linear-gradient(90deg, rgba(7, 11, 13, 0.92) 0 42%, rgba(7, 11, 13, 0.5) 70%, rgba(7, 11, 13, 0.25)),
    linear-gradient(180deg, rgba(7, 11, 13, 0.08), rgba(7, 11, 13, 0.72)),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #11161a;
}

.mission-hero::before {
  background:
    radial-gradient(circle at 58% 54%, rgba(244, 183, 42, 0.22), transparent 20rem),
    linear-gradient(90deg, rgba(9, 13, 15, 0.2), transparent 74%);
}

.mission-evidence-stage {
  position: relative;
  display: grid;
  min-height: 610px;
  place-items: center;
  isolation: isolate;
}

.story-evidence::before,
.story-evidence::after {
  content: none;
}

.mission-evidence-stage::before {
  content: "";
  position: absolute;
  inset: 8% 0 5%;
  z-index: -1;
  background:
    radial-gradient(circle at 48% 58%, rgba(244, 183, 42, 0.28), transparent 36%),
    radial-gradient(circle at 56% 26%, rgba(65, 143, 169, 0.18), transparent 34%);
  filter: blur(8px);
}

.mission-clue-note {
  position: absolute;
  top: 42px;
  left: 16px;
  z-index: 4;
  width: min(235px, 48%);
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.45));
  transform: rotate(-7deg);
}

.mission-blue-lens {
  position: absolute;
  right: -12px;
  top: 150px;
  z-index: 5;
  width: min(190px, 40%);
  filter: saturate(1.08) drop-shadow(0 24px 30px rgba(0, 0, 0, 0.42));
  transform: rotate(-13deg);
}

.mission-gold-bars {
  position: absolute;
  right: 10px;
  bottom: 95px;
  z-index: 2;
  width: min(360px, 72%);
  pointer-events: none;
  filter: drop-shadow(0 34px 36px rgba(0, 0, 0, 0.46)) saturate(1.08);
  transform: rotate(5deg);
}

.mission-gold-coins {
  position: absolute;
  left: -38px;
  bottom: 4px;
  z-index: 3;
  width: min(430px, 88%);
  pointer-events: none;
  filter: drop-shadow(0 34px 36px rgba(0, 0, 0, 0.42)) saturate(1.08);
  transform: rotate(-4deg);
}

.story-evidence .letter-card {
  position: relative;
  z-index: 7;
  width: min(100%, 380px);
  justify-self: end;
  margin-top: -42px;
}

@media (max-width: 640px) {
  .mission-hero {
    min-height: max(820px, calc(100svh - 68px));
    align-items: start;
    padding-top: 28px;
    padding-bottom: 34px;
    background:
      linear-gradient(180deg, rgba(7, 11, 13, 0.9) 0 29%, rgba(7, 11, 13, 0.22) 42% 58%, rgba(7, 11, 13, 0.82) 72%),
      linear-gradient(90deg, rgba(7, 11, 13, 0.42), rgba(7, 11, 13, 0.12)),
      url("/public/assets/bernat/mission-intro/lada-romok-mobile.jpg") center center / cover no-repeat,
      #11161a;
  }

  .mission-hero .hero-grid {
    align-self: stretch;
  }

  .mission-hero .hero-copy {
    display: flex;
    min-height: 748px;
    flex-direction: column;
  }

  .mission-hero .hero-copy::before {
    margin-bottom: 14px;
  }

  .mission-hero .eyebrow {
    margin-bottom: 7px;
  }

  .mission-hero h1 {
    margin-bottom: 10px;
  }

  .mission-hero .lead {
    margin-bottom: 8px;
  }

  .mission-hero .hero-copy > p:not(.eyebrow) {
    margin-bottom: 0;
  }

  .mission-hero .hero-actions {
    margin-top: clamp(190px, 27svh, 245px);
  }

  .mission-evidence-stage {
    min-height: 500px;
  }

  .mission-clue-note {
    top: 18px;
    left: 2px;
    width: min(160px, 44%);
  }

  .mission-blue-lens {
    right: 2px;
    top: 98px;
    width: min(120px, 34%);
  }

  .mission-gold-bars {
    right: -18px;
    bottom: 106px;
    width: min(280px, 70%);
  }

  .mission-gold-coins {
    left: -34px;
    bottom: 14px;
    width: min(330px, 88%);
  }

  .story-evidence .letter-card {
    width: min(92%, 340px);
    margin-top: -18px;
    justify-self: center;
  }
}

/* Bemutató oldal: spoilermentes, aranyos vizuális réteg. */
.story-copy::before,
.story-evidence::before,
.story-evidence::after {
  content: none;
}

.mission-final {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 19, 18, 0.94), rgba(28, 45, 57, 0.86)),
    radial-gradient(circle at 78% 38%, rgba(244, 183, 42, 0.22), transparent 24rem),
    #111820;
}

.mission-final::before,
.mission-final::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4)) saturate(1.08);
}

.mission-final::before {
  right: clamp(24px, 8vw, 130px);
  bottom: -84px;
  width: min(360px, 34vw);
  aspect-ratio: 1;
  background-image: url("/public/assets/bernat/mission-intro/aranyerem.png");
  opacity: 0.72;
  transform: rotate(-7deg);
}

.mission-final::after {
  right: clamp(190px, 30vw, 430px);
  bottom: -28px;
  width: min(260px, 24vw);
  aspect-ratio: 1;
  background-image: url("/public/assets/bernat/mission-intro/aranyrud.png");
  opacity: 0.64;
  transform: rotate(6deg);
}

@media (max-width: 640px) {
  .mission-final::before {
    right: -92px;
    bottom: -72px;
    width: 260px;
    opacity: 0.42;
  }

  .mission-final::after {
    right: 52px;
    bottom: -54px;
    width: 180px;
    opacity: 0.34;
  }
}

/* Bernát bemutató oldal – rejtélyes üveg/kincs irány, spoiler nélkül. */
.mission-hero {
  min-height: min(820px, calc(100vh - 68px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 0.95) 0 39%, rgba(6, 13, 18, 0.72) 58%, rgba(8, 17, 23, 0.5)),
    radial-gradient(circle at 72% 24%, rgba(91, 160, 213, 0.26), transparent 22rem),
    radial-gradient(circle at 82% 70%, rgba(244, 183, 42, 0.28), transparent 20rem),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #071016;
}

.mission-hero::before {
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(178, 218, 255, 0.16) 36.4% 37.2%, transparent 37.6% 100%),
    linear-gradient(138deg, transparent 0 57%, rgba(244, 183, 42, 0.12) 57.3% 58%, transparent 58.4% 100%),
    radial-gradient(circle at 78% 18%, rgba(223, 242, 255, 0.18), transparent 16rem),
    linear-gradient(90deg, rgba(3, 9, 13, 0.28), transparent 78%);
}

.mission-hero::after {
  content: "";
  position: absolute;
  inset: -8%;
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(4, 10, 14, 0.2), rgba(4, 10, 14, 0.62)),
    url("/public/assets/bernat/mission-intro/crystal-glass-style.jpg") center / cover no-repeat;
  filter: blur(7px) saturate(1.1);
  mix-blend-mode: screen;
  pointer-events: none;
}

.mission-hero .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.mission-hero .hero-copy {
  max-width: 720px;
}

.mission-hero .hero-copy::before {
  width: 96px;
  background: linear-gradient(90deg, #ff7f65, #f4b72a 52%, rgba(178, 218, 255, 0.8));
}

.mission-hero h1 {
  color: #fff7eb;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.78), 0 0 28px rgba(244, 183, 42, 0.1);
}

.mission-hero .lead {
  max-width: 680px;
  color: rgba(255, 250, 241, 0.9);
}

.mission-hero .hero-copy > p:not(.eyebrow):not(.lead) {
  color: rgba(255, 250, 241, 0.82);
}

.mission-hero-art {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(178, 218, 255, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(15, 39, 55, 0.48), rgba(5, 13, 18, 0.78)),
    radial-gradient(circle at 36% 22%, rgba(210, 237, 255, 0.24), transparent 13rem),
    radial-gradient(circle at 54% 72%, rgba(244, 183, 42, 0.22), transparent 15rem);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 54px rgba(57, 131, 171, 0.12),
    0 34px 84px rgba(0, 0, 0, 0.4);
  isolation: isolate;
}

.mission-hero-art::before,
.mission-hero-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mission-hero-art::before {
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(178, 218, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(130deg, transparent 0 35%, rgba(210, 237, 255, 0.22) 35.2% 35.8%, transparent 36%),
    linear-gradient(48deg, transparent 0 62%, rgba(244, 183, 42, 0.16) 62.2% 62.8%, transparent 63%),
    radial-gradient(circle at 50% 50%, rgba(13, 39, 55, 0.38), transparent 68%);
}

.mission-hero-art::after {
  left: 14%;
  right: 10%;
  bottom: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 183, 42, 0.68), transparent);
  box-shadow: 0 0 24px rgba(244, 183, 42, 0.42);
}

.glass-shard {
  position: absolute;
  display: block;
  border: 1px solid rgba(205, 235, 255, 0.28);
  background: linear-gradient(135deg, rgba(178, 218, 255, 0.24), rgba(255, 255, 255, 0.02));
  clip-path: polygon(50% 0, 100% 82%, 18% 100%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.shard-a {
  top: 28px;
  right: 18px;
  width: 130px;
  height: 220px;
  transform: rotate(18deg);
}

.shard-b {
  left: 24px;
  bottom: 84px;
  width: 92px;
  height: 170px;
  opacity: 0.72;
  transform: rotate(-24deg);
}

.shard-c {
  right: 162px;
  top: 72px;
  width: 64px;
  height: 120px;
  opacity: 0.5;
  transform: rotate(42deg);
}

.hero-note-fragment,
.hero-lens-fragment,
.hero-gold-bars,
.hero-gold-coins {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.hero-note-fragment {
  top: 62px;
  left: 44px;
  z-index: 4;
  width: min(235px, 46%);
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.45));
  transform: rotate(-8deg);
}

.hero-lens-fragment {
  right: 48px;
  top: 184px;
  z-index: 5;
  width: min(190px, 38%);
  filter: saturate(1.16) drop-shadow(0 30px 34px rgba(0, 0, 0, 0.44));
  transform: rotate(-18deg);
}

.hero-gold-bars {
  right: 42px;
  bottom: 96px;
  z-index: 3;
  width: min(360px, 72%);
  filter: saturate(1.05) drop-shadow(0 34px 38px rgba(0, 0, 0, 0.5));
  transform: rotate(5deg);
}

.hero-gold-coins {
  left: 28px;
  bottom: 16px;
  z-index: 6;
  width: min(410px, 82%);
  filter: saturate(1.08) drop-shadow(0 30px 38px rgba(0, 0, 0, 0.45));
  transform: rotate(-4deg);
}

.dark-info {
  background:
    linear-gradient(90deg, rgba(8, 19, 25, 0.98), rgba(15, 31, 39, 0.98)),
    radial-gradient(circle at 74% 50%, rgba(244, 183, 42, 0.14), transparent 24rem);
  border-block: 1px solid rgba(178, 218, 255, 0.12);
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-grid div {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 100% 0, rgba(178, 218, 255, 0.13), transparent 9rem);
  border-color: rgba(178, 218, 255, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 20px 44px rgba(0, 0, 0, 0.18);
}

.info-grid strong {
  color: #fff7eb;
}

.story-section {
  background:
    linear-gradient(90deg, rgba(255, 247, 235, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 235, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 17% 28%, rgba(78, 136, 177, 0.17), transparent 26rem),
    radial-gradient(circle at 78% 16%, rgba(244, 183, 42, 0.18), transparent 28rem),
    linear-gradient(180deg, #172532, #0f171f);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.story-copy {
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(145deg, rgba(8, 20, 27, 0.38), rgba(8, 20, 27, 0.08));
  border: 1px solid rgba(178, 218, 255, 0.12);
  border-radius: 24px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.mission-evidence-stage {
  min-height: 610px;
  border: 1px solid rgba(178, 218, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(8, 22, 30, 0.48), rgba(3, 10, 14, 0.64)),
    radial-gradient(circle at 46% 52%, rgba(244, 183, 42, 0.22), transparent 16rem),
    radial-gradient(circle at 76% 20%, rgba(178, 218, 255, 0.18), transparent 14rem);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 28px 70px rgba(0, 0, 0, 0.3);
}

.mission-evidence-stage::after {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: -1;
  border: 1px solid rgba(178, 218, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(116deg, transparent 0 42%, rgba(178, 218, 255, 0.14) 42.2% 42.8%, transparent 43%),
    linear-gradient(52deg, transparent 0 64%, rgba(244, 183, 42, 0.12) 64.2% 64.7%, transparent 65%);
}

.letter-card {
  border-radius: 16px;
}

.purchase-section {
  background:
    radial-gradient(circle at 16% 30%, rgba(244, 183, 42, 0.15), transparent 22rem),
    linear-gradient(180deg, #111820, #18222c);
}

@media (max-width: 820px) {
  .mission-hero .hero-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .mission-hero-art {
    min-height: 410px;
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .mission-hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 40px;
    background:
      linear-gradient(180deg, rgba(5, 10, 14, 0.94) 0 46%, rgba(5, 10, 14, 0.5) 64%, rgba(5, 10, 14, 0.82)),
      radial-gradient(circle at 70% 40%, rgba(91, 160, 213, 0.18), transparent 16rem),
      url("/public/assets/bernat/mission-intro/lada-romok-mobile.jpg") center bottom / cover no-repeat,
      #071016;
  }

  .mission-hero::after {
    opacity: 0.12;
  }

  .mission-hero .hero-copy {
    min-height: 0;
  }

  .mission-hero .hero-actions {
    margin-top: 28px;
  }

  .mission-hero-art {
    min-height: 360px;
    border-radius: 22px;
  }

  .hero-note-fragment {
    top: 34px;
    left: 24px;
    width: min(150px, 44%);
  }

  .hero-lens-fragment {
    right: 22px;
    top: 110px;
    width: min(118px, 34%);
  }

  .hero-gold-bars {
    right: 4px;
    bottom: 72px;
    width: min(230px, 68%);
  }

  .hero-gold-coins {
    left: -20px;
    bottom: 4px;
    width: min(300px, 88%);
  }

  .shard-a {
    width: 82px;
    height: 144px;
  }

  .shard-b {
    width: 64px;
    height: 118px;
  }

  .story-copy {
    padding: 20px;
    border-radius: 18px;
  }

  .mission-evidence-stage {
    min-height: 430px;
    border-radius: 22px;
  }
}

/* Bernát bemutató oldal – tisztított elrendezés: hero = láda, story = kristály/kincs. */
.mission-hero {
  min-height: min(760px, calc(100vh - 68px));
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 0.94) 0 43%, rgba(5, 10, 14, 0.58) 67%, rgba(5, 10, 14, 0.24)),
    linear-gradient(180deg, rgba(5, 10, 14, 0.08), rgba(5, 10, 14, 0.7)),
    radial-gradient(circle at 72% 24%, rgba(91, 160, 213, 0.17), transparent 22rem),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #071016;
}

.mission-hero::before {
  background:
    linear-gradient(114deg, transparent 0 38%, rgba(183, 224, 255, 0.16) 38.2% 38.8%, transparent 39.2%),
    linear-gradient(138deg, transparent 0 65%, rgba(244, 183, 42, 0.13) 65.2% 65.8%, transparent 66.2%),
    radial-gradient(circle at 72% 28%, rgba(221, 242, 255, 0.14), transparent 17rem),
    linear-gradient(90deg, rgba(3, 9, 13, 0.3), transparent 78%);
}

.mission-hero::after {
  opacity: 0.12;
}

.mission-hero .hero-grid {
  display: block;
  max-width: var(--max);
}

.mission-hero .hero-copy {
  max-width: 680px;
}

.mission-hero-art,
.hero-note-fragment,
.hero-lens-fragment,
.hero-gold-bars,
.hero-gold-coins {
  display: none;
}

.story-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 247, 235, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 235, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 16% 22%, rgba(82, 146, 190, 0.2), transparent 28rem),
    radial-gradient(circle at 78% 20%, rgba(244, 183, 42, 0.18), transparent 28rem),
    linear-gradient(180deg, #16283a, #0d1720 68%, #101820);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.story-section::before,
.story-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.story-section::before {
  inset: 0;
  opacity: 0.16;
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(210, 238, 255, 0.18) 18.15% 18.55%, transparent 18.7% 100%),
    linear-gradient(132deg, transparent 0 48%, rgba(244, 183, 42, 0.12) 48.15% 48.55%, transparent 48.7% 100%),
    linear-gradient(52deg, transparent 0 74%, rgba(210, 238, 255, 0.14) 74.15% 74.55%, transparent 74.7% 100%);
  mix-blend-mode: screen;
}

.story-section::after {
  right: -12%;
  top: -24%;
  width: 48vw;
  min-width: 360px;
  aspect-ratio: 1;
  opacity: 0.13;
  background: url("/public/assets/bernat/mission-intro/crystal-glass-style.jpg") center / cover no-repeat;
  filter: blur(8px) saturate(1.15);
  mix-blend-mode: screen;
}

.story-layout {
  position: relative;
  z-index: 1;
  align-items: center;
}

.story-copy {
  background:
    linear-gradient(145deg, rgba(9, 23, 31, 0.72), rgba(7, 17, 24, 0.3)),
    radial-gradient(circle at 100% 0, rgba(183, 224, 255, 0.12), transparent 16rem);
  border-color: rgba(183, 224, 255, 0.16);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(0, 0, 0, 0.26);
}

.mission-evidence-stage {
  min-height: 560px;
  overflow: hidden;
  border-color: rgba(183, 224, 255, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(13, 38, 54, 0.56), rgba(4, 12, 18, 0.76)),
    radial-gradient(circle at 42% 42%, rgba(222, 245, 255, 0.17), transparent 13rem),
    radial-gradient(circle at 55% 68%, rgba(244, 183, 42, 0.28), transparent 14rem);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 70px rgba(71, 151, 204, 0.12),
    0 34px 86px rgba(0, 0, 0, 0.36);
}

.mission-evidence-stage::before {
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(210, 238, 255, 0.16);
  border-radius: 25px;
  background:
    linear-gradient(118deg, transparent 0 34%, rgba(210, 238, 255, 0.22) 34.25% 34.75%, transparent 35%),
    linear-gradient(48deg, transparent 0 58%, rgba(244, 183, 42, 0.14) 58.2% 58.65%, transparent 59%),
    linear-gradient(152deg, transparent 0 72%, rgba(210, 238, 255, 0.12) 72.25% 72.75%, transparent 73%),
    radial-gradient(circle at 50% 50%, rgba(12, 40, 58, 0.24), transparent 68%);
  filter: none;
}

.mission-evidence-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(230, 248, 255, 0.36) 20.15% 20.55%, transparent 20.8%),
    linear-gradient(137deg, transparent 0 78%, rgba(255, 231, 161, 0.32) 78.15% 78.55%, transparent 78.85%),
    radial-gradient(circle at 84% 20%, rgba(240, 249, 255, 0.2), transparent 8rem);
  mix-blend-mode: screen;
}

.mission-evidence-stage .glass-shard {
  z-index: 2;
}

.mission-evidence-stage .shard-a {
  top: 34px;
  right: 28px;
  width: 118px;
  height: 230px;
  opacity: 0.64;
}

.mission-evidence-stage .shard-b {
  left: 22px;
  bottom: 94px;
  width: 96px;
  height: 190px;
  opacity: 0.46;
}

.mission-evidence-stage .shard-c {
  top: 82px;
  right: 190px;
  width: 72px;
  height: 132px;
  opacity: 0.42;
}

.mission-clue-note {
  top: 50px;
  left: clamp(20px, 7vw, 58px);
  z-index: 5;
  width: min(250px, 45%);
  filter:
    drop-shadow(0 26px 28px rgba(0, 0, 0, 0.48))
    drop-shadow(0 4px 0 rgba(48, 24, 4, 0.12));
  transform: rotate(-6deg);
}

.mission-blue-lens {
  right: clamp(12px, 4vw, 34px);
  top: 238px;
  z-index: 8;
  width: min(205px, 40%);
  filter:
    saturate(1.16)
    drop-shadow(0 30px 34px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 28px rgba(117, 187, 255, 0.22));
  transform: perspective(800px) rotateX(10deg) rotateZ(-11deg);
}

.mission-gold-bars {
  right: clamp(22px, 8vw, 70px);
  bottom: 118px;
  z-index: 4;
  width: min(330px, 62%);
  filter:
    saturate(1.12)
    contrast(1.03)
    drop-shadow(0 34px 32px rgba(0, 0, 0, 0.56))
    drop-shadow(0 10px 0 rgba(66, 38, 4, 0.18))
    drop-shadow(0 0 24px rgba(244, 183, 42, 0.18));
  transform: perspective(900px) rotateX(8deg) rotateY(-5deg) rotateZ(4deg);
}

.mission-gold-coins {
  left: clamp(-44px, -5vw, -18px);
  bottom: 18px;
  z-index: 7;
  width: min(430px, 82%);
  filter:
    saturate(1.14)
    contrast(1.04)
    drop-shadow(0 36px 30px rgba(0, 0, 0, 0.5))
    drop-shadow(0 12px 0 rgba(68, 39, 4, 0.16))
    drop-shadow(0 0 24px rgba(244, 183, 42, 0.16));
  transform: perspective(900px) rotateX(9deg) rotateZ(-4deg);
}

.story-evidence .letter-card {
  width: min(100%, 420px);
  margin-top: -28px;
  background:
    linear-gradient(145deg, rgba(235, 216, 161, 0.92), rgba(185, 144, 75, 0.92)),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.32), transparent 10rem);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.24),
    0 26px 54px rgba(0, 0, 0, 0.28);
}

@media (max-width: 820px) {
  .mission-hero .hero-grid {
    display: block;
  }
}

@media (max-width: 640px) {
  .mission-hero {
    min-height: max(760px, calc(100svh - 68px));
    align-items: start;
    padding-top: 30px;
    background:
      linear-gradient(180deg, rgba(5, 10, 14, 0.92) 0 30%, rgba(5, 10, 14, 0.18) 45% 60%, rgba(5, 10, 14, 0.82) 74%),
      linear-gradient(90deg, rgba(5, 10, 14, 0.42), rgba(5, 10, 14, 0.1)),
      radial-gradient(circle at 72% 36%, rgba(91, 160, 213, 0.14), transparent 16rem),
      url("/public/assets/bernat/mission-intro/lada-romok-mobile.jpg") center center / cover no-repeat,
      #071016;
  }

  .mission-hero .hero-copy {
    display: flex;
    min-height: 690px;
    flex-direction: column;
  }

  .mission-hero .hero-actions {
    margin-top: clamp(170px, 25svh, 230px);
  }

  .mission-evidence-stage {
    min-height: 470px;
    border-radius: 24px;
  }

  .mission-clue-note {
    top: 24px;
    left: 18px;
    width: min(162px, 43%);
  }

  .mission-blue-lens {
    right: 12px;
    top: 158px;
    width: min(132px, 36%);
  }

  .mission-gold-bars {
    right: -12px;
    bottom: 100px;
    width: min(250px, 66%);
  }

  .mission-gold-coins {
    left: -34px;
    bottom: 8px;
    width: min(330px, 90%);
  }

  .mission-evidence-stage .shard-a {
    width: 74px;
    height: 150px;
  }

  .mission-evidence-stage .shard-b {
    width: 62px;
    height: 122px;
  }

  .mission-evidence-stage .shard-c {
    right: 120px;
    width: 48px;
    height: 92px;
  }
}

/* Bernát story szekció – zöld kristály háttér + sejtelmes hulló arany, jegyzet/lencse nélkül. */
.story-section {
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(4, 18, 15, 0.68), rgba(4, 42, 27, 0.38)),
    radial-gradient(circle at 78% 18%, rgba(60, 214, 137, 0.2), transparent 28rem),
    radial-gradient(circle at 18% 28%, rgba(244, 183, 42, 0.12), transparent 24rem),
    url("/public/assets/bernat/mission-intro/zold-kristaly-desktop.webp") center / cover no-repeat,
    #071714;
}

.story-section::before {
  inset: 0;
  z-index: 0;
  opacity: 0.58;
  background:
    linear-gradient(180deg, rgba(5, 13, 14, 0.2), rgba(5, 13, 14, 0.78)),
    linear-gradient(118deg, transparent 0 20%, rgba(232, 255, 246, 0.15) 20.15% 20.45%, transparent 20.7% 100%),
    linear-gradient(50deg, transparent 0 68%, rgba(244, 183, 42, 0.1) 68.15% 68.5%, transparent 68.8% 100%);
  mix-blend-mode: screen;
}

.story-section::after {
  inset: -16% -5%;
  z-index: 0;
  width: auto;
  min-width: 0;
  aspect-ratio: auto;
  opacity: 0.14;
  background: url("/public/assets/bernat/mission-intro/hullo-arany-desktop.png") center top / min(1120px, 94vw) auto repeat-y;
  filter:
    blur(0.2px)
    saturate(0.92)
    drop-shadow(0 24px 26px rgba(0, 0, 0, 0.34));
  mix-blend-mode: screen;
  animation: coin-drift 26s linear infinite;
}

.story-layout {
  display: block;
  position: relative;
  z-index: 1;
}

.story-copy {
  width: min(100%, 780px);
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(145deg, rgba(3, 16, 13, 0.92), rgba(4, 18, 14, 0.78)),
    radial-gradient(circle at 100% 0, rgba(105, 255, 177, 0.13), transparent 16rem);
  border: 1px solid rgba(166, 255, 211, 0.2);
  border-radius: 28px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 54px rgba(63, 170, 121, 0.08),
    0 34px 88px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(3px);
}

.story-copy h2 {
  color: #fff7eb;
}

.story-copy p {
  color: rgba(255, 250, 241, 0.86);
}

.story-copy strong {
  color: #ffe0a0;
}

@keyframes coin-drift {
  from {
    background-position: center -120px;
  }

  to {
    background-position: center 420px;
  }
}

@media (max-width: 640px) {
  .story-section {
    min-height: 820px;
    background:
      linear-gradient(180deg, rgba(4, 20, 16, 0.72), rgba(4, 42, 27, 0.46)),
      radial-gradient(circle at 72% 18%, rgba(60, 214, 137, 0.16), transparent 17rem),
      radial-gradient(circle at 22% 28%, rgba(244, 183, 42, 0.1), transparent 16rem),
      url("/public/assets/bernat/mission-intro/zold-kristaly-mobile.webp") center top / cover no-repeat,
      #071714;
  }

  .story-section::before {
    opacity: 0.46;
  }

  .story-section::after {
    inset: -10% -20%;
    opacity: 0.12;
    background-image: url("/public/assets/bernat/mission-intro/hullo-arany-mobile.png");
    background-size: min(620px, 150vw) auto;
    animation-duration: 34s;
  }

  .story-copy {
    width: 100%;
    padding: 22px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-section::after {
    animation: none;
  }
}

/* Bernát bemutató oldal – finomítás: nincs hero fénytörés, nincs alsó arany dekor, mobilon nincs érmeanimáció. */
.mission-hero::before,
.mission-hero::after {
  content: none;
}

.mission-final::before,
.mission-final::after {
  content: none;
}

.story-section::before {
  background: linear-gradient(180deg, rgba(5, 13, 14, 0.12), rgba(5, 13, 14, 0.72));
  mix-blend-mode: normal;
}

@media (max-width: 640px) {
  .story-section::after {
    content: none;
    animation: none;
    background-image: none;
  }
}

/* Bernát bemutató próba – sötétzöld kristály háttér + könnyített, valódi PNG érmék. */
.story-section {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 15, 12, 0.48), rgba(3, 28, 18, 0.14)),
    radial-gradient(circle at 77% 18%, rgba(91, 255, 173, 0.22), transparent 27rem),
    radial-gradient(circle at 18% 72%, rgba(244, 183, 42, 0.14), transparent 25rem),
    url("/public/assets/bernat/mission-intro/sotetzold-fekvo.webp") center / cover no-repeat,
    #061410;
}

.story-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(180deg, rgba(2, 10, 9, 0.08), rgba(2, 10, 9, 0.62)),
    radial-gradient(circle at 50% 45%, rgba(7, 43, 25, 0.02), rgba(0, 0, 0, 0.16));
  mix-blend-mode: normal;
}

.story-section::after {
  content: "";
  position: absolute;
  inset: -18% -8%;
  z-index: 0;
  pointer-events: none;
  width: auto;
  min-width: 0;
  aspect-ratio: auto;
  opacity: 0.32;
  background: url("/public/assets/bernat/mission-intro/hullo-arany-desktop.png") center top / min(1180px, 96vw) auto repeat-y;
  filter:
    saturate(1.05)
    drop-shadow(0 24px 30px rgba(0, 0, 0, 0.36));
  mix-blend-mode: normal;
  animation: coin-drift 24s linear infinite;
}

.story-coin-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
  display: none;
}

.story-coin {
  position: absolute;
  width: clamp(58px, 7.6vw, 112px);
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.34;
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34))
    saturate(1.08);
  transform: translate3d(0, 0, 0) rotate(var(--coin-rotate, 0deg));
  will-change: transform, opacity;
  animation: story-coin-float 18s ease-in-out infinite;
}

.story-coin-a {
  left: 69%;
  top: 9%;
  --coin-rotate: -12deg;
  background-image: url("/public/assets/bernat/mission-intro/coin-a.png");
  animation-delay: -5s;
}

.story-coin-b {
  left: 83%;
  top: 34%;
  --coin-rotate: 14deg;
  background-image: url("/public/assets/bernat/mission-intro/coin-b.png");
  animation-delay: -11s;
}

.story-coin-c {
  left: 61%;
  top: 70%;
  --coin-rotate: 9deg;
  background-image: url("/public/assets/bernat/mission-intro/coin-c.png");
  animation-delay: -2s;
}

.story-coin-d {
  left: 8%;
  top: 62%;
  --coin-rotate: -18deg;
  background-image: url("/public/assets/bernat/mission-intro/coin-d.png");
  animation-delay: -8s;
}

.story-coin-e {
  left: 45%;
  top: 14%;
  --coin-rotate: 22deg;
  background-image: url("/public/assets/bernat/mission-intro/coin-e.png");
  animation-delay: -14s;
}

.story-layout {
  position: relative;
  z-index: 2;
}

.story-copy {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(2, 16, 13, 0.76), rgba(3, 22, 15, 0.5)),
    radial-gradient(circle at 100% 0, rgba(105, 255, 177, 0.18), transparent 15rem);
  border-color: rgba(166, 255, 211, 0.32);
}

.story-copy > * {
  position: relative;
  z-index: 2;
}

@keyframes story-coin-float {
  0%,
  100% {
    opacity: var(--coin-opacity-low, 0.11);
    transform: translate3d(0, -8px, 0) rotate(var(--coin-rotate, 0deg));
  }

  48% {
    opacity: var(--coin-opacity-high, 0.24);
    transform: translate3d(0, 22px, 0) rotate(calc(var(--coin-rotate, 0deg) + 8deg));
  }
}

@media (max-width: 640px) {
  .story-section {
    min-height: 820px;
    background:
      linear-gradient(180deg, rgba(3, 15, 12, 0.34), rgba(3, 28, 18, 0.18)),
      radial-gradient(circle at 72% 12%, rgba(91, 255, 173, 0.22), transparent 16rem),
      radial-gradient(circle at 20% 78%, rgba(244, 183, 42, 0.14), transparent 15rem),
      url("/public/assets/bernat/mission-intro/sotetzold-allo.webp") center top / cover no-repeat,
      #061410;
  }

  .story-section::before {
    opacity: 0.38;
  }

  .story-section::after {
    content: none;
    animation: none;
    background: none;
  }

  .story-layout::before,
  .story-layout::after {
    content: "";
    position: absolute;
    z-index: 4;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter:
      drop-shadow(0 22px 26px rgba(0, 0, 0, 0.42))
      saturate(1.16);
    animation: story-coin-float 15s ease-in-out infinite;
  }

  .story-layout::before {
    right: -20px;
    top: -22px;
    width: clamp(92px, 30vw, 124px);
    aspect-ratio: 1;
    opacity: 0.78;
    --coin-rotate: 10deg;
    --coin-opacity-low: 0.58;
    --coin-opacity-high: 0.86;
    background-image: url("/public/assets/bernat/mission-intro/coin-b.png");
    animation-delay: -4s;
  }

  .story-layout::after {
    left: auto;
    right: -22px;
    bottom: 28px;
    width: clamp(74px, 23vw, 96px);
    aspect-ratio: 1;
    opacity: 0.62;
    --coin-rotate: 16deg;
    --coin-opacity-low: 0.42;
    --coin-opacity-high: 0.68;
    background-image: url("/public/assets/bernat/mission-intro/coin-e.png");
    animation-delay: -10s;
  }

  .story-coin-layer {
    display: block;
    z-index: 1;
  }

  .story-coin {
    width: clamp(72px, 23vw, 104px);
    opacity: 0.4;
    animation-duration: 18s;
  }

  .story-coin-a {
    left: auto;
    right: -16px;
    top: 24px;
  }

  .story-coin-b {
    left: -20px;
    top: 31%;
  }

  .story-coin-c {
    left: auto;
    right: -18px;
    top: 52%;
  }

  .story-coin-d {
    left: -18px;
    top: 70%;
    display: block;
  }

  .story-coin-e {
    left: 58%;
    top: 85%;
    display: block;
  }

  .story-copy {
    background:
      linear-gradient(145deg, rgba(2, 16, 13, 0.74), rgba(3, 22, 15, 0.46)),
      radial-gradient(circle at 100% 0, rgba(105, 255, 177, 0.16), transparent 12rem);
    border-color: rgba(166, 255, 211, 0.36);
  }

}

@media (prefers-reduced-motion: reduce) {
  .story-section::after,
  .story-layout::before,
  .story-layout::after,
  .story-coin {
    animation: none;
  }
}

/* Keep the Lake mission card above the legacy mission-card variants. */
.mission-grid .mission-card.lake-mission-card {
  min-height: 540px;
  padding: 0;
  align-content: stretch;
  color: #f4f7f6;
  background: #06151a;
  border: 1px solid rgba(238, 164, 44, 0.45);
  border-radius: 3px;
  box-shadow: 0 28px 72px rgba(3, 16, 20, 0.38);
  backdrop-filter: none;
}

.mission-grid .mission-card.lake-mission-card::before,
.mission-grid .mission-card.lake-mission-card::after {
  display: block;
}

.mission-grid .mission-card.lake-mission-card::before {
  right: 14px;
  bottom: 14px;
  width: auto;
  height: auto;
  transform: none;
}

.mission-grid .mission-card.lake-mission-card::after {
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  transform: none;
}

.mission-grid .lake-mission-card > .lake-card-video,
.mission-grid .lake-mission-card > .lake-card-shade {
  position: absolute;
  z-index: 0;
}

.mission-grid .lake-mission-card > .lake-card-shade {
  z-index: 1;
}

.mission-grid .lake-mission-card h3 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

@media (max-width: 640px) {
  .mission-grid .mission-card.lake-mission-card {
    min-height: 610px;
  }
}

/* Mission-page system: shared proportions and navigation frame. */
.bernat-mission-page .mission-hero h1,
.lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
  font-size: clamp(3.25rem, 6.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.bernat-mission-page .mission-hero h1 {
  max-width: 930px;
}

.mission-detail-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25);
}

.mission-detail-strip > div {
  display: flex;
  min-width: 0;
  min-height: 128px;
  padding: 22px 25px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.mission-detail-strip > div:last-child {
  border-right: 0;
}

.mission-detail-strip span,
.mission-detail-strip small {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mission-detail-strip strong {
  margin: 6px 0 3px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.lake-detail-strip {
  color: #f2f7ff;
  background: linear-gradient(135deg, #101826, #172844);
  border-color: rgba(77, 148, 255, 0.7);
}

.lake-detail-strip span,
.lake-detail-strip small {
  color: #8bbcff;
}

.bernat-detail-strip {
  color: #fff7eb;
  background: linear-gradient(135deg, #041710, #0b281d);
  border-color: rgba(166, 255, 211, 0.46);
}

.bernat-detail-strip span,
.bernat-detail-strip small {
  color: #a6ffd3;
}

.lake-scroll-cue {
  bottom: 18px;
  padding: 7px 11px;
  color: rgba(219, 231, 247, 0.9);
  background: rgba(8, 18, 31, 0.72);
  border: 1px solid rgba(77, 148, 255, 0.3);
  backdrop-filter: blur(6px);
}

/* The mission identity lives inside the page; navigation stays Kalandro. */
.app-shell:has(.bernat-mission-page) .site-header,
.app-shell:has(.lake-case-page) .site-header {
  color: #fff7eb;
  background: rgba(36, 51, 71, 0.96);
  border-bottom-color: rgba(255, 135, 106, 0.22);
  box-shadow: 0 10px 34px rgba(13, 27, 42, 0.22);
}

.app-shell:has(.bernat-mission-page) .site-footer,
.app-shell:has(.lake-case-page) .site-footer {
  color: #fff7eb;
  background: #243347;
  border-top-color: rgba(255, 135, 106, 0.22);
}

.app-shell:has(.bernat-mission-page) .site-header a,
.app-shell:has(.lake-case-page) .site-header a,
.app-shell:has(.bernat-mission-page) .site-footer a,
.app-shell:has(.lake-case-page) .site-footer a {
  color: inherit;
}

@media (max-width: 850px) {
  .mission-detail-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 28px);
    margin-top: 22px;
  }

  .mission-detail-strip > div {
    min-height: 110px;
    padding: 18px;
  }

  .mission-detail-strip > div:nth-child(2) {
    border-right: 0;
  }

  .mission-detail-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .bernat-mission-page .mission-hero h1,
  .lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
    font-size: clamp(3rem, 15vw, 4.45rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
  }
}

/* Shared vertical rhythm for every selectable mission. */
.mission-grid .mission-card {
  min-width: 0;
}

.mission-grid .mission-card-content,
.mission-grid .lake-card-content.mission-card-content {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  grid-template-rows: auto minmax(132px, auto) minmax(96px, auto) auto auto;
  align-content: center;
  align-items: start;
  gap: 14px;
}

.mission-grid .mission-card-content h3 {
  min-height: 1.15em;
  color: var(--dark-text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.mission-grid .mission-card-content > p {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: #e4edf0;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mission-grid .mission-card-content .mission-meta {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  gap: 8px;
}

.mission-grid .mission-card-content .mission-meta span,
.mission-grid .lake-card-meta span {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--dark-text);
  background: rgba(95, 163, 162, 0.2);
  border: 1px solid rgba(140, 199, 196, 0.42);
  border-radius: 10px 3px 10px 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  backdrop-filter: blur(8px);
}

.mission-grid .mission-card-content .mission-price {
  min-height: 48px;
  margin: 0;
  align-items: baseline;
  align-self: end;
}

.mission-grid .mission-card-content .mission-price strong {
  font-size: 2.2rem;
  line-height: 1;
}

.mission-grid .mission-card-content > .button {
  justify-self: start;
  align-self: end;
}

@media (max-width: 640px) {
  .mission-grid .mission-card-content,
  .mission-grid .lake-card-content.mission-card-content {
    grid-template-rows: auto auto auto auto auto;
    gap: 16px;
  }

  .mission-grid .mission-card-content h3 {
    min-height: 0;
    font-size: clamp(1.8rem, 9vw, 2.55rem);
  }

  .mission-grid .mission-card-content .mission-meta span,
  .mission-grid .lake-card-meta span {
    font-size: 0.82rem;
  }
}

/* Shared mission-detail block: identical content rhythm on every story page. */
.lake-how {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid var(--lake-line);
}

.lake-how-heading {
  display: grid;
  max-width: 820px;
  margin-bottom: 54px;
  gap: 18px;
}

.lake-how-heading .lake-system-label {
  margin-bottom: 0;
}

.lake-how-heading h2 {
  color: #eff5f3;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.lake-how-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(220, 233, 230, 0.7);
  font-size: 1.05rem;
}

.lake-how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lake-how-steps article {
  position: relative;
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  background: rgba(8, 31, 37, 0.72);
  border: 1px solid rgba(103, 216, 206, 0.18);
}

.lake-how-steps article::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid rgba(103, 216, 206, 0.12);
  transform: rotate(45deg);
}

.lake-how-steps article > span {
  display: block;
  margin-bottom: 38px;
  color: var(--lake-amber);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lake-how-steps h3 {
  color: #f0f5f4;
  font-size: 1.45rem;
}

.lake-how-steps p {
  margin-bottom: 0;
  color: rgba(218, 232, 229, 0.66);
  font-size: 0.93rem;
}

.lake-how-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.lake-how-notes span {
  padding: 9px 12px;
  color: rgba(224, 238, 235, 0.7);
  background: rgba(3, 18, 23, 0.42);
  border: 1px solid rgba(103, 216, 206, 0.14);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bernát uses the same digital dossier layout with a glass-workshop skin. */
.bernat-case-page {
  --lake-bg: #04110d;
  --lake-panel: #071d16;
  --lake-line: rgba(151, 239, 193, 0.19);
  --lake-cyan: #a6f5ce;
  --lake-amber: #f4b72a;
  background:
    radial-gradient(circle at 80% 32%, rgba(20, 111, 73, 0.2), transparent 30rem),
    #04110d;
}

.bernat-case-hero {
  background: #030d0a;
}

.bernat-case-page .lake-satellite {
  object-position: center;
  filter: saturate(0.9) contrast(1.04);
}

.bernat-case-page .lake-hero-vignette {
  background:
    linear-gradient(90deg, rgba(1, 10, 7, 0.97) 0%, rgba(2, 15, 11, 0.74) 40%, rgba(2, 13, 9, 0.08) 72%),
    linear-gradient(0deg, #04110d 0%, transparent 28%, rgba(1, 9, 7, 0.2) 100%);
}

.bernat-case-page .lake-scan-line {
  background: linear-gradient(90deg, transparent, rgba(166, 245, 206, 0.2) 15%, #a6f5ce 52%, transparent 88%);
  box-shadow: 0 0 34px 10px rgba(126, 237, 181, 0.12);
}

.bernat-case-page .lake-target {
  top: 55%;
  left: 73%;
  border-color: rgba(166, 245, 206, 0.74);
}

.bernat-case-page .lake-target::before {
  border-color: rgba(166, 245, 206, 0.68);
}

.bernat-case-page .lake-target::after {
  background: rgba(166, 245, 206, 0.68);
}

.bernat-case-page .lake-target span {
  background: #effff7;
  box-shadow: 0 0 8px 4px #80eab4, 0 0 34px 12px rgba(128, 234, 180, 0.48);
}

.bernat-case-page .lake-case-hero h1 em {
  -webkit-text-stroke-color: rgba(166, 245, 206, 0.9);
}

.bernat-case-page .lake-dossier::before {
  content: "GLASS";
  color: rgba(166, 245, 206, 0.03);
}

.bernat-case-page .lake-questions::after {
  display: none;
}

.bernat-case-page .lake-evidence-panel,
.bernat-case-page .lake-how-steps article {
  background: rgba(7, 30, 22, 0.76);
  border-color: rgba(166, 245, 206, 0.19);
}

.bernat-case-page .lake-assignment-inner {
  background:
    linear-gradient(135deg, rgba(8, 42, 29, 0.97), rgba(4, 22, 16, 0.98)),
    #061a13;
  border-color: rgba(166, 245, 206, 0.24);
}

.bernat-case-page .lake-assignment-inner::after {
  content: "B";
  color: rgba(166, 245, 206, 0.045);
}

@media (max-width: 850px) {
  .lake-how-steps {
    grid-template-columns: 1fr;
  }

  .lake-how-steps article {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .lake-how {
    width: calc(100% - 28px);
    padding: 80px 0;
  }

  .lake-how-heading {
    margin-bottom: 36px;
  }

  .lake-how-heading h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .lake-how-steps article {
    padding: 24px;
  }

  .lake-how-steps article > span {
    margin-bottom: 22px;
  }

  .bernat-case-page .lake-satellite {
    object-position: 61% center;
  }

  .bernat-case-page .lake-target {
    top: 30%;
    left: 72%;
  }
}

/* The Lake page keeps its own design while matching Bernát's content blocks. */
.lake-case-page:not(.bernat-case-page) .lake-dossier::before {
  content: "CASE";
}

.lake-case-page:not(.bernat-case-page) .lake-assignment-inner::after {
  content: "";
}

.lake-audience {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid var(--lake-line);
}

.lake-audience-heading {
  max-width: 900px;
  margin-bottom: 50px;
}

.lake-audience-heading h2 {
  color: #eff5f3;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.lake-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lake-audience-grid article {
  min-height: 190px;
  padding: 30px;
  background: rgba(8, 31, 37, 0.72);
  border: 1px solid rgba(103, 216, 206, 0.18);
}

.lake-audience-grid h3 {
  color: #f0f5f4;
  font-size: 1.4rem;
}

.lake-audience-grid p {
  margin-bottom: 0;
  color: rgba(218, 232, 229, 0.66);
}

@media (max-width: 700px) {
  .lake-audience {
    width: calc(100% - 28px);
    padding: 80px 0;
  }

  .lake-audience-heading h2 {
    font-size: clamp(2.2rem, 11vw, 3.25rem);
  }

  .lake-audience-grid {
    grid-template-columns: 1fr;
  }

  .lake-audience-grid article {
    min-height: 0;
    padding: 24px;
  }
}

/* Final mission hero rules: shared CTA logic, story-specific art direction. */
.mission-hero .mission-title-highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.02em;
  color: #b7f4d4;
  font-style: normal;
  text-shadow:
    0 0 18px rgba(126, 237, 181, 0.26),
    0 2px 0 rgba(3, 31, 20, 0.7);
}

.mission-hero .mission-title-highlight::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.05em;
  left: 0;
  height: 0.08em;
  background: linear-gradient(90deg, transparent, #f4b72a 18% 82%, transparent);
  box-shadow: 0 0 14px rgba(244, 183, 42, 0.34);
  transform: rotate(-1.2deg);
}

.story-purchase-action {
  margin-top: 22px;
}

.purchase-status-note {
  display: block;
  margin-top: 10px;
  color: rgba(203, 213, 225, 0.6);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.lake-story-copy .story-purchase-action[disabled] {
  cursor: not-allowed;
  opacity: 0.76;
}

.lake-case-page:not(.bernat-case-page) {
  --lake-bg: #0a0a0c;
  --lake-panel: #101826;
  --lake-line: rgba(59, 130, 230, 0.24);
  --lake-cyan: #3b82e6;
  --lake-amber: #3b82e6;
  background:
    radial-gradient(circle at 82% 34%, rgba(28, 61, 107, 0.32), transparent 32rem),
    #0a0a0c;
}

.app-shell:has(.lake-case-page:not(.bernat-case-page)) .site-header {
  background: rgba(16, 24, 38, 0.92);
  border-bottom-color: rgba(59, 130, 230, 0.34);
}

.app-shell:has(.lake-case-page:not(.bernat-case-page)) .site-footer {
  background: #101826;
  border-top-color: rgba(59, 130, 230, 0.24);
}

.lake-case-page:not(.bernat-case-page) .lake-case-hero {
  background: #0a0a0c;
}

.lake-case-page:not(.bernat-case-page) .lake-hero-vignette {
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.96) 0%, rgba(16, 24, 38, 0.76) 42%, rgba(16, 24, 38, 0.08) 74%),
    linear-gradient(0deg, #0a0a0c 0%, transparent 27%, rgba(10, 10, 12, 0.2) 100%),
    radial-gradient(circle at 58% 56%, transparent 0 22%, rgba(10, 10, 12, 0.36) 72%);
}

.lake-case-page:not(.bernat-case-page) .lake-scan-line {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 230, 0.2) 14%, #3b82e6 52%, transparent 88%);
  box-shadow: 0 0 34px 10px rgba(59, 130, 230, 0.16);
}

.lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 6.2vw, 6.6rem);
  line-height: 0.82;
}

.lake-case-page:not(.bernat-case-page) .lake-case-hero h1 em {
  -webkit-text-stroke-color: #3b82e6;
}

.lake-case-page:not(.bernat-case-page) .lake-lead {
  max-width: 820px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.lake-case-page:not(.bernat-case-page) .lake-target,
.lake-case-page:not(.bernat-case-page) .lake-target::before {
  border-color: rgba(59, 130, 230, 0.78);
}

.lake-case-page:not(.bernat-case-page) .lake-target::after {
  background: rgba(59, 130, 230, 0.75);
}

.lake-case-page:not(.bernat-case-page) .lake-target span {
  background: #cbd5e1;
  box-shadow: 0 0 8px 4px #3b82e6, 0 0 34px 12px rgba(59, 130, 230, 0.5);
}

.lake-case-page:not(.bernat-case-page) .lake-case-strip,
.lake-case-page:not(.bernat-case-page) .lake-evidence-panel {
  background: rgba(16, 24, 38, 0.94);
  border-color: rgba(59, 130, 230, 0.28);
}

.lake-case-page:not(.bernat-case-page) .lake-case-strip > div {
  border-color: rgba(59, 130, 230, 0.18);
}

.lake-case-page:not(.bernat-case-page) .lake-story-copy .lake-dropcap::first-letter,
.lake-case-page:not(.bernat-case-page) .lake-question-grid li span,
.lake-case-page:not(.bernat-case-page) .lake-coordinates b,
.lake-case-page:not(.bernat-case-page) .lake-evidence-panel .status-open {
  color: #3b82e6;
}

.lake-case-page:not(.bernat-case-page) .lake-story-copy blockquote {
  background: linear-gradient(90deg, rgba(59, 130, 230, 0.13), transparent);
  border-left-color: #3b82e6;
}

.lake-case-page:not(.bernat-case-page) .lake-evidence-photo span {
  color: #e8eef7;
  background: #1c3d6b;
}

@media (min-width: 760px) {
  .lake-case-page:not(.bernat-case-page) .lake-lead {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.45rem);
  }

  .lake-case-page:not(.bernat-case-page) .lake-lead {
    max-width: 34rem;
    white-space: normal;
  }

  .mission-hero .mission-title-highlight::after {
    bottom: -0.08em;
  }
}

/* Bernát mission theme: shared layout, mission-owned glass-green visual system. */
.bernat-mission-page {
  color: #edf8f2;
  background:
    radial-gradient(circle at 84% 48%, rgba(33, 124, 79, 0.16), transparent 34rem),
    #03120d;
}

.app-shell:has(.bernat-mission-page) .site-header {
  background: rgba(3, 20, 14, 0.93);
  border-bottom-color: rgba(166, 255, 211, 0.24);
}

.app-shell:has(.bernat-mission-page) .site-footer {
  background: #02100b;
  border-top-color: rgba(166, 255, 211, 0.18);
}

.bernat-mission-page .mission-hero {
  background:
    linear-gradient(90deg, rgba(2, 15, 10, 0.97) 0 43%, rgba(3, 25, 16, 0.66) 67%, rgba(3, 25, 16, 0.2)),
    linear-gradient(180deg, rgba(2, 13, 9, 0.06), rgba(2, 14, 10, 0.76)),
    radial-gradient(circle at 72% 24%, rgba(126, 237, 181, 0.2), transparent 24rem),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #03120d;
}

.bernat-mission-page .dark-info {
  background:
    radial-gradient(circle at 80% 40%, rgba(244, 183, 42, 0.09), transparent 24rem),
    linear-gradient(90deg, #041710, #08231a);
  border-block-color: rgba(166, 255, 211, 0.16);
}

.bernat-mission-page .info-grid div {
  background:
    linear-gradient(145deg, rgba(166, 255, 211, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(5, 30, 21, 0.7);
  border-color: rgba(166, 255, 211, 0.18);
}

.bernat-mission-page .purchase-section {
  color: #edf8f2;
  background:
    radial-gradient(circle at 14% 26%, rgba(244, 183, 42, 0.1), transparent 24rem),
    linear-gradient(180deg, #041710, #08231a);
  border-block: 1px solid rgba(166, 255, 211, 0.12);
}

.bernat-mission-page .purchase-section h2,
.bernat-mission-page .purchase-section p,
.bernat-mission-page .audience-section h2,
.bernat-mission-page .audience-section .section-head > p {
  color: #edf8f2;
}

.bernat-mission-page .purchase-section .eyebrow,
.bernat-mission-page .audience-section .eyebrow {
  color: #f4b72a;
}

.bernat-mission-page .buy-box {
  color: #edf8f2;
  background:
    linear-gradient(145deg, rgba(166, 255, 211, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(4, 27, 18, 0.86);
  border-color: rgba(166, 255, 211, 0.26);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
}

.bernat-mission-page .buy-box strong,
.bernat-mission-page .buy-box span {
  color: #edf8f2;
}

.bernat-mission-page .audience-section {
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background:
    radial-gradient(circle at 78% 18%, rgba(126, 237, 181, 0.12), transparent 26rem),
    #061a12;
}

.bernat-mission-page .audience-item {
  color: #edf8f2;
  background:
    linear-gradient(145deg, rgba(166, 255, 211, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(5, 31, 21, 0.82);
  border-color: rgba(166, 255, 211, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.bernat-mission-page .audience-item h3,
.bernat-mission-page .audience-item p {
  color: #edf8f2;
}

.bernat-mission-page .mission-final {
  background:
    radial-gradient(circle at 74% 34%, rgba(244, 183, 42, 0.12), transparent 24rem),
    linear-gradient(135deg, #062419, #03130d);
  border-top: 1px solid rgba(166, 255, 211, 0.18);
}

.bernat-mission-page .button.primary,
.bernat-mission-page .button.primary.light {
  color: #082118;
  background: #f4b72a;
  border-color: rgba(255, 225, 139, 0.7);
  box-shadow: 0 14px 30px rgba(244, 183, 42, 0.2);
}

.bernat-mission-page .button.primary:hover,
.bernat-mission-page .button.primary.light:hover {
  color: #082118;
  background: #ffd15a;
}

/* Lake mission teaser: police-blue foreshadowing and full-width tape. */
.mission-grid .mission-card.lake-mission-card {
  border-color: #3b82e6;
  box-shadow:
    0 30px 75px rgba(4, 12, 22, 0.46),
    0 0 0 1px rgba(59, 130, 230, 0.18),
    inset 0 1px 0 rgba(203, 213, 225, 0.2);
}

.mission-grid .lake-mission-card::before {
  border-color: rgba(59, 130, 230, 0.48);
  background:
    linear-gradient(#3b82e6, #3b82e6) left top / 38px 2px no-repeat,
    linear-gradient(#3b82e6, #3b82e6) left top / 2px 38px no-repeat,
    linear-gradient(#3b82e6, #3b82e6) right bottom / 38px 2px no-repeat,
    linear-gradient(#3b82e6, #3b82e6) right bottom / 2px 38px no-repeat;
}

.mission-grid .lake-mission-card .mission-meta span,
.mission-grid .lake-mission-card .lake-card-meta span {
  color: #e6edf7;
  background: rgba(28, 61, 107, 0.68);
  border-color: rgba(59, 130, 230, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(203, 213, 225, 0.16),
    0 7px 18px rgba(3, 12, 24, 0.2);
}

.lake-police-tape {
  z-index: 2 !important;
  top: 8px;
  right: -18%;
  width: 136%;
  opacity: 0.92;
  transform: rotate(8deg);
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, 0.42));
}

.mission-grid .lake-card-content {
  z-index: 3;
}

@media (max-width: 640px) {
  .bernat-mission-page .mission-hero {
    background:
      linear-gradient(180deg, rgba(2, 15, 10, 0.96) 0 46%, rgba(3, 25, 16, 0.52) 65%, rgba(2, 15, 10, 0.86)),
      radial-gradient(circle at 70% 40%, rgba(126, 237, 181, 0.18), transparent 16rem),
      url("/public/assets/bernat/mission-intro/lada-romok-mobile.jpg") center bottom / cover no-repeat,
      #03120d;
  }

  .lake-police-tape {
    top: 20px;
    right: -28%;
    width: 160%;
  }
}

/* Readability and ruler pass: one content axis across both mission pages. */
.mission-grid .mission-card.glass-mission {
  background:
    linear-gradient(90deg, rgba(18, 58, 49, 0.98) 0 54%, rgba(20, 65, 54, 0.82) 72%, rgba(31, 91, 76, 0.52)),
    url("/public/assets/generated/crystal-coal-mission-900.jpg") right center / cover;
  border-color: rgba(109, 143, 179, 0.92);
  box-shadow:
    0 30px 75px rgba(4, 12, 22, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 60px rgba(13, 48, 40, 0.2);
}

.mission-grid .glass-crack-video {
  opacity: 0.34;
  filter: contrast(1.16) saturate(1.04);
}

.mission-grid .glass-mission .mission-card-content h3,
.mission-grid .glass-mission .mission-card-content .mission-price strong,
.mission-grid .glass-mission .mission-card-content .mission-price span {
  color: #fff7eb;
}

.mission-grid .glass-mission .mission-card-content > p {
  color: rgba(244, 250, 247, 0.92);
  text-shadow: 0 2px 12px rgba(3, 20, 16, 0.72);
}

.bernat-mission-page,
.lake-case-page:not(.bernat-case-page) {
  --mission-ruler: min(1120px, calc(100% - 32px));
}

.bernat-mission-page .mission-detail-strip,
.lake-case-page:not(.bernat-case-page) .mission-detail-strip {
  width: var(--mission-ruler);
  margin: 34px auto;
}

.lake-case-page:not(.bernat-case-page) .lake-hero-content,
.lake-case-page:not(.bernat-case-page) .lake-dossier,
.lake-case-page:not(.bernat-case-page) .lake-questions,
.lake-case-page:not(.bernat-case-page) .lake-assignment,
.lake-case-page:not(.bernat-case-page) .lake-how {
  width: var(--mission-ruler);
}

.bernat-mission-page .audience-section,
.lake-case-page:not(.bernat-case-page) .audience-section,
.bernat-mission-page .mission-final,
.lake-case-page:not(.bernat-case-page) .mission-final {
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
}

.bernat-mission-page .audience-section .section-head,
.lake-case-page:not(.bernat-case-page) .audience-section .section-head,
.bernat-mission-page .audience-grid,
.lake-case-page:not(.bernat-case-page) .audience-grid,
.bernat-mission-page .mission-final > div,
.lake-case-page:not(.bernat-case-page) .mission-final > div {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 850px) {
  .bernat-mission-page .mission-detail-strip,
  .lake-case-page:not(.bernat-case-page) .mission-detail-strip {
    width: var(--mission-ruler);
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

/* Brand contract: CTA buttons stay Kalandro-coral on every mission. */
.bernat-mission-page .button.primary,
.bernat-mission-page .button.primary.light,
.lake-case-page .button.primary,
.lake-case-page .button.primary.light {
  color: var(--blue);
  background: var(--coral);
  border-color: rgba(255, 196, 181, 0.74);
  box-shadow:
    0 14px 28px rgba(4, 12, 22, 0.24),
    0 6px 14px rgba(255, 135, 106, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.bernat-mission-page .button.primary:hover,
.bernat-mission-page .button.primary.light:hover,
.lake-case-page .button.primary:hover,
.lake-case-page .button.primary.light:hover {
  color: var(--blue);
  background: #ff9a80;
}

.bernat-mission-page .mission-hero h1 {
  text-transform: uppercase;
}

.mission-hero .mission-title-highlight::after {
  content: none;
}

/* Police tape follows the lower-right diagonal indicated in the layout. */
.lake-police-tape {
  z-index: 2 !important;
  top: 58%;
  right: -38%;
  width: 130%;
  opacity: 0.88;
  clip-path: inset(24% 0 56% 0);
  transform: rotate(-38deg);
  transform-origin: center;
}

@media (max-width: 640px) {
  .lake-police-tape {
    top: 60%;
    right: -46%;
    width: 150%;
    transform: rotate(-40deg);
  }
}

.bernat-mission-page .mission-hero h1 {
  max-width: 930px;
  font-size: clamp(3.8rem, 7.6vw, 7.9rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
}

.bernat-story-highlight {
  position: relative;
  margin: 38px 0;
  padding: 26px 30px 26px 38px;
  color: #f4fbf7;
  background: linear-gradient(90deg, rgba(166, 255, 211, 0.12), transparent);
  border-left: 2px solid #a6ffd3;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.28;
  box-shadow: inset 18px 0 34px rgba(126, 237, 181, 0.04);
}

.bernat-story-highlight::before {
  content: "“";
  position: absolute;
  top: -0.22em;
  left: 10px;
  color: rgba(244, 183, 42, 0.58);
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: 1;
}

.lake-police-tape {
  top: auto;
  right: -20%;
  bottom: 54px;
  width: 120%;
  height: 88px;
  max-width: none;
  opacity: 0.92;
  object-fit: cover;
  object-position: center 32%;
  clip-path: none;
  transform: rotate(-30deg);
  transform-origin: center;
}

@media (max-width: 640px) {
  .bernat-mission-page .mission-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
    line-height: 0.8;
  }

  .bernat-story-highlight {
    margin: 30px 0;
    padding: 22px 20px 22px 25px;
    font-size: 1.3rem;
  }

  .lake-police-tape {
    right: -28%;
    bottom: 60px;
    width: 138%;
    height: 74px;
    transform: rotate(-32deg);
  }
}

/* Shared Kalandro mission-card geometry; only the imagery changes per story. */
.lake-police-tape {
  position: absolute !important;
  z-index: 3 !important;
  top: 30px;
  right: -92px;
  width: min(66%, 520px);
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));
  transform: rotate(9deg);
  transform-origin: center;
}

.mission-grid .mission-card.lake-mission-card {
  min-height: 420px;
  padding: clamp(22px, 5vw, 42px);
  align-content: center;
  color: var(--dark-text);
  border: 2px solid rgba(109, 143, 179, 0.9);
  border-radius: 16px 4px 16px 4px;
  box-shadow:
    0 30px 75px rgba(4, 12, 22, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.mission-grid .lake-card-content {
  min-height: 0;
  padding: 0;
  justify-content: center;
}

.mission-grid .lake-mission-card h3 {
  color: var(--dark-text);
  font-size: clamp(1.8rem, 6vw, 3rem);
  text-transform: none;
}

.lake-mission-card .mission-price strong,
.lake-mission-card .mission-price span {
  color: var(--dark-text);
}

.lake-mission-card em {
  display: block;
  margin: 4px 0 18px;
  color: #cbd7dc;
  font-style: italic;
}

.lake-assignment .button.primary[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

@media (min-width: 760px) {
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mission-grid .mission-card.lake-mission-card {
    min-height: 500px;
  }

  .lake-police-tape {
    top: 32px;
    right: -82px;
    width: 82%;
  }
}

/* Final mission-page contract — keep this after mission-specific overrides. */
.bernat-mission-page .mission-hero h1,
.lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
  font-size: clamp(3.25rem, 6.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.bernat-mission-page .mission-hero h1 {
  max-width: 930px;
}

.app-shell:has(.bernat-mission-page) .site-header,
.app-shell:has(.lake-case-page) .site-header {
  color: #fff7eb;
  background: rgba(36, 51, 71, 0.96);
  border-bottom-color: rgba(255, 135, 106, 0.22);
  box-shadow: 0 10px 34px rgba(13, 27, 42, 0.22);
}

.app-shell:has(.bernat-mission-page) .site-footer,
.app-shell:has(.lake-case-page) .site-footer {
  color: #fff7eb;
  background: #243347;
  border-top-color: rgba(255, 135, 106, 0.22);
}

.app-shell:has(.bernat-mission-page) .site-header a,
.app-shell:has(.lake-case-page) .site-header a,
.app-shell:has(.bernat-mission-page) .site-footer a,
.app-shell:has(.lake-case-page) .site-footer a {
  color: inherit;
}

@media (max-width: 640px) {
  .bernat-mission-page .mission-hero h1,
  .lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
    font-size: clamp(2.25rem, 9.5vw, 3.25rem);
    line-height: 1;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
  }
}

/* Mission chrome always stays in the Kalandro brand system. */
.app-shell:has(.lake-case-page:not(.bernat-case-page)) .site-header,
.app-shell:has(.bernat-mission-page) .site-header {
  color: #fff7eb;
  background: #243347;
  border-bottom-color: rgba(255, 135, 106, 0.22);
}

.app-shell:has(.lake-case-page:not(.bernat-case-page)) .site-footer,
.app-shell:has(.bernat-mission-page) .site-footer {
  color: #fff7eb;
  background: #243347;
  border-top-color: rgba(255, 135, 106, 0.22);
}

/* Final start-page poster layer. */
.app-shell:not(.game-mode) .start-screen .start-panel {
  max-width: 1040px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.start-screen .start-mission-picker {
  gap: 14px;
}

.start-screen .start-mission-picker label > span {
  position: relative;
  display: flex;
  min-height: 238px;
  align-items: flex-end;
  overflow: hidden;
  padding: 25px;
  border: 2px solid rgba(255, 247, 235, 0.18);
  border-radius: 14px 4px 14px 4px;
  box-shadow: 0 22px 52px rgba(8, 18, 31, 0.28);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.start-screen .start-mission-picker .bernat-choice > span {
  background:
    linear-gradient(0deg, rgba(2, 19, 13, 0.96), rgba(5, 43, 29, 0.22) 74%),
    linear-gradient(90deg, rgba(3, 28, 19, 0.88), rgba(3, 28, 19, 0.12)),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #08291d;
  border-color: rgba(166, 255, 211, 0.5);
}

.start-screen .start-mission-picker .lake-choice > span {
  background:
    linear-gradient(0deg, rgba(7, 18, 35, 0.97), rgba(18, 49, 88, 0.2) 74%),
    linear-gradient(90deg, rgba(10, 34, 66, 0.86), rgba(10, 34, 66, 0.1)),
    url("/public/assets/lake/to-muhold-kep.png") center / cover no-repeat,
    #142f55;
  border-color: rgba(75, 145, 245, 0.64);
}

.start-screen .start-mission-picker label:hover > span {
  background-size: cover;
  border-color: #ff876a;
  box-shadow: 0 25px 58px rgba(8, 18, 31, 0.36);
  transform: none;
}

.start-screen .start-mission-picker input:checked + span {
  border-color: #ff876a;
  box-shadow:
    inset 0 0 0 2px rgba(255, 135, 106, 0.28),
    0 24px 58px rgba(8, 18, 31, 0.38);
}

.start-screen .start-mission-picker input:checked + span::after {
  content: "✓";
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #243347;
  background: #ff876a;
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 7px 18px rgba(8, 18, 31, 0.3);
}

.start-screen .start-mission-picker label > span strong {
  position: relative;
  z-index: 1;
  max-width: 92%;
  color: #fff7eb;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.15rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (max-width: 619px) {
  .start-screen .start-mission-picker label > span {
    min-height: 168px;
    padding: 20px;
  }

  .start-screen .start-mission-picker label > span strong {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }
}

/* Compact two-step start flow. */
.app-shell:not(.game-mode) .start-screen {
  width: min(900px, calc(100% - 32px));
}

.app-shell:not(.game-mode) .start-screen .start-panel {
  max-width: 900px;
}

.start-screen .start-mission-picker label > span {
  min-height: 168px;
  padding: 20px;
}

.start-screen .start-mission-picker label > span strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.access-code-step {
  display: grid;
  max-width: 650px;
  gap: 10px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 247, 235, 0.14);
}

.access-code-step[hidden] {
  display: none;
}

.start-screen .start-submit {
  min-height: 52px;
  padding: 0 24px;
  color: #243347;
  background: #ff876a;
  border-color: rgba(255, 209, 198, 0.8);
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow:
    0 13px 28px rgba(255, 135, 106, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.start-screen .start-submit:hover,
.start-screen .start-submit:focus-visible {
  color: #243347;
  background: #ff9a80;
  box-shadow:
    0 16px 34px rgba(255, 135, 106, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

@media (max-width: 619px) {
  .start-screen .start-mission-picker label > span {
    min-height: 126px;
    padding: 17px;
  }

  .start-screen .start-mission-picker label > span strong {
    font-size: clamp(1.38rem, 7vw, 1.9rem);
  }

  .start-screen .start-submit {
    width: 100%;
  }
}

/* Homepage mission cards: one mobile title scale and a lower-right tape line. */
.mission-grid .mission-card .mission-card-content h3,
.mission-grid .mission-card.lake-mission-card .lake-card-content h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.mission-grid .mission-card.lake-mission-card {
  overflow: hidden;
}

.mission-grid .mission-card.lake-mission-card .lake-police-tape {
  position: absolute !important;
  z-index: 2 !important;
  top: auto;
  right: auto;
  bottom: -16%;
  left: 15%;
  width: 120%;
  height: auto;
  max-width: none;
  opacity: 0.96;
  object-fit: contain;
  clip-path: none;
  pointer-events: none;
  transform: rotate(-34deg);
  transform-origin: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.38));
}

.mission-grid .mission-card.lake-mission-card .lake-card-content {
  position: relative;
  z-index: 3;
}

@media (max-width: 640px) {
  .mission-grid .mission-card .mission-card-content h3,
  .mission-grid .mission-card.lake-mission-card .lake-card-content h3 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
    line-height: 1.05;
  }

  .mission-grid .mission-card.lake-mission-card .lake-police-tape {
    bottom: 0;
    left: 15%;
    width: 120%;
    transform: rotate(-34deg);
  }
}

/* Final mission theming overrides. */
.mission-grid .mission-card.glass-mission {
  position: relative;
  overflow: hidden;
}

.mission-grid .mission-card.glass-mission::after,
.mission-grid .mission-card.glass-mission .broken-glass-overlay {
  display: none;
}

.mission-grid .glass-crack-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0.43;
  mix-blend-mode: screen;
  filter: brightness(1.12) contrast(1.14) saturate(1.08);
  pointer-events: none;
}

.mission-grid .glass-mission .mission-card-content {
  position: relative;
  z-index: 4;
  max-width: 660px;
  text-shadow: 0 2px 10px rgba(4, 12, 22, 0.42);
}

.bernat-mission-page {
  background:
    radial-gradient(circle at 18% 28%, rgba(166, 255, 211, 0.15), transparent 30rem),
    radial-gradient(circle at 84% 12%, rgba(244, 183, 42, 0.08), transparent 26rem),
    #123a31;
}

.bernat-mission-page .mission-hero {
  background:
    linear-gradient(90deg, rgba(10, 42, 35, 0.92) 0 43%, rgba(18, 58, 49, 0.64) 68%, rgba(18, 58, 49, 0.2)),
    linear-gradient(180deg, rgba(12, 45, 37, 0.04), rgba(11, 40, 33, 0.6)),
    radial-gradient(circle at 72% 24%, rgba(166, 255, 211, 0.22), transparent 24rem),
    url("/public/assets/bernat/mission-intro/lada-romok-desktop.jpg") center / cover no-repeat,
    #123a31;
}

.bernat-mission-page .dark-info,
.bernat-mission-page .purchase-section {
  background:
    radial-gradient(circle at 82% 30%, rgba(166, 255, 211, 0.09), transparent 24rem),
    linear-gradient(135deg, #153f36, #103229);
}

.bernat-mission-page .story-section {
  background:
    linear-gradient(90deg, rgba(17, 58, 48, 0.66), rgba(18, 66, 52, 0.34)),
    radial-gradient(circle at 77% 18%, rgba(123, 241, 181, 0.24), transparent 27rem),
    radial-gradient(circle at 18% 72%, rgba(244, 183, 42, 0.12), transparent 25rem),
    url("/public/assets/bernat/mission-intro/sotetzold-fekvo.webp") center / cover no-repeat,
    #123a31;
}

.bernat-mission-page .story-copy {
  color: #f2f7f4;
  background:
    linear-gradient(145deg, rgba(27, 72, 60, 0.94), rgba(16, 54, 44, 0.91)),
    radial-gradient(circle at 100% 0, rgba(166, 255, 211, 0.17), transparent 16rem);
  border-color: rgba(166, 255, 211, 0.54);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.bernat-mission-page .story-copy h2 {
  color: #fff7eb;
}

.bernat-mission-page .story-copy p {
  color: rgba(240, 248, 243, 0.88);
}

.bernat-mission-page .story-copy .eyebrow {
  color: #f4c24b;
}

.bernat-mission-page .bernat-story-highlight {
  color: #fffaf0;
  background: linear-gradient(90deg, rgba(166, 255, 211, 0.16), rgba(166, 255, 211, 0.04));
  border-left-color: #d5a11b;
  box-shadow: inset 18px 0 34px rgba(126, 237, 181, 0.08);
}

.bernat-mission-page .audience-item,
.lake-case-page:not(.bernat-case-page) .audience-item,
.lake-case-page:not(.bernat-case-page) .lake-audience-grid article {
  border: 2px solid #6d8fb3 !important;
  box-shadow:
    0 18px 42px rgba(4, 12, 22, 0.26),
    0 0 0 1px rgba(109, 143, 179, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.bernat-mission-page .audience-section {
  background:
    radial-gradient(circle at 78% 18%, rgba(166, 255, 211, 0.13), transparent 26rem),
    #123a31;
}

.bernat-mission-page .mission-final {
  background:
    radial-gradient(circle at 74% 34%, rgba(244, 183, 42, 0.1), transparent 24rem),
    linear-gradient(135deg, #17483c, #103229);
}

.lake-case-page:not(.bernat-case-page) > .lake-case-hero .lake-scan-line {
  display: none;
}

.lake-case-page:not(.bernat-case-page)::after {
  content: "";
  position: absolute;
  z-index: 12;
  top: -2%;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 230, 0.34) 14%, #5b9dff 52%, transparent 88%);
  box-shadow: 0 0 34px 10px rgba(59, 130, 230, 0.16);
  animation: lake-page-scan 24s linear infinite;
}

@keyframes lake-page-scan {
  0% {
    top: -2%;
    opacity: 0;
  }

  5% {
    opacity: 0.84;
  }

  90% {
    opacity: 0.72;
  }

  100% {
    top: 101%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mission-grid .glass-crack-video,
  .lake-case-page:not(.bernat-case-page)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .bernat-mission-page .mission-hero {
    background:
      linear-gradient(180deg, rgba(10, 42, 35, 0.91) 0 46%, rgba(18, 58, 49, 0.5) 65%, rgba(11, 40, 33, 0.78)),
      radial-gradient(circle at 70% 40%, rgba(166, 255, 211, 0.2), transparent 16rem),
      url("/public/assets/bernat/mission-intro/lada-romok-mobile.jpg") center bottom / cover no-repeat,
      #123a31;
  }
}

/* Homepage Bernát card: darker mission-green surface and distinct fact chips. */
.mission-grid .mission-card.glass-mission {
  background:
    linear-gradient(90deg, rgba(9, 39, 32, 0.99) 0 55%, rgba(13, 49, 41, 0.9) 73%, rgba(18, 58, 49, 0.66)),
    url("/public/assets/generated/crystal-coal-mission-900.jpg") right center / cover;
  border-color: rgba(109, 143, 179, 0.92);
  box-shadow:
    0 30px 75px rgba(4, 12, 22, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 64px rgba(4, 25, 20, 0.28);
}

.mission-grid .glass-crack-video {
  opacity: 0.3;
  filter: contrast(1.18) saturate(1.04);
}

.mission-grid .glass-mission .mission-card-content h3,
.mission-grid .glass-mission .mission-card-content .mission-price strong,
.mission-grid .glass-mission .mission-card-content .mission-price span {
  color: #fff7eb;
}

.mission-grid .glass-mission .mission-card-content > p {
  color: rgba(246, 251, 248, 0.94);
  text-shadow: 0 2px 12px rgba(2, 18, 14, 0.82);
}

.mission-grid .glass-mission .mission-meta span {
  color: #fffaf2;
  background: rgba(7, 35, 29, 0.94);
  border-color: rgba(166, 218, 198, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(1, 16, 12, 0.3);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

/* Különös baleset – digitális nyomozási UI-vázlat */
.app-shell:has(.lake-game) {
  --lake-ink: #07111f;
  --lake-panel: #0d1b2d;
  --lake-panel-soft: #13253b;
  --lake-blue: #4b91ea;
  --lake-blue-pale: #9dc9ff;
  --lake-amber: #e5a83d;
  --lake-amber-bright: #ffc45b;
  --lake-copy: #eef5fc;
  --lake-muted: #93a7bc;
  min-height: 100vh;
  background: #07111f;
}

.app-shell:has(.lake-game) > .site-header {
  display: none;
}

.lake-game,
.lake-game * {
  box-sizing: border-box;
}

.lake-game {
  min-height: 100vh;
  color: var(--lake-copy);
  background:
    radial-gradient(circle at 76% 8%, rgba(47, 115, 197, 0.18), transparent 34rem),
    linear-gradient(rgba(105, 150, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 150, 196, 0.035) 1px, transparent 1px),
    var(--lake-ink);
  background-size: auto, 42px 42px, 42px 42px, auto;
  font-family: Inter, Arial, sans-serif;
}

.lake-game-bar {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 280px) auto;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 3vw, 46px);
  border-bottom: 1px solid rgba(116, 173, 235, 0.22);
  background: rgba(8, 20, 35, 0.94);
  backdrop-filter: blur(18px);
}

.lake-drawer-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 20px auto;
  gap: 4px 11px;
  align-items: center;
  margin-right: 28px;
  padding: 10px 13px;
  color: var(--lake-copy);
  border: 1px solid rgba(100, 157, 219, 0.38);
  border-radius: 9px;
  background: rgba(24, 52, 82, 0.76);
  cursor: pointer;
}

.lake-drawer-toggle span {
  grid-column: 1;
  width: 19px;
  height: 2px;
  background: var(--lake-blue-pale);
}

.lake-drawer-toggle b {
  grid-column: 2;
  grid-row: 1 / 4;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lake-case-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid rgba(137, 177, 220, 0.2);
}

.lake-case-name small,
.lake-thread-heading small,
.lake-detail-kicker,
.lake-detail-empty > small,
.lake-case-open small {
  color: var(--lake-amber-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.lake-case-name strong {
  font-family: Georgia, serif;
  font-size: 1.12rem;
}

.lake-case-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 24px;
}

.lake-case-progress > span {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(142, 178, 215, 0.16);
}

.lake-case-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lake-blue), var(--lake-amber-bright));
  box-shadow: 0 0 12px rgba(255, 184, 62, 0.5);
}

.lake-case-progress b {
  color: var(--lake-blue-pale);
  font-size: 0.75rem;
}

.lake-exit {
  color: var(--lake-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.lake-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  min-height: calc(100vh - 76px);
}

.lake-investigation-thread {
  min-width: 0;
  padding: clamp(28px, 5vw, 76px) clamp(22px, 6vw, 92px) 72px;
}

.lake-thread-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 46px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(116, 173, 235, 0.18);
}

.lake-thread-heading h1 {
  margin: 7px 0 0;
  color: #f4f7fb;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.lake-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--lake-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lake-live-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lake-amber-bright);
  box-shadow: 0 0 0 6px rgba(229, 168, 61, 0.11), 0 0 18px rgba(229, 168, 61, 0.5);
}

.lake-message-stream {
  display: grid;
  gap: 30px;
  max-width: 820px;
  margin-inline: auto;
}

.lake-investigator-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.lake-investigator-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  color: #061222;
  font-size: 0.8rem;
  font-weight: 900;
  border: 1px solid #9cc9ff;
  border-radius: 50%;
  background: linear-gradient(145deg, #bce1ff, #4e94e9);
  box-shadow: 0 0 32px rgba(75, 145, 234, 0.28);
}

.lake-message-author {
  display: flex;
  gap: 10px;
  margin: 1px 0 7px;
  color: #dceaf8;
  font-size: 0.8rem;
  font-weight: 800;
}

.lake-message-author span,
.lake-message-author time {
  color: var(--lake-muted);
  font-weight: 500;
}

.lake-message-bubble {
  position: relative;
  padding: 21px 23px;
  border: 1px solid rgba(104, 167, 235, 0.3);
  border-radius: 5px 20px 20px 20px;
  background: linear-gradient(145deg, rgba(25, 55, 89, 0.96), rgba(14, 36, 62, 0.96));
  box-shadow: 0 18px 48px rgba(1, 8, 17, 0.28);
}

.lake-message-bubble p {
  margin: 0;
  color: #e8f0f8;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.72;
}

.lake-message-bubble p + p {
  margin-top: 12px;
}

.lake-chat-sequence {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.lake-chat-bubble {
  width: fit-content;
  max-width: min(680px, 100%);
  border-radius: 7px 20px 20px 20px;
}

.lake-chat-bubble + .lake-chat-bubble {
  border-radius: 20px;
}

.lake-chat-bubble.is-arriving,
.lake-investigator-message.is-arriving,
.lake-audio-button.is-arriving {
  animation: lake-message-arrive 420ms cubic-bezier(0.2, 0.82, 0.24, 1.12) both;
}

.lake-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 62px;
  min-height: 38px;
  padding: 11px 15px;
  border: 1px solid rgba(104, 167, 235, 0.26);
  border-radius: 6px 18px 18px 18px;
  background: linear-gradient(145deg, rgba(25, 55, 89, 0.96), rgba(14, 36, 62, 0.96));
  box-shadow: 0 12px 34px rgba(1, 8, 17, 0.25);
  animation: lake-message-arrive 280ms ease-out both;
}

.lake-typing-bubble[hidden] { display: none !important; }

.lake-typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9c7e5;
  animation: lake-typing-dot 1.05s ease-in-out infinite;
}

.lake-typing-bubble i:nth-child(2) { animation-delay: 150ms; }
.lake-typing-bubble i:nth-child(3) { animation-delay: 300ms; }

@keyframes lake-typing-dot {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@keyframes lake-message-arrive {
  from { opacity: 0; transform: translateY(12px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lake-audio-button {
  display: inline-grid;
  grid-template-columns: 30px auto;
  align-items: center;
  gap: 1px 10px;
  margin-top: 13px;
  padding: 9px 14px 9px 9px;
  color: var(--lake-copy);
  border: 1px solid rgba(104, 167, 235, 0.28);
  border-radius: 999px;
  background: rgba(13, 31, 53, 0.82);
  cursor: pointer;
}

.lake-audio-button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  color: #102039;
  border-radius: 50%;
  background: var(--lake-amber-bright);
}

.lake-audio-button b { font-size: 0.76rem; }
.lake-audio-button small { color: var(--lake-muted); font-size: 0.62rem; }
.lake-audio-button.is-playing > span { animation: lake-audio-pulse 1.1s ease-in-out infinite; }

@keyframes lake-audio-pulse {
  50% { transform: scale(0.87); box-shadow: 0 0 0 7px rgba(255, 196, 91, 0.13); }
}

.lake-system-event {
  margin-left: 63px;
  padding: 22px 24px;
  border: 1px solid rgba(229, 168, 61, 0.38);
  border-left: 3px solid var(--lake-amber);
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(90deg, rgba(95, 67, 25, 0.23), rgba(19, 35, 55, 0.84));
}

.lake-system-event > span {
  color: var(--lake-amber-bright);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.lake-system-event h2 {
  margin: 9px 0 8px;
  color: #fff7e8;
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.lake-system-event p { margin: 0 0 17px; color: #b9c8d8; line-height: 1.55; }

.lake-amber-button {
  min-height: 44px;
  padding: 11px 18px;
  color: #112039;
  border: 1px solid #ffd281;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--lake-amber-bright), var(--lake-amber));
  box-shadow: 0 10px 28px rgba(229, 168, 61, 0.18);
  font: 900 0.78rem/1 Inter, Arial, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lake-amber-button:hover,
.lake-amber-button:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }

.lake-detail-pane {
  min-width: 0;
  padding: clamp(28px, 4vw, 62px);
  border-left: 1px solid rgba(116, 173, 235, 0.2);
  background:
    linear-gradient(rgba(12, 29, 49, 0.9), rgba(8, 21, 37, 0.96)),
    url("/public/assets/lake/to-muhold-kep.png") center / cover;
}

.lake-detail-empty {
  position: sticky;
  top: 42px;
  max-width: 440px;
  margin: 9vh auto 0;
  padding: clamp(25px, 4vw, 40px);
  border: 1px solid rgba(99, 158, 221, 0.3);
  border-radius: 16px;
  background: rgba(9, 25, 44, 0.82);
  box-shadow: 0 28px 70px rgba(1, 8, 17, 0.34);
  backdrop-filter: blur(16px);
}

.lake-detail-empty > span { display: block; margin-bottom: 22px; color: var(--lake-blue-pale); font-size: 2rem; }
.lake-detail-empty h2 { margin: 10px 0 13px; color: #f6f8fb; font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; }
.lake-detail-empty p { margin: 0 0 22px; color: #adc0d2; line-height: 1.65; }

.lake-detail-document,
.lake-detail-testimony {
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(105, 164, 227, 0.34);
  border-radius: 16px;
  background: rgba(9, 24, 42, 0.94);
  box-shadow: 0 28px 70px rgba(1, 8, 17, 0.35);
}

.lake-detail-document h2,
.lake-detail-testimony h2 { margin: 9px 0 17px; color: #f6f3ed; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.08; }
.lake-detail-lead { color: #d8e5f1; font-weight: 700; line-height: 1.55; }
.lake-detail-document ul { margin: 22px 0; padding: 0; list-style: none; }
.lake-detail-document li { position: relative; padding: 10px 0 10px 24px; color: #b9c9d9; border-bottom: 1px solid rgba(118, 166, 216, 0.12); line-height: 1.45; }
.lake-detail-document li::before { content: ""; position: absolute; top: 17px; left: 2px; width: 7px; height: 7px; border: 1px solid var(--lake-amber); transform: rotate(45deg); }
.lake-document-note { margin: 24px 0; padding: 17px 18px; border-left: 3px solid var(--lake-blue); background: rgba(47, 103, 166, 0.13); }
.lake-document-note b { color: var(--lake-blue-pale); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lake-document-note p { margin: 8px 0 0; color: #d6e1eb; line-height: 1.55; }
.lake-evidence-image { display: block; width: 100%; max-height: 56vh; margin-top: 20px; border-radius: 9px; object-fit: cover; object-position: center 28%; }
.lake-photo-caption { color: #a7bbcd; line-height: 1.55; }

.lake-witness-heading { display: flex; align-items: center; gap: 17px; }
.lake-witness-heading img { width: 74px; height: 74px; border: 2px solid rgba(105, 164, 227, 0.72); border-radius: 50%; object-fit: cover; }
.lake-detail-testimony blockquote { margin: 24px 0 6px; color: #e8eff6; font-family: Georgia, serif; font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.72; }

.lake-case-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: min(390px, 92vw);
  overflow-y: auto;
  padding: 24px 18px 40px;
  border-right: 1px solid rgba(108, 168, 232, 0.34);
  background: rgba(7, 18, 32, 0.98);
  box-shadow: 26px 0 70px rgba(0, 6, 14, 0.5);
  transform: translateX(-105%);
  transition: transform 260ms ease;
}

.drawer-open .lake-case-drawer { transform: translateX(0); }
.lake-drawer-scrim { position: fixed; inset: 0; z-index: 79; display: none; border: 0; background: rgba(1, 8, 17, 0.7); backdrop-filter: blur(3px); }
.drawer-open .lake-drawer-scrim { display: block; }
.lake-drawer-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 20px; border-bottom: 1px solid rgba(112, 167, 225, 0.2); }
.lake-drawer-heading small { color: var(--lake-blue-pale); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.15em; }
.lake-drawer-heading h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 2.1rem; }
.lake-drawer-heading button { width: 38px; height: 38px; color: #c6d8e8; border: 1px solid rgba(112, 167, 225, 0.26); border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.lake-drawer-section { padding: 20px 0 5px; }
.lake-drawer-label { display: flex; align-items: center; gap: 9px; margin: 0 8px 9px; color: #d7e4f0; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.lake-drawer-label span { color: var(--lake-amber-bright); }
.lake-drawer-label b { margin-left: auto; color: var(--lake-muted); font-size: 0.62rem; }

.lake-file-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 8px;
  color: #edf4fa;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.lake-file-row:hover:not(:disabled),
.lake-file-row:focus-visible { border-color: rgba(95, 159, 227, 0.34); background: rgba(48, 98, 153, 0.15); }
.lake-file-row img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; filter: saturate(0.75); }
.lake-file-row > span:not(.lake-file-icon) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.lake-file-row strong { overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.lake-file-row small { overflow: hidden; color: var(--lake-muted); font-size: 0.64rem; text-overflow: ellipsis; white-space: nowrap; }
.lake-file-row i { color: var(--lake-amber-bright); font-size: 0.56rem; font-style: normal; font-weight: 900; }
.lake-file-row.is-viewed i { color: #82baff; }
.lake-file-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--lake-blue-pale); border: 1px solid rgba(100, 158, 220, 0.26); border-radius: 8px; background: rgba(38, 78, 123, 0.17); font-size: 1.15rem; }
.lake-file-row.is-locked { opacity: 0.48; cursor: not-allowed; }
.lake-locked-copy { margin: 12px 8px; color: #71859a; font-size: 0.72rem; line-height: 1.55; }

.lake-case-open {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 9, 18, 0.82);
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lake-case-open.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.lake-case-open > div { width: min(540px, 100%); padding: clamp(30px, 6vw, 54px); text-align: center; border: 1px solid rgba(106, 170, 238, 0.52); border-radius: 18px; background: linear-gradient(145deg, #10263f, #09182b); box-shadow: 0 36px 100px rgba(0, 5, 13, 0.62); }
.lake-case-open-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid var(--lake-blue); border-radius: 50%; box-shadow: 0 0 0 10px rgba(75, 145, 234, 0.08); }
.lake-case-open-mark i { width: 15px; height: 15px; border-radius: 50%; background: var(--lake-amber-bright); box-shadow: 0 0 24px var(--lake-amber); }
.lake-case-open h2 { margin: 10px 0 14px; color: #fff8ec; font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 3.5rem); text-transform: uppercase; }
.lake-case-open p { margin: 0 auto 25px; color: #b8c9d9; line-height: 1.7; }

@media (max-width: 980px) {
  .lake-game-bar { grid-template-columns: auto 1fr auto; }
  .lake-case-progress { display: none; }
  .lake-game-layout { grid-template-columns: 1fr; }
  .lake-detail-pane { min-height: 60vh; border-top: 1px solid rgba(116, 173, 235, 0.2); border-left: 0; }
  .lake-detail-empty { margin-top: 0; }
}

@media (max-width: 620px) {
  .lake-game-bar { min-height: 68px; padding: 9px 12px; }
  .lake-drawer-toggle { grid-template-columns: 20px; margin-right: 10px; padding: 9px; }
  .lake-drawer-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .lake-case-name { padding-left: 12px; }
  .lake-case-name small { font-size: 0.54rem; letter-spacing: 0.1em; }
  .lake-case-name strong { font-size: 0.95rem; }
  .lake-exit { padding-left: 10px; font-size: 0.65rem; }
  .lake-investigation-thread { padding: 30px 16px 48px; }
  .lake-thread-heading { align-items: start; margin-bottom: 30px; }
  .lake-live-status { margin-top: 5px; font-size: 0; }
  .lake-investigator-message { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .lake-investigator-avatar { width: 38px; }
  .lake-message-bubble { padding: 17px; }
  .lake-system-event { margin-left: 48px; padding: 18px; }
  .lake-detail-pane { padding: 24px 16px 42px; }
  .lake-detail-document,
  .lake-detail-testimony { padding: 23px 19px; }
  .lake-witness-heading img { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .lake-case-drawer,
  .lake-case-open,
  .lake-amber-button { transition: none; }
  .lake-audio-button.is-playing > span { animation: none; }
}

/* Különös baleset – filmes ügyirat finomhangolás */
.lake-game {
  position: relative;
  isolation: isolate;
  overflow: visible;
  overflow-x: clip;
  background: #030a11;
}

.lake-game::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 8, 14, 0.97) 0 16%, rgba(3, 12, 20, 0.76) 44%, rgba(2, 9, 16, 0.9) 100%),
    radial-gradient(circle at 68% 48%, rgba(9, 68, 109, 0.2), transparent 28rem),
    url("/public/assets/lake/to-muhold-kep.png") center / cover;
  filter: saturate(0.8) contrast(1.16) brightness(0.58);
}

.lake-game::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    repeating-linear-gradient(180deg, rgba(127, 185, 234, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(66, 125, 179, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 125, 179, 0.055) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.lake-game-bar,
.lake-game-layout {
  position: relative;
  z-index: 1;
}

/* A tartalmi rács ne hozzon létre saját rétegcsoportot: így a fix Ügyirat
   valóban minden megnyitott vallomás, jelentés és kép fölé kerülhet. */
.lake-game-layout { z-index: auto; }

.lake-game-bar {
  z-index: 60;
  border-bottom-color: rgba(229, 168, 61, 0.36);
  background: rgba(3, 10, 18, 0.94);
  box-shadow: 0 8px 38px rgba(0, 0, 0, 0.35);
}

.lake-drawer-toggle {
  border-color: rgba(229, 168, 61, 0.52);
  border-radius: 2px;
  background: rgba(23, 21, 17, 0.74);
  box-shadow: inset 3px 0 0 var(--lake-amber);
}

.lake-drawer-toggle span { background: var(--lake-amber-bright); }
.lake-case-name small { color: var(--lake-amber-bright); }
.lake-case-name strong { letter-spacing: 0.04em; text-transform: uppercase; }

.lake-investigation-thread {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(2, 9, 15, 0.84), rgba(4, 16, 27, 0.36));
}

.lake-investigation-thread::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(20px, 3.5vw, 58px);
  width: 1px;
  background: linear-gradient(transparent, rgba(229, 168, 61, 0.55) 12% 78%, transparent);
  box-shadow: 0 0 14px rgba(229, 168, 61, 0.2);
}

.lake-thread-heading,
.lake-message-stream {
  position: relative;
  z-index: 2;
}

.lake-thread-heading {
  border-bottom-color: rgba(229, 168, 61, 0.4);
}

.lake-thread-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 88px;
  height: 2px;
  background: var(--lake-amber-bright);
  box-shadow: 0 0 18px rgba(255, 196, 91, 0.88);
}

.lake-thread-heading h1 {
  color: #f0eee9;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-stretch: condensed;
  letter-spacing: 0.015em;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.lake-thread-heading small {
  color: var(--lake-amber-bright);
  text-shadow: 0 0 16px rgba(229, 168, 61, 0.48);
}

.lake-map-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(28deg, transparent 0 53%, rgba(229, 168, 61, 0.18) 53.1% 53.25%, transparent 53.35%),
    linear-gradient(154deg, transparent 0 62%, rgba(55, 137, 226, 0.18) 62.1% 62.25%, transparent 62.35%);
}

.lake-radar-target {
  position: absolute;
  top: 21%;
  right: 7%;
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid rgba(64, 146, 239, 0.76);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(64, 146, 239, 0.12), inset 0 0 28px rgba(64, 146, 239, 0.08);
  animation: lake-radar-breathe 3.4s ease-in-out infinite;
}

.lake-radar-target::before,
.lake-radar-target::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(64, 146, 239, 0.66);
  border-radius: 50%;
}

.lake-radar-target::after {
  inset: 49%;
  width: 160%;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(64, 146, 239, 0.72);
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(-42deg);
}

.lake-radar-target i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9acaff;
  box-shadow: 0 0 8px #7bb7ff, 0 0 30px 12px rgba(62, 143, 239, 0.62);
  transform: translate(-50%, -50%);
}

.lake-radar-target b {
  position: absolute;
  inset: -13px;
  border-right: 1px solid rgba(64, 146, 239, 0.5);
  border-radius: 50%;
  animation: lake-radar-spin 8s linear infinite;
}

.lake-map-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--lake-amber-bright);
  border-radius: 50%;
  background: #1d1609;
  box-shadow: 0 0 0 7px rgba(229, 168, 61, 0.1), 0 0 24px rgba(229, 168, 61, 0.74);
}
.lake-map-node.node-a { top: 34%; right: 34%; }
.lake-map-node.node-b { top: 55%; right: 18%; }
.lake-map-node.node-c { top: 72%; right: 43%; }

@keyframes lake-radar-spin { to { transform: rotate(360deg); } }
@keyframes lake-radar-breathe { 50% { transform: scale(1.06); opacity: 0.82; } }

.lake-message-bubble {
  border-color: rgba(109, 163, 216, 0.28);
  border-radius: 2px 16px 16px 16px;
  background: linear-gradient(135deg, rgba(12, 31, 49, 0.96), rgba(4, 15, 26, 0.9));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(188, 222, 249, 0.06);
}

.lake-audio-button {
  border-color: rgba(229, 168, 61, 0.36);
  border-radius: 2px;
  background: rgba(7, 17, 28, 0.9);
}
.lake-audio-button > span { box-shadow: 0 0 20px rgba(255, 196, 91, 0.46); }

.lake-report-arrival {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-left: 63px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 168, 61, 0.62);
  border-left: 3px solid var(--lake-amber-bright);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(39, 29, 13, 0.94), rgba(5, 16, 27, 0.96));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.4), 0 0 24px rgba(229, 168, 61, 0.08);
  animation: lake-report-arrival 620ms cubic-bezier(0.2, 0.78, 0.25, 1) both;
}

.lake-report-arrival-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--lake-amber-bright);
  border: 1px solid rgba(229, 168, 61, 0.5);
  background: rgba(229, 168, 61, 0.08);
  font-size: 1.3rem;
  box-shadow: inset 0 0 18px rgba(229, 168, 61, 0.08);
}

.lake-report-arrival strong {
  color: #f8edd9;
  font: 800 0.88rem/1.2 "Arial Narrow", Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lake-report-arrival button,
.lake-report-arrival a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 10px 13px;
  color: var(--lake-amber-bright);
  border: 0;
  border-bottom: 1px solid rgba(229, 168, 61, 0.5);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

@keyframes lake-report-arrival {
  from { opacity: 0; transform: translateX(-180px); }
  to { opacity: 1; transform: translateX(0); }
}

.lake-detail-pane {
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 76px);
  border-left-color: rgba(229, 168, 61, 0.32);
  background: linear-gradient(135deg, rgba(4, 13, 22, 0.72), rgba(2, 8, 14, 0.94));
  box-shadow: -26px 0 70px rgba(0, 0, 0, 0.26);
}

.lake-detail-pane::before,
.lake-detail-pane::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
}
.lake-detail-pane::before { top: 18px; left: 18px; border-top: 1px solid var(--lake-amber); border-left: 1px solid var(--lake-amber); }
.lake-detail-pane::after { right: 18px; bottom: 18px; border-right: 1px solid var(--lake-amber); border-bottom: 1px solid var(--lake-amber); }

.lake-detail-empty,
.lake-detail-document,
.lake-detail-testimony {
  border-color: rgba(229, 168, 61, 0.3);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(8, 23, 37, 0.94), rgba(2, 11, 19, 0.94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), inset 0 0 50px rgba(45, 112, 175, 0.04);
}

.lake-detail-radar {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 26px !important;
  border: 1px solid rgba(65, 148, 239, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(65, 148, 239, 0.14);
}
.lake-detail-radar::before { content: ""; position: absolute; inset: 15px; border: 1px dashed rgba(65, 148, 239, 0.56); border-radius: 50%; }
.lake-detail-radar i { width: 9px; height: 9px; border-radius: 50%; background: #9acaff; box-shadow: 0 0 18px 8px rgba(65, 148, 239, 0.56); }

.lake-report-viewer {
  position: relative;
  max-width: 680px;
  padding: 22px;
}

.lake-detail-pane.report-open .lake-report-viewer {
  animation: lake-report-panel-in 520ms cubic-bezier(0.2, 0.78, 0.25, 1) both;
}

@keyframes lake-report-panel-in {
  from { opacity: 0; transform: translateX(-120px) rotate(-0.7deg); }
  to { opacity: 1; transform: translateX(0) rotate(0); }
}

.lake-report-viewer-heading { padding-right: 44px; }
.lake-report-viewer-heading h2 { margin-bottom: 15px; font-size: clamp(1.25rem, 2vw, 1.75rem); text-transform: uppercase; }
.lake-report-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; color: #e6d7be; border: 1px solid rgba(229, 168, 61, 0.38); background: #07111c; font-size: 1.35rem; cursor: pointer; }
.lake-report-image { display: block; width: 100%; max-height: 72vh; margin-bottom: 18px; border: 1px solid rgba(194, 206, 216, 0.3); object-fit: contain; background: #06101a; box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45); }

.lake-case-drawer {
  border-right-color: rgba(229, 168, 61, 0.48);
  background:
    repeating-linear-gradient(180deg, rgba(120, 176, 223, 0.025) 0 1px, transparent 1px 4px),
    rgba(3, 11, 19, 0.99);
}
.lake-drawer-heading { border-bottom-color: rgba(229, 168, 61, 0.34); }
.lake-drawer-heading small,
.lake-drawer-label span { color: var(--lake-amber-bright); }
.lake-file-row:hover:not(:disabled),
.lake-file-row:focus-visible { border-color: rgba(229, 168, 61, 0.36); background: rgba(229, 168, 61, 0.06); }

.lake-case-open > div {
  border-color: rgba(229, 168, 61, 0.58);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 20%, rgba(41, 119, 186, 0.18), transparent 18rem),
    linear-gradient(145deg, #071724, #030b14);
}
.lake-case-open-mark { border-color: var(--lake-blue); }
.lake-case-open-mark i { background: var(--lake-amber-bright); box-shadow: 0 0 12px var(--lake-amber), 0 0 40px 16px rgba(229, 168, 61, 0.38); }

@media (max-width: 980px) {
  .lake-detail-pane { max-height: none; }
  .lake-radar-target { top: 12%; right: -15px; transform: scale(0.72); }
}

@media (max-width: 620px) {
  .lake-game-bar {
    position: sticky;
    top: 0;
    z-index: 70;
    width: 100%;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .lake-case-drawer {
    height: 100dvh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .lake-thread-heading h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .lake-map-node.node-a { right: 20%; }
  .lake-radar-target { opacity: 0.48; }
  .lake-report-arrival { grid-template-columns: 36px minmax(0, 1fr); margin-left: 48px; }
  .lake-report-arrival-icon { width: 36px; height: 36px; }
  .lake-report-arrival button,
  .lake-report-arrival a { grid-column: 2; justify-self: start; padding-left: 0; }
  .lake-report-image { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lake-radar-target,
  .lake-radar-target b,
  .lake-report-arrival,
  .lake-detail-pane.report-open .lake-report-viewer,
  .lake-chat-bubble.is-arriving,
  .lake-investigator-message.is-arriving,
  .lake-audio-button.is-arriving,
  .lake-typing-bubble,
  .lake-typing-bubble i { animation: none; }
}

/* Ügyiratállapotok: csak a már megszerzett elemek láthatók. */
.lake-drawer-workspace {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: calc(100vh - 110px);
}

.lake-icon-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 10px 20px 0;
  border-right: 1px solid rgba(229, 168, 61, 0.22);
}

.lake-icon-nav button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 66px;
  padding: 7px 3px;
  color: #80baff;
  border: 1px solid rgba(70, 145, 228, 0.22);
  border-radius: 2px;
  background: rgba(15, 42, 69, 0.18);
  cursor: pointer;
}

.lake-icon-nav button:hover,
.lake-icon-nav button:focus-visible,
.lake-icon-nav button.is-active {
  color: #b8dbff;
  border-color: rgba(75, 151, 238, 0.74);
  background: rgba(36, 95, 157, 0.24);
  box-shadow: inset 2px 0 0 #4d9cf5, 0 0 24px rgba(66, 143, 230, 0.1);
}

.lake-icon-nav button > span {
  font: 400 1.45rem/1 Arial, sans-serif;
}

.lake-icon-nav button small {
  max-width: 64px;
  overflow: hidden;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.lake-case-notification,
.lake-nav-notification {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #081523;
  border-radius: 50%;
  background: #ff4b4b;
  box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.13), 0 0 14px rgba(255, 75, 75, 0.72);
}

.lake-case-notification { top: -5px; right: -5px; }
.lake-nav-notification { top: 7px; right: 7px; }
.lake-case-notification[hidden],
.lake-nav-notification[hidden] { display: none !important; }

.lake-overlay-photo .lake-evidence-image {
  max-height: 68vh;
  object-fit: contain;
  background: #020a12;
}

.lake-last-photo-note {
  padding-left: 12px;
  color: #ffd27f;
  border-left: 2px solid var(--lake-amber);
}

.lake-current-task-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 12px 8px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(75, 151, 238, 0.5);
  border-left: 3px solid var(--lake-blue);
  background: linear-gradient(135deg, rgba(25, 66, 108, 0.32), rgba(5, 17, 29, 0.92));
  box-shadow: inset 0 1px 0 rgba(176, 216, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.lake-task-history {
  display: grid;
  gap: 10px;
}

.lake-current-task-card.is-active {
  border-color: rgba(75, 151, 238, 0.76);
  border-left-color: #4b97ee;
  background: linear-gradient(135deg, rgba(29, 86, 145, 0.46), rgba(5, 17, 29, 0.94));
  box-shadow: inset 0 1px 0 rgba(176, 216, 255, 0.1), 0 0 26px rgba(55, 143, 239, 0.2), 0 14px 30px rgba(0, 0, 0, 0.24);
}

.lake-current-task-card.is-active .lake-current-task-icon {
  color: #9bcaff;
  border-color: rgba(75, 151, 238, 0.7);
  background: rgba(75, 151, 238, 0.12);
  box-shadow: 0 0 16px rgba(75, 151, 238, 0.24);
}

.lake-current-task-card.is-complete {
  opacity: 0.5;
  border-color: rgba(135, 151, 166, 0.22);
  border-left-color: rgba(135, 151, 166, 0.45);
  background: rgba(7, 17, 26, 0.58);
  box-shadow: none;
}

.lake-current-task-card.is-complete .lake-current-task-icon {
  color: #8c9aa7;
  border-color: rgba(140, 154, 167, 0.3);
  background: rgba(140, 154, 167, 0.06);
}

.lake-current-task-card.is-complete small,
.lake-current-task-card.is-complete b {
  color: #8c9aa7;
}

.lake-current-task-icon {
  grid-row: 1 / 5;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--lake-amber-bright);
  border: 1px solid rgba(229, 168, 61, 0.5);
  background: rgba(229, 168, 61, 0.08);
}

.lake-current-task-card small {
  color: #84bcfb;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.lake-current-task-card strong {
  color: #f4f7fa;
  font-size: 0.9rem;
  line-height: 1.25;
}

.lake-current-task-card p {
  margin: 0;
  color: #9eb2c6;
  font-size: 0.7rem;
  line-height: 1.52;
}

.lake-current-task-card b {
  justify-self: start;
  padding-top: 7px;
  color: var(--lake-amber-bright);
  border-top: 1px solid rgba(229, 168, 61, 0.25);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lake-current-task-surface > b {
  display: inline-flex;
  padding: 8px 11px;
  color: #9bcaff;
  border: 1px solid rgba(75, 151, 238, 0.42);
  background: rgba(75, 151, 238, 0.09);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lake-photo-row.is-viewed {
  border-color: rgba(75, 151, 238, 0.32);
  background: rgba(49, 111, 175, 0.08);
}

.lake-photo-carousel {
  width: min(780px, 100%);
}

.lake-photo-carousel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.lake-photo-carousel-heading h2 {
  margin-top: 7px;
}

.lake-photo-carousel-heading > span {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--lake-amber-bright);
  border: 1px solid rgba(229, 168, 61, 0.38);
  font: 800 0.68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.lake-photo-carousel-stage {
  display: grid;
  min-height: min(58dvh, 620px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(75, 151, 238, 0.3);
  background: #020911;
}

.lake-photo-carousel-stage .lake-evidence-image {
  width: 100%;
  height: min(58dvh, 620px);
  max-height: none;
  margin: 0;
  object-fit: contain;
}

.lake-photo-carousel-controls {
  display: grid;
  grid-template-columns: minmax(94px, auto) 1fr minmax(94px, auto);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.lake-photo-carousel-controls button {
  min-height: 44px;
  padding: 10px 13px;
  color: var(--lake-amber-bright);
  border: 1px solid rgba(229, 168, 61, 0.42);
  background: rgba(229, 168, 61, 0.07);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.lake-photo-carousel-controls button:last-child {
  justify-self: end;
}

.lake-photo-carousel-controls button:disabled {
  opacity: 0.28;
  cursor: default;
}

.lake-photo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.lake-photo-carousel-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(115, 166, 218, 0.32);
}

.lake-photo-carousel-dots i.is-active {
  background: var(--lake-amber-bright);
  box-shadow: 0 0 12px rgba(229, 168, 61, 0.65);
}

@media (max-width: 620px) {
  .lake-photo-carousel {
    padding: 18px 14px 16px;
  }

  .lake-photo-carousel-heading h2 {
    font-size: 1.5rem;
  }

  .lake-photo-carousel-stage,
  .lake-photo-carousel-stage .lake-evidence-image {
    height: min(52dvh, 480px);
    min-height: 0;
  }

  .lake-photo-carousel-controls {
    grid-template-columns: 48px 1fr 48px;
  }

  .lake-photo-carousel-controls button {
    width: 48px;
    padding: 8px;
    font-size: 1rem;
  }

  .lake-photo-carousel-controls button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

.lake-drawer-panels {
  min-width: 0;
  padding: 20px 0 20px 14px;
}

.lake-drawer-panels [hidden],
.lake-icon-nav [hidden] {
  display: none !important;
}

.lake-followup-message {
  margin-top: 8px;
  animation: lake-followup-in 420ms ease-out both;
}

.lake-followup-message .lake-amber-button {
  margin-top: 14px;
  text-transform: uppercase;
}

@keyframes lake-followup-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* A kék helyzetjelzők forognak; nincs pulzáló méretváltozás. */
.lake-radar-target {
  animation: lake-radar-spin 13s linear infinite;
}

.lake-radar-target b {
  animation: lake-radar-spin-reverse 7s linear infinite;
}

@keyframes lake-radar-spin-reverse {
  to { transform: rotate(-360deg); }
}

.lake-case-open-mark {
  position: relative;
  border-color: #4d9cf5;
  box-shadow: 0 0 0 10px rgba(77, 156, 245, 0.08), 0 0 28px rgba(77, 156, 245, 0.16);
  animation: lake-radar-spin 8s linear infinite;
}

.lake-case-open-mark::before,
.lake-case-open-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(77, 156, 245, 0.72);
  border-radius: 50%;
}

.lake-case-open-mark::before { inset: 9px; border-style: dashed; }
.lake-case-open-mark::after { inset: -12px; border-left-color: transparent; border-bottom-color: transparent; }

.lake-case-open-mark i {
  width: 10px;
  height: 10px;
  background: #9bcdff;
  box-shadow: 0 0 10px #6baef7, 0 0 34px 12px rgba(66, 143, 230, 0.52);
}

@media (max-width: 620px) {
  .lake-drawer-workspace { grid-template-columns: 66px minmax(0, 1fr); }
  .lake-icon-nav { padding-right: 8px; }
  .lake-icon-nav button { min-height: 60px; }
  .lake-icon-nav button small { font-size: 0.49rem; }
  .lake-drawer-panels { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .lake-radar-target,
  .lake-radar-target b,
  .lake-case-open-mark,
  .lake-followup-message { animation: none; }
}

/* Az ügyirat elemei ráúsznak a beszélgetésre, nem külön oszlopban nyílnak. */
.lake-case-overlay[hidden] {
  display: none;
}

.lake-case-overlay {
  position: fixed;
  inset: 76px 0 0;
  z-index: 44;
  overflow: hidden;
}

.lake-case-overlay-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 5, 11, 0.78);
  backdrop-filter: blur(5px);
  transition: opacity 300ms ease;
}

.lake-case-overlay-sheet {
  position: absolute;
  inset: 0 auto 0 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(960px, calc(100vw - 180px));
  border-right: 1px solid rgba(229, 168, 61, 0.62);
  background:
    repeating-linear-gradient(180deg, rgba(113, 176, 231, 0.026) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 76% 18%, rgba(44, 122, 193, 0.16), transparent 24rem),
    #030c15;
  box-shadow: 34px 0 90px rgba(0, 0, 0, 0.72);
  transform: translateX(-104%);
  transition: transform 340ms cubic-bezier(0.2, 0.78, 0.25, 1);
}

.lake-case-overlay.is-open .lake-case-overlay-scrim { opacity: 1; }
.lake-case-overlay.is-open .lake-case-overlay-sheet { transform: translateX(0); }

.lake-case-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid rgba(83, 155, 226, 0.28);
  background: rgba(2, 9, 16, 0.94);
}

.lake-case-overlay-bar > span {
  color: #80baff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lake-case-overlay-bar button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  color: #f5e5ca;
  border: 1px solid rgba(229, 168, 61, 0.5);
  background: rgba(47, 35, 16, 0.42);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.lake-case-overlay-bar button b {
  color: var(--lake-amber-bright);
  font-size: 1.2rem;
  line-height: 0.7;
}

.lake-case-overlay-content {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 46px);
  scrollbar-color: rgba(76, 150, 230, 0.6) rgba(5, 15, 25, 0.7);
}

.lake-overlay-report,
.lake-overlay-photo,
.lake-overlay-testimony {
  width: min(720px, 100%);
  margin-inline: auto;
}

.lake-overlay-report {
  padding: 10px;
  border: 1px solid rgba(104, 158, 209, 0.28);
  background: rgba(5, 15, 25, 0.88);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.56);
}

.lake-overlay-report .lake-report-image {
  width: 100%;
  max-height: none;
  margin: 0;
}

.lake-overlay-photo,
.lake-overlay-testimony {
  padding: clamp(23px, 4vw, 42px);
  border: 1px solid rgba(229, 168, 61, 0.36);
  background: linear-gradient(145deg, rgba(8, 25, 41, 0.98), rgba(3, 12, 21, 0.98));
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.52);
}

.lake-overlay-photo h2,
.lake-overlay-testimony h2 {
  margin: 7px 0 0;
  color: #f3f0ea;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.lake-testimony-reading-note {
  margin: 28px 0 8px;
  color: var(--lake-amber-bright);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lake-overlay-testimony blockquote {
  margin: 0;
  padding: 22px 0 2px;
  color: #edf3f8;
  border-top: 1px solid rgba(85, 154, 224, 0.28);
  font-family: Georgia, serif;
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
  line-height: 1.78;
}

.lake-overlay-testimony .lake-audio-button {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .lake-case-overlay-sheet { width: min(850px, calc(100vw - 54px)); }
}

@media (max-width: 620px) {
  .lake-case-overlay { top: 68px; }
  .lake-case-overlay-sheet { width: 100%; }
  .lake-case-overlay-content { padding: 14px; }
  .lake-overlay-report { padding: 4px; }
  .lake-overlay-testimony { padding: 22px 18px 28px; }
  .lake-overlay-testimony blockquote { font-size: 1.04rem; line-height: 1.72; }
}

@media (prefers-reduced-motion: reduce) {
  .lake-case-overlay-scrim,
  .lake-case-overlay-sheet { transition: none; }
}

/* Küldetés-hero igazítás: a két bemutatóoldal ugyanarról a függőleges
   tengelyről indul, miközben a saját vizuális világuk megmarad. */
.bernat-mission-page .mission-hero,
.lake-case-page:not(.bernat-case-page) .lake-case-hero {
  min-height: min(820px, calc(100svh - 72px));
}

.bernat-mission-page .mission-hero {
  align-items: start;
  padding-top: clamp(76px, 10vh, 112px);
  padding-bottom: 72px;
}

.bernat-mission-page .mission-hero .hero-grid {
  align-items: start;
}

.lake-case-page:not(.bernat-case-page) .lake-hero-content {
  min-height: min(820px, calc(100svh - 72px));
  padding-top: clamp(76px, 10vh, 112px);
  padding-bottom: 72px;
  justify-content: flex-start;
}

.lake-case-page:not(.bernat-case-page) .lake-subline {
  max-width: 690px;
  margin: 14px 0 0;
  color: rgba(229, 238, 246, 0.72);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.62;
}

.bernat-mission-page .mission-hero .hero-actions .button,
.lake-case-page:not(.bernat-case-page) .lake-hero-actions .button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  font-size: 0.96rem;
  line-height: 1;
}

/* Ugyanaz a kék, forgó helyzetjelző a küldetésoldalon és a játékban. */
.lake-case-page:not(.bernat-case-page) .lake-target,
.lake-game .lake-radar-target {
  border-color: rgba(77, 156, 245, 0.86);
  box-shadow: 0 0 32px rgba(77, 156, 245, 0.18), inset 0 0 28px rgba(77, 156, 245, 0.1);
  animation: lake-radar-spin 12s linear infinite;
}

.lake-case-page:not(.bernat-case-page) .lake-target::before,
.lake-game .lake-radar-target::before {
  border-color: rgba(77, 156, 245, 0.72);
}

.lake-case-page:not(.bernat-case-page) .lake-target::after,
.lake-game .lake-radar-target::after {
  border-color: #4d9cf5;
  background: #4d9cf5;
}

.lake-case-page:not(.bernat-case-page) .lake-target span,
.lake-game .lake-radar-target i {
  background: #b9dbff;
  box-shadow: 0 0 10px #6baef7, 0 0 34px 12px rgba(66, 143, 230, 0.58);
}

@media (max-width: 640px) {
  .bernat-mission-page .mission-hero,
  .lake-case-page:not(.bernat-case-page) .lake-case-hero {
    min-height: calc(100svh - 68px);
  }

  .bernat-mission-page .mission-hero {
    padding: 0 17px;
  }

  .bernat-mission-page .mission-hero .hero-grid,
  .lake-case-page:not(.bernat-case-page) .lake-hero-content {
    min-height: calc(100svh - 68px);
    padding: 34px 0 32px;
  }

  .bernat-mission-page .mission-hero .hero-grid { width: 100%; }
  .lake-case-page:not(.bernat-case-page) .lake-hero-content { width: calc(100% - 34px); }

  .bernat-mission-page .mission-hero .hero-copy,
  .lake-case-page:not(.bernat-case-page) .lake-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .bernat-mission-page .mission-hero .hero-copy {
    min-height: 0;
  }

  .bernat-mission-page .mission-hero h1,
  .lake-case-page:not(.bernat-case-page) .lake-case-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.035em;
  }

  .lake-case-page:not(.bernat-case-page) .lake-lead {
    margin-top: 22px;
  }

  .lake-case-page:not(.bernat-case-page) .lake-subline {
    max-width: 31rem;
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .bernat-mission-page .mission-hero .hero-actions,
  .lake-case-page:not(.bernat-case-page) .lake-hero-actions {
    width: 100%;
    margin-top: 26px;
  }

  .bernat-mission-page .mission-hero .hero-actions .button,
  .lake-case-page:not(.bernat-case-page) .lake-hero-actions .button {
    width: min(100%, 360px);
    min-height: 56px;
    padding: 15px 24px;
    font-size: 1rem;
  }

  .lake-case-page:not(.bernat-case-page) .lake-hero-actions > span {
    display: none;
  }

  .lake-case-page:not(.bernat-case-page) .lake-target {
    top: 64%;
    left: 78%;
    width: 94px;
    opacity: 0.92;
  }

  .lake-game .lake-radar-target {
    z-index: 1;
    top: 26px;
    right: 18px;
    width: 92px;
    opacity: 0.9;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lake-case-page:not(.bernat-case-page) .lake-target,
  .lake-game .lake-radar-target,
  .lake-game .lake-radar-target b {
    animation: none;
  }
}

/* Mobilos dokumentumnézet: a nagyítható jelentés ne maradjon drága,
   transzformált és elmosott kompozit rétegen az alkalmazáson belüli böngészőkben. */
@media (max-width: 620px) {
  .lake-case-overlay-scrim {
    backdrop-filter: none;
    background: rgba(0, 5, 11, 0.9);
  }

  .lake-case-overlay.is-open .lake-case-overlay-sheet {
    transform: none;
    animation: lake-mobile-document-in 340ms cubic-bezier(0.2, 0.78, 0.25, 1) both;
  }

  .lake-case-overlay-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .lake-overlay-report {
    box-shadow: none;
  }

  .lake-overlay-report .lake-report-image {
    height: auto;
    max-width: 100%;
    touch-action: pan-x pan-y pinch-zoom;
    box-shadow: none;
  }

  .lake-game.case-overlay-open .lake-map-network {
    display: none;
  }
}

@keyframes lake-mobile-document-in {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lake-case-overlay.is-open .lake-case-overlay-sheet {
    animation: none;
  }
}

/* Önálló mobilos dokumentumnézet: nincs modal, fixed réteg, transzformáció,
   backdrop-filter vagy háttéranimáció, ezért a WebKit natív nagyítása stabil. */
.app-shell:has(.lake-standalone-document) > .site-header,
.app-shell:has(.lake-standalone-document) > .site-footer {
  display: none;
}

.app-shell:has(.lake-standalone-document) {
  min-height: 100vh;
  background: #02080e;
}

.lake-standalone-document {
  min-height: 100vh;
  padding: 0 0 36px;
  color: #eef5fc;
  background: #02080e;
  touch-action: pan-x pan-y pinch-zoom;
}

.lake-document-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(77, 156, 245, 0.34);
  background: #071522;
}

.lake-document-toolbar div {
  display: grid;
  gap: 4px;
}

.lake-document-toolbar small {
  color: #80baff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.lake-document-toolbar strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.lake-document-toolbar button,
.lake-document-bottom-close {
  min-height: 42px;
  padding: 10px 14px;
  color: #17283d;
  border: 1px solid #ffcdbf;
  border-radius: 6px;
  background: #ff876a;
  font-weight: 900;
  cursor: pointer;
}

.lake-document-canvas {
  width: 100%;
  padding: 10px;
  background: #02080e;
  touch-action: pan-x pan-y pinch-zoom;
}

.lake-document-canvas img {
  display: block;
  width: min(100%, 1024px);
  height: auto;
  margin: 0 auto;
  background: #fff;
  touch-action: pan-x pan-y pinch-zoom;
}

.lake-document-bottom-close {
  display: block;
  margin: 20px auto 0;
}

.lake-document-toolbar .lake-document-close-x {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  place-items: center;
  color: #ffc45b;
  border: 1px solid rgba(255, 196, 91, 0.62);
  border-radius: 50%;
  background: #071522;
  box-shadow: 0 0 18px rgba(229, 168, 61, 0.12);
  font: 400 1.75rem/1 Arial, sans-serif;
}

.lake-document-bottom-close {
  color: #ffc45b;
  border-color: rgba(255, 196, 91, 0.58);
  background: #0b1d30;
  box-shadow: none;
}
