/* ==========================================================================
   1. BETŰTÍPUSOK
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');


/* ==========================================================================
   2. VÁLTOZÓK
   ========================================================================== */
:root {
  color-scheme: dark;

  --bg:     #101a23;
  --panel:  #17232e;
  --line:   #ffffff18;
  --muted:  #a4afb5;
  --paper:  #f0ede5;
  --gold:   #d2ad69;
  --ink:    #20303c;
  --danger: #df997d;

  --font:  'DM Sans', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}


/* ==========================================================================
   3. ALAP / RESET
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}

button:disabled {
  opacity: .45;
  cursor: default;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

a {
  color: var(--gold);
}

button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   4. FEJLÉC / TOPBAR
   ========================================================================== */
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5%;
  background: #101a23f5;
  position: relative;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-word {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 700;
}

.brand-word span {
  color: var(--gold);
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.2px;
  color: var(--muted);
  margin-top: 3px;
}

.brand-placeholder {
  border: 1px dashed #d2ad6944;
  padding: 8px 13px;
}

/* --- Logó: nagyobb méret, arany keret, ovális --- */
.brand-img {
  max-width: 200px;
  max-height: 62px;
  width: auto;
  height: auto;
  border: 1px solid #D4AF37;
  padding: 0;
  border-radius: 999px;
  object-fit: contain;
  display: block;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .15s;
}

.brand-link:hover {
  opacity: .85;
}

.brand-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.top-case {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: #ffffff0d;
  border-color: #d2ad6966;
}


/* ==========================================================================
   5. START / NYITÓKÉPERNYŐ
   ========================================================================== */
.start {
  min-height: calc(100svh - 82px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  isolation: isolate;
}

/* Előtöltött háttér: gradiens lassú mobilneten is látszik */
.start:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -4;
  background: radial-gradient(circle at 76% 36%, #314654 0, #1b2c37 29%, #101a23 72%);
}

.start-img {
  position: absolute;
  inset: 0;
  background: var(--scene-image) 70% center / cover;
  z-index: -3;
  opacity: .28;
  transition: opacity .5s ease;
}

.hero-ready .start-img {
  opacity: 1;
}

.start:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #101a23 3%, #101a23ed 25%, #101a2370 60%, #101a2314),
    linear-gradient(0deg, #101a23 0%, transparent 35%);
  z-index: -2;
}

.start-copy {
  padding: 8vh 0 60px 9%;
  max-width: 650px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  line-height: 1.6;
  color: var(--gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow:before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.start h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 1.03;
  margin: 30px 0;
}

.start h1 span {
  color: var(--gold);
}

.start-deck {
  font-size: 19px;
  line-height: 1.7;
  color: #c2c8cc;
  max-width: 365px;
}

.start-rule {
  margin: 28px 0;
  width: 55px;
  height: 1px;
  background: #d2ad6980;
}

.start-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #c1c7ca;
  margin: 0 0 32px;
}

.start-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.start-meta svg {
  width: 17px;
  height: 17px;
}

.start-fine {
  font-size: 12px;
  color: #aab4ba;
  line-height: 1.8;
  margin-top: 22px;
  max-width: 360px;
}

.start-file {
  align-self: end;
  justify-self: end;
  margin: 0 9% 70px 0;
  border-left: 1px solid #d2ad6977;
  padding-left: 18px;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 2;
  color: #d9d9d5;
}

.start-file b {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 400;
  display: block;
}


/* ==========================================================================
   6. GOMBOK
   ========================================================================== */
.primary {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #15222e;
  padding: 17px 23px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 54px;
}

.primary:hover {
  background: #e4c38d;
}

.start .primary {
  min-width: 290px;
}

.secondary {
  border: 1px solid #ffffff30;
  background: transparent;
  padding: 14px 20px;
  min-height: 48px;
}

.secondary:hover {
  border-color: var(--gold);
}

.subtle {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 13px 0;
  font-size: 14px;
}


/* ==========================================================================
   7. FŐ ELRENDEZÉS
   ========================================================================== */
.layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr) 276px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 82px);
}

/* --- Oldalsáv --- */
.sidebar {
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
}

.side-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #788993;
  padding: 0 12px;
  margin: 10px 0 20px;
}

.nav-btn {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 15px 13px;
  width: 100%;
  font-size: 14px;
  color: #aebac1;
  margin-bottom: 4px;
  border-radius: 3px;
  position: relative;
}

.nav-btn.active {
  background: #d2ad6912;
  color: var(--gold);
}

.nav-btn.active:before {
  content: '';
  position: absolute;
  left: -18px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--gold);
}

.nav-btn:hover {
  background: #ffffff08;
}

.badge {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid #ffffff25;
  padding: 2px 5px;
  min-width: 24px;
  text-align: center;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.saved {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a3b7ae;
}

.saved svg {
  width: 15px;
  height: 15px;
}

/* --- Középső tartalom --- */
.game-main {
  min-width: 0;
  padding-bottom: 50px;
}

/* --- Jobb sáv --- */
.rightbar {
  padding: 33px 23px;
  border-left: 1px solid var(--line);
  position: sticky;
  top: 0;
  align-self: start;
}

.rightbar h2 {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--muted);
  margin: 3px 0 22px;
}

.status-clock {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: 2px;
}

.status-caption {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.rightbar hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}

.risk {
  display: flex;
  gap: 5px;
  margin: 12px 0;
}

.risk span {
  height: 4px;
  flex: 1;
  background: #34414a;
}

.risk .on {
  background: var(--gold);
}

.risk.high .on {
  background: var(--danger);
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 13px 0;
}

.stat-row b {
  color: var(--gold);
  font-weight: 500;
}

.objective {
  border-left: 2px solid var(--gold);
  padding-left: 13px;
  font-size: 14px;
  line-height: 1.7;
  color: #d0d6d7;
}

.recent-clue {
  background: transparent;
  border: 0;
  display: flex;
  gap: 11px;
  text-align: left;
  padding: 10px 0;
  width: 100%;
  align-items: center;
}

.recent-icon {
  width: 35px;
  height: 40px;
  background: #d2ad6912;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.recent-icon svg {
  width: 18px;
  height: 18px;
}

.recent-clue b {
  font-size: 12px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
}

.recent-clue small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.mobile-status,
.mobile-nav {
  display: none;
}


/* ==========================================================================
   8. JELENET (scene)
   ========================================================================== */
.scene-hero {
  height: 245px;
  background:
    linear-gradient(0deg, #101a23, transparent 80%),
    var(--scene-image) center 51% / cover;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px 8%;
}

.scene-hero .eyebrow {
  color: #eed2a2;
  font-size: 11px;
}

.hero-number {
  position: absolute;
  right: 8%;
  top: 32px;
  font-family: var(--serif);
  font-size: 60px;
  color: #e9d8b126;
  line-height: 1;
}

.scene-body {
  padding: 0 8%;
}

.chapter-line {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 18px;
}

.scene-body h1 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  font-size: clamp(32px, 3vw, 47px);
  letter-spacing: -.8px;
  margin: 0 0 27px;
}

.prose p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.85;
  color: #d8dcd9;
  margin: 0 0 20px;
}

.prose p:first-child:first-letter {
  font-size: 1.25em;
  color: #ede0c8;
}

.new-clues {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}

.clue-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #d2ad690b;
  border: 1px solid #d2ad6933;
  padding: 8px 10px;
  color: #d8bb86;
  font-size: 12px;
  text-align: left;
}

.clue-chip svg {
  width: 15px;
  height: 15px;
}


/* ==========================================================================
   9. DÖNTÉSEK
   ========================================================================== */
.decision-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 32px 0 15px;
}

.decision-label:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  width: 100%;
  border: 1px solid #7d8c943b;
  background: #17232c;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  padding: 17px 18px;
  min-height: 62px;
  color: #e0e3df;
  line-height: 1.5;
  transition: background .15s, border-color .15s, transform .15s;
}

.choice:hover {
  border-color: #d2ad6980;
  background: #1d2b35;
  transform: translateX(2px);
}

.choice-index {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
  min-width: 22px;
}

.choice .arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}

.choice-visited {
  font-size: 11px;
  display: block;
  color: #86989c;
}


/* ==========================================================================
   10. ÁLTALÁNOS OLDALAK
   ========================================================================== */
.page {
  padding: 42px 7%;
}

.page h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  margin: 8px 0 10px;
}

.page-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.section-title {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1.5px;
  margin: 30px 0 16px;
  text-transform: uppercase;
}


/* ==========================================================================
   11. BIZONYÍTÉKTÁR
   ========================================================================== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.evidence-card {
  padding: 0;
  border: 1px solid var(--line);
  background: #17232d;
  text-align: left;
  overflow: hidden;
}

.evidence-card .card-label,
.suspect-card .card-label {
  padding: 18px;
}

.card-label small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.card-label h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  margin: 8px 0;
  line-height: 1.3;
}

.card-label p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}


/* ==========================================================================
   12. ARTIFACT (dokumentumok, térképek, hanganyagok)
   ========================================================================== */
.artifact {
  background: #e6e1d5;
  color: #293742;
  padding: 26px;
  min-height: 190px;
  position: relative;
  font-family: Georgia, serif;
  border: 1px solid #c3bfb4;
  box-shadow: 0 8px 25px #0002;
}

.artifact .artifact-tag {
  font: 10px var(--font);
  letter-spacing: 2px;
  color: #697475;
  border-bottom: 1px solid #29374240;
  padding-bottom: 12px;
}

.artifact h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 18px 0 15px;
}

.artifact p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

.artifact .stamp {
  font: 10px var(--font);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #896334;
  border: 1px solid #89633477;
  display: inline-block;
  padding: 5px 8px;
  margin-top: 18px;
}

/* --- Fénykép --- */
.artifact.photo {
  padding: 10px;
  background: #c4bca8;
}

.artifact.photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.artifact.photo figcaption {
  padding: 12px;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Kamera --- */
.artifact.camera {
  background: #14292d;
  color: #b6d0ca;
  border-color: #597775;
  padding: 24px;
}

.camera .camera-top {
  font: 11px var(--font);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff30;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.camera-frames {
  display: grid;
  gap: 10px;
}

.camera-frame {
  font-family: var(--font);
  font-size: 13px;
  padding: 12px;
  background: #ffffff08;
  border-left: 2px solid #90b2a0;
}

.camera small {
  display: block;
  color: #9cafa9;
  font: 11px var(--font);
  margin-top: 16px;
}

.cctv-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  border: 1px solid #91aca633;
}

/* --- Telefon --- */
.artifact.phone {
  background: #202c35;
  color: #e1e4df;
  border-color: #627078;
  font-family: var(--font);
}

.phone .bubble {
  padding: 18px;
  background: #34434a;
  border-radius: 12px 12px 12px 0;
  line-height: 1.8;
  font-size: 15px;
  margin-top: 20px;
}

/* --- Hang --- */
.artifact.audio {
  background: #1d2b34;
  color: var(--paper);
  font-family: var(--font);
  border-color: #d2ad6933;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
  overflow: hidden;
  margin: 18px 0;
}

.wave i {
  display: block;
  width: 3px;
  background: var(--gold);
  flex-shrink: 0;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 13px;
}

.audio-controls button {
  border: 1px solid #d2ad6960;
  background: #d2ad6910;
  color: var(--gold);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.audio-controls small {
  font-size: 12px;
  color: var(--muted);
}

.audio p {
  font-family: var(--font);
  font-size: 14px;
  margin-top: 15px;
}

.audio details {
  margin-top: 15px;
  font-size: 13px;
  color: #ced3d3;
}

/* --- Kézzel írt --- */
.artifact.handwriting {
  background: #e6dfcf;
  background-image: repeating-linear-gradient(transparent, transparent 29px, #55677625 30px);
  font-style: italic;
}

/* --- Tárgy / kulcs --- */
.artifact.object,
.artifact.key {
  background: #d9d2bf;
}

.catalog-mark {
  font-family: var(--serif);
  font-size: 48px;
  color: #817252;
  margin: 20px 0;
  line-height: 1;
}

.catalog-meta {
  font: 10px var(--font);
  letter-spacing: 2px;
  color: #6e6757;
}

/* --- Mini változat --- */
.mini .artifact {
  height: 168px;
  min-height: 168px;
  overflow: hidden;
  padding: 18px;
}

.mini .artifact h3 {
  font-size: 18px;
}

.mini .artifact p {
  font-size: 12px;
}

.mini .artifact.photo {
  padding: 8px;
}

.mini .artifact.photo img {
  height: 145px;
  object-fit: cover;
}

.mini .artifact.audio .wave {
  margin: 15px 0;
}

.mini .artifact .audio-controls,
.mini .artifact details,
.mini .artifact figcaption {
  display: none;
}

.mini .artifact .catalog-mark {
  font-size: 45px;
  margin: 16px 0;
}

.mini .cctv-image {
  height: 90px;
  object-fit: cover;
}

.mini .camera-top {
  margin-bottom: 10px;
  padding-bottom: 8px;
  font-size: 8px;
}

.mini .camera-frames {
  display: none;
}

.inline-art {
  margin: 28px 0;
  max-width: 100%;
}

/* --- Térkép --- */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding-top: 15px;
}

.map-room {
  border: 1px solid #677476;
  min-height: 65px;
  display: grid;
  place-items: center;
  font: 12px var(--font);
  text-align: center;
  padding: 8px;
  line-height: 1.6;
  background: #eff0e744;
}

.map-lake {
  text-align: center;
  font: 11px var(--font);
  letter-spacing: 3px;
  padding: 13px;
  border-bottom: 2px solid #607f89;
  color: #45616c;
  margin-top: 14px;
}

.map-path {
  text-align: center;
  font: 12px var(--font);
  margin-top: 13px;
  color: #56696d;
  line-height: 1.8;
}


/* ==========================================================================
   13. GYANÚSÍTOTTAK
   ========================================================================== */
.suspect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.suspect-card {
  background: #17232d;
  border: 1px solid var(--line);
  padding: 0;
  text-align: left;
}

.suspect-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 27%;
  filter: saturate(.72);
}

.suspect-card .card-label h3 {
  margin: 0 0 7px;
}

.suspect-detail-head {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 25px;
}

.suspect-detail-head img {
  width: 110px;
  height: 138px;
  object-fit: cover;
}

.suspect-detail-head h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 9px;
}

.profile-field {
  border-top: 1px solid var(--line);
  padding: 17px 0;
  font-size: 15px;
  line-height: 1.8;
}

.profile-field small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  color: var(--gold);
  margin-bottom: 6px;
}

.profile-field.locked {
  color: #85969f;
}


/* ==========================================================================
   14. FELADVÁNYOK
   ========================================================================== */
.puzzle {
  margin: 28px 0;
  border: 1px solid #d2ad6955;
  background: #1b2832;
  padding: 24px;
}

.puzzle h2 {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 18px;
}

.puzzle-instruction {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.puzzle-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #101c26;
  border: 1px solid #77889444;
  width: 100%;
  padding: 15px;
  margin-bottom: 9px;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  min-height: 50px;
}

.puzzle-option.selected {
  border-color: var(--gold);
  background: #d2ad6910;
}

.selector {
  width: 17px;
  height: 17px;
  border: 1px solid #83949a;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.selected .selector {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #101c26;
  border: 1px solid #77889433;
  padding: 11px 10px;
  margin: 8px 0;
}

.order-row .num {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--gold);
}

.order-row .order-text {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.order-controls {
  display: flex;
  gap: 3px;
}

.order-controls button {
  border: 1px solid #ffffff20;
  background: transparent;
  min-width: 37px;
  min-height: 42px;
  display: grid;
  place-items: center;
}

.order-controls svg {
  width: 16px;
  height: 16px;
}

.code-input {
  width: 100%;
  background: #101c26;
  border: 1px solid #7f909b66;
  font-size: 28px;
  letter-spacing: 8px;
  padding: 16px;
  color: var(--paper);
  text-align: center;
  margin: 10px 0 18px;
}

.puzzle .primary {
  margin-top: 12px;
  width: 100%;
  font-size: 14px;
}

.hint-toggle {
  border: 0;
  background: none;
  color: #c7b38a;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 14px;
  min-height: 44px;
}

.hint-toggle svg {
  width: 17px;
  height: 17px;
}

.hint-text {
  font-size: 13px;
  line-height: 1.8;
  color: #c3beb1;
  background: #d2ad6908;
  padding: 12px 14px;
  border-left: 2px solid #d2ad6960;
  margin: 12px 0 0;
}

.feedback {
  font-size: 14px;
  line-height: 1.6;
  color: #edb797;
  margin: 15px 0 0;
}


/* ==========================================================================
   15. ÜGYÁLLÁS / JEGYZETEK
   ========================================================================== */
.notes-text {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  line-height: 1.8;
  border: 1px solid #61717c66;
  background: #17242e;
  color: var(--paper);
  padding: 17px;
  font-size: 15px;
}

.note-fact {
  border-left: 2px solid #d2ad6966;
  padding: 12px 15px;
  margin: 10px 0;
  background: #ffffff03;
  font-size: 14px;
  line-height: 1.8;
}

.history-list {
  padding: 0;
  list-style: none;
}

.history-list li {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 14px;
  display: flex;
  gap: 18px;
}

.history-list time {
  font-size: 12px;
  color: var(--gold);
  min-width: 44px;
}

.inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory span {
  font-size: 13px;
  padding: 8px 12px;
  background: #ffffff06;
  border: 1px solid var(--line);
}


/* ==========================================================================
   16. BEFEJEZÉS
   ========================================================================== */
.ending-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
  border: 1px solid #d2ad6940;
}

.ending-summary div {
  padding: 20px 10px;
  text-align: center;
}

.ending-summary b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  font-weight: 400;
}

.ending-summary span {
  font-size: 11px;
  color: var(--muted);
}

.ending-actions {
  display: grid;
  gap: 10px;
}

.ending-kicker {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  margin: 20px 0;
}

/* --- Befejezés utáni ajánlat --- */
.ending-promo {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--gold);
  background: var(--panel);
  border-radius: 4px;
}

.ending-promo h2 {
  font-family: var(--font);
  font-size: 24px;
  line-height: 1.35;
  margin: 16px 0;
}

.ending-promo p {
  font-size: 16px;
  line-height: 1.7;
}

.ending-promo strong {
  color: var(--gold);
}

.ending-promo .primary {
  text-decoration: none;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.ending-promo .primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.promo-code {
  letter-spacing: 1px;
}


/* ==========================================================================
   17. MODAL
   ========================================================================== */
.modal {
  border: 1px solid #586773;
  max-width: 660px;
  width: calc(100% - 32px);
  background: #14212b;
  color: var(--paper);
  padding: 0;
  max-height: 88svh;
  box-shadow: 0 20px 100px #0008;
}

.modal::backdrop {
  background: #030b12c9;
  backdrop-filter: blur(5px);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 24px;
  position: sticky;
  top: 0;
  background: #14212bf7;
  border-bottom: 1px solid var(--line);
  z-index: 1;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.modal-body {
  padding: 25px;
}

.modal-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.35;
}

.modal-body p {
  line-height: 1.85;
  color: #c4cdcf;
  font-size: 15px;
}

.modal-body .artifact p {
  color: inherit;
}

.modal-body .artifact h3 {
  margin-top: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}


/* ==========================================================================
   18. EGYÉB
   ========================================================================== */
.empty {
  padding: 40px 24px;
  border: 1px dashed #81909855;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.notice {
  border-left: 2px solid var(--danger);
  background: #df997d08;
  color: #e3c3b3;
  padding: 14px;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
}

.docs details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.docs summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 15px;
  line-height: 1.6;
}

.docs p,
.docs li {
  font-size: 14px;
  line-height: 1.9;
  color: #b8c3c8;
}

.docs code {
  font-size: 12px;
  color: var(--gold);
}

.help-source {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.help-source summary {
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
}

.help-source .artifact {
  margin-top: 16px;
}

/* --- Ügy három kérdése --- */
.case-questions {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
}

.case-question {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid #b89a5545;
  border-radius: 8px;
  background: #d6b8690a;
}

.case-question small {
  color: #d7b668;
  font-size: 14px;
  flex-shrink: 0;
}

.case-question b {
  font-size: 16px;
  line-height: 1.4;
}

.case-question p {
  font-size: 14px;
  line-height: 1.6;
  opacity: .8;
  margin: 5px 0 0;
}

.case-question.done {
  border-color: #b89a5580;
}

/* --- Checkpoint tábla --- */
.checkpoint-board {
  display: grid;
  gap: 12px;
  margin: 28px 0 34px;
}

.checkpoint-block {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #17242e;
}

.checkpoint-block.certain {
  border-left: 3px solid #8eb6a4;
}

.checkpoint-block.conflict {
  border-left: 3px solid var(--danger);
}

.checkpoint-block.unknown {
  border-left: 3px solid #7f909b;
}

.checkpoint-block.next {
  border-left: 3px solid var(--gold);
  background: #d2ad690c;
}

.checkpoint-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.checkpoint-block ul {
  margin: 0;
  padding-left: 19px;
}

.checkpoint-block li {
  font-size: 14px;
  line-height: 1.7;
  color: #d2d8d7;
  margin: 6px 0;
}

.checkpoint-block.next li {
  color: #f0e1c8;
}

/* --- Checkpoint jelenet --- */
.checkpoint-scene .scene-hero {
  min-height: 270px;
  background:
    linear-gradient(0deg, #101a23 4%, #101a2366 64%, #101a2322),
    var(--scene-image) center 51% / cover;
}

.checkpoint-seal {
  position: absolute;
  right: 8%;
  bottom: 27px;
  border: 1px solid #d2ad6990;
  background: #101a23d9;
  color: var(--gold);
  padding: 9px 12px;
  font-size: 11px;
  letter-spacing: 2px;
}

.checkpoint-kicker {
  display: inline-block;
  margin: 9px 0 18px;
  padding: 8px 11px;
  border: 1px solid #d2ad6970;
  background: #d2ad690b;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
}

.checkpoint-resume {
  border-color: #d2ad6990;
  background: #d2ad6912;
}

.checkpoint-resume .choice-index {
  font-family: var(--font);
  font-size: 14px;
}

/* --- Checkpoint guide toggle --- */
.checkpoint-guide-toggle {
  width: 100%;
  min-height: 54px;
  border: 1px dashed #d2ad6960;
  background: #d2ad6906;
  color: #d4c5a8;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.checkpoint-guide-toggle:hover {
  border-style: solid;
  background: #d2ad690d;
}

.checkpoint-guide-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.checkpoint-guide-toggle b {
  color: var(--gold);
  font-weight: 600;
}

/* --- Toast --- */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 20;
  background: #e0c18a;
  color: #17222d;
  padding: 12px 20px;
  box-shadow: 0 5px 25px #0005;
  font-size: 14px;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* ==========================================================================
   19. ANIMÁCIÓK
   ========================================================================== */
.view-enter {
  animation: fadeIn .28s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================================================
   20. RESZPONZÍV – nagy képernyő (1600px+)
   ========================================================================== */
@media (min-width: 1600px) {
  .scene-hero {
    height: 280px;
  }
}


/* ==========================================================================
   21. RESZPONZÍV – 1366px alatt (kisebb laptop)
   ========================================================================== */
@media (max-width: 1366px) {
  .layout {
    grid-template-columns: 180px minmax(0, 1fr) 235px;
  }

  .sidebar {
    padding: 25px 12px;
  }

  .nav-btn {
    font-size: 13px;
    padding: 14px 9px;
    gap: 8px;
  }

  .scene-body {
    padding: 0 6%;
  }

  .rightbar {
    padding: 30px 18px;
  }

  .scene-hero {
    padding-left: 6%;
  }

  .top-case {
    display: none;
  }

  .prose p {
    font-size: 17px;
  }

  .start-copy {
    padding-left: 9%;
  }

  .start h1 {
    font-size: 80px;
  }
}


/* ==========================================================================
   22. RESZPONZÍV – 1024px alatt (tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .rightbar {
    display: none;
  }

  .mobile-status {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 6%;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    background: #14212a;
  }

  .mobile-status b {
    color: var(--gold);
    font-weight: 500;
  }

  .scene-hero {
    height: 210px;
  }

  .start {
    grid-template-columns: 1.3fr .7fr;
  }

  .start-file {
    display: none;
  }

  .start h1 {
    font-size: 78px;
  }
}


/* ==========================================================================
   23. RESZPONZÍV – 767px alatt (mobil)
   ========================================================================== */
@media (max-width: 767px) {
  /* --- Fejléc --- */
  .topbar {
    height: 68px;
    padding: 0 20px;
  }

  .brand-word {
    font-size: 20px;
  }

  .brand-placeholder {
    padding: 5px 9px;
  }

  .brand small {
    font-size: 8px;
    letter-spacing: 1.7px;
  }

  /* --- Logó mobilon: kisebb --- */
  .brand-img {
  max-width: 130px;
  max-height: 40px;
  padding: 0;
  border-radius: 999px;
}

  .top-actions {
    gap: 6px;
  }

  .icon-btn {
    height: 40px;
    min-width: 40px;
  }

  /* --- Start --- */
  .start {
    min-height: calc(100svh - 68px);
    display: block;
  }

  .start-img {
    background-position: 64% center;
  }

  .start:after {
    background:
      linear-gradient(90deg, #101a23e8, #101a2366),
      linear-gradient(0deg, #101a23 1%, #101a2377 65%, #101a230a);
  }

  .start-copy {
    padding: 50px 25px 45px;
    max-width: 100%;
  }

  .start h1 {
    font-size: 70px;
    letter-spacing: -2.8px;
    margin: 26px 0;
  }

  .start-deck {
    font-size: 17px;
    max-width: 295px;
  }

  .start-meta {
    gap: 17px;
    font-size: 12px;
    margin: 24px 0;
  }

  .start .primary {
    width: 100%;
  }

  .start-fine {
    font-size: 11px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  /* --- Layout --- */
  .layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .game-main {
    padding-bottom: 105px;
  }

  .mobile-status {
    padding: 12px 20px;
    font-size: 11px;
    position: relative;
  }

  .scene-hero {
    height: 175px;
    padding: 23px 23px;
    background-position: center 45%;
  }

  .scene-body {
    padding: 0 23px;
  }

  .scene-body h1 {
    font-size: 35px;
    margin-bottom: 23px;
  }

  .chapter-line {
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }

  .hero-number {
    font-size: 48px;
    right: 23px;
    top: 26px;
  }

  .prose p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 20px;
  }

  .choice {
    padding: 15px 14px;
    gap: 12px;
    font-size: 14px;
    min-height: 62px;
  }

  .choice-index {
    font-size: 18px;
  }

  .choice:hover {
    transform: none;
  }

  .decision-label {
    margin-top: 28px;
    font-size: 10px;
  }

  .clue-chip {
    font-size: 11px;
    line-height: 1.6;
  }

  /* --- Mobil alsó navigáció --- */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #14212bf7;
    backdrop-filter: blur(12px);
    border-top: 1px solid #b5b09a33;
    z-index: 4;
    justify-content: space-around;
  }

  .mobile-nav button {
    background: none;
    border: 0;
    color: #8799a3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    min-height: 44px;
    min-width: 65px;
    position: relative;
  }

  .mobile-nav button.active {
    color: var(--gold);
  }

  .mobile-nav button.active:before {
    content: '';
    position: absolute;
    top: -9px;
    width: 28px;
    height: 2px;
    background: var(--gold);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  /* --- Oldalak --- */
  .page {
    padding: 30px 20px;
  }

  .page h1 {
    font-size: 33px;
  }

  .evidence-grid,
  .suspect-grid {
    gap: 12px;
  }

  .card-label {
    padding: 13px !important;
  }

  .card-label h3 {
    font-size: 18px;
  }

  .card-label p {
    font-size: 12px;
  }

  .card-label small {
    font-size: 9px;
    letter-spacing: .6px;
  }

  .mini .artifact {
    height: 135px;
    min-height: 135px;
    padding: 13px;
  }

  .mini .artifact h3 {
    font-size: 15px;
  }

  .mini .artifact p {
    font-size: 11px;
    line-height: 1.5;
  }

  .mini .artifact .artifact-tag {
    font-size: 8px;
    letter-spacing: .4px;
  }

  .mini .artifact.photo img {
    height: 118px;
  }

  .mini .artifact .catalog-mark {
    font-size: 34px;
    margin: 12px 0;
  }

  .suspect-card img {
    height: 180px;
  }

  /* --- Puzzle --- */
  .puzzle {
    padding: 18px;
    margin: 25px 0;
  }

  .puzzle h2 {
    font-size: 16px;
  }

  .puzzle-option {
    font-size: 13px;
    padding: 13px;
  }

  .order-controls {
    flex-direction: column;
  }

  .order-controls button {
    min-height: 34px;
    min-width: 34px;
  }

  .order-text {
    font-size: 13px !important;
  }

  .order-row {
    gap: 8px;
  }

  /* --- Artifact --- */
  .artifact {
    padding: 20px;
  }

  .artifact h3 {
    font-size: 20px;
  }

  .artifact p {
    font-size: 13px;
  }

  .map-room {
    font-size: 10px;
    padding: 5px;
  }

  .map-grid {
    gap: 5px;
  }

  /* --- Modal --- */
  .modal {
    width: calc(100% - 20px);
    max-height: 91svh;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-head {
    padding: 14px 18px;
  }

  .suspect-detail-head {
    gap: 16px;
  }

  .suspect-detail-head h2 {
    font-size: 24px;
  }

  .suspect-detail-head img {
    width: 90px;
    height: 118px;
  }

  #toast {
    bottom: 88px;
  }

  .ending-summary b {
    font-size: 25px;
  }

  .modal-actions {
    flex-direction: column;
  }

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

  .topbar .docs-btn {
    display: none;
  }

  /* --- Plusz blokkok mobilon --- */
  .ending-promo {
    padding: 20px;
  }

  .ending-promo .primary {
  width: 100%;
  justify-content: space-between;
  white-space: normal;
  font-size: 14px;
}

  .checkpoint-board {
    margin: 24px 0 30px;
  }

  .checkpoint-block {
    padding: 15px 16px;
  }

  .checkpoint-block li {
    font-size: 13px;
    line-height: 1.65;
  }

  .checkpoint-scene .scene-hero {
    min-height: 205px;
  }

  .checkpoint-seal {
    right: 23px;
    bottom: 20px;
    font-size: 10px;
  }

  .checkpoint-kicker {
    margin-top: 5px;
    font-size: 10px;
  }

  .checkpoint-guide-toggle {
    font-size: 13px;
    padding: 13px 14px;
  }
}


/* ==========================================================================
   24. RESZPONZÍV – 360px alatt (nagyon kicsi mobil)
   ========================================================================== */
@media (max-width: 360px) {
  .start h1 {
    font-size: 60px;
  }

  .scene-body {
    padding: 0 18px;
  }

  .evidence-grid,
  .suspect-grid {
    grid-template-columns: 1fr;
  }

  .start-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-nav {
    padding-left: 3px;
    padding-right: 3px;
  }

  .mobile-nav button {
    min-width: 58px;
  }
}


/* ==========================================================================
   25. MOZGÁS CSÖKKENTÉSE
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Spoiler-safe demo documents and offer, revision 2 */
.entry-line{font-family:Georgia,serif;font-style:italic;font-size:clamp(1.8rem,5vw,2.8rem);padding:1.4rem 0;border-block:1px solid #aaa393;letter-spacing:.06em}.entry-line span{padding:0 .4em}.document-meta{font-family:Arial,sans-serif!important;font-size:.8rem!important;line-height:1.6!important;color:#514f48!important}.fragment-lines{font-family:Georgia,serif;font-size:1.15rem;line-height:1.7;margin:1.2rem 0}.fragment-lines>div{display:flex;gap:1.5rem;border-bottom:1px solid #aaa393;padding:.5rem 0}.fragment-lines span{flex:1}.missing-line span{font-style:italic;font-size:.85em}.offer-price strong{font-size:1.6rem;color:var(--gold,#d0ae64)}.ending-promo{margin-top:1.5rem!important;margin-bottom:2rem}.ending-actions .subtle{align-self:center}.mini .entry-line{font-size:1.8rem;padding:.75rem 0}.mini .document-meta{margin:.5rem 0}.missing-line{background:rgba(0,0,0,.04)}
@media(max-width:600px){.ending-promo .primary{width:100%;height:auto;white-space:normal;justify-content:space-between;gap:.5rem;padding:1rem}.fragment-lines>div{gap:.7rem}.entry-line{font-size:2rem}}
