  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

  :root {
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --dark:  #0b1615;
    --dark2: #0f1e1c;
    --dark3: #162421;
    --teal:  #2a7a6e;
    --teal-dim: #1d5049;
    --text:  #d4cfc9;
    --text-dim: #7a8a88;
    --red:   #b81c1c;
    --red-dim: rgba(184,28,28,0.18);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
  }

  /* ── WALLPAPER PATTERN ── */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      radial-gradient(ellipse 3px 3px at 0% 0%, rgba(42,122,110,0.06) 0%, transparent 100%),
      repeating-linear-gradient(
        45deg,
        transparent,
        transparent 28px,
        rgba(42,122,110,0.025) 28px,
        rgba(42,122,110,0.025) 30px
      ),
      repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 28px,
        rgba(42,122,110,0.025) 28px,
        rgba(42,122,110,0.025) 30px
      );
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(to bottom, rgba(11,22,21,0.97), transparent);
    backdrop-filter: blur(6px);
  }
  .nav-logo {
    display: flex; align-items: center; text-decoration: none;
  }
  .nav-logo img {
    height: 38px; width: auto;
  }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    color: var(--text-dim); font-size: 0.8rem; letter-spacing: 0.12em;
    text-transform: uppercase; text-decoration: none; transition: color 0.25s;
  }
  .nav-links a:hover { color: var(--gold); }

  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; text-align: center; padding: 6rem 2rem 6rem;
    overflow: hidden;
    background: url('../background.jpeg') no-repeat center center / cover;
  }

  .hero-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(to bottom,
        rgba(11,22,21,0.72) 0%,
        rgba(11,22,21,0.35) 35%,
        rgba(11,22,21,0.45) 65%,
        rgba(11,22,21,0.95) 100%
      );
  }

  /* Mountains — ukryte, zastąpione przez background.jpeg */
  .mountains { display: none; }

  /* Stars with teal tint */
  .stars {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      radial-gradient(1.5px 1.5px at 8%  12%, rgba(201,168,76,0.5)  0%, transparent 100%),
      radial-gradient(1px   1px   at 22%  7%, rgba(212,207,201,0.3) 0%, transparent 100%),
      radial-gradient(1px   1px   at 37% 18%, rgba(42,122,110,0.4)  0%, transparent 100%),
      radial-gradient(1.5px 1.5px at 52%  4%, rgba(201,168,76,0.35) 0%, transparent 100%),
      radial-gradient(1px   1px   at 66% 14%, rgba(212,207,201,0.25)0%, transparent 100%),
      radial-gradient(1px   1px   at 79%  9%, rgba(42,122,110,0.3)  0%, transparent 100%),
      radial-gradient(1px   1px   at 91% 20%, rgba(201,168,76,0.2)  0%, transparent 100%),
      radial-gradient(1px   1px   at 14% 32%, rgba(212,207,201,0.15)0%, transparent 100%),
      radial-gradient(1px   1px   at 58% 28%, rgba(42,122,110,0.2)  0%, transparent 100%),
      radial-gradient(1px   1px   at 73% 22%, rgba(201,168,76,0.15) 0%, transparent 100%);
  }

  /* Ghostly smoke swirls — from the cover */
  .smoke {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
  }
  .smoke::before {
    content: '';
    position: absolute; top: 15%; left: 30%; width: 40%; height: 50%;
    background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(42,122,110,0.07) 0%, transparent 70%);
    border-radius: 50%;
    animation: driftL 8s ease-in-out infinite alternate;
  }
  .smoke::after {
    content: '';
    position: absolute; top: 25%; right: 20%; width: 30%; height: 40%;
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
    border-radius: 60% 40% 50% 50%;
    animation: driftR 10s ease-in-out infinite alternate;
  }
  @keyframes driftL { from{transform:translateX(-12px) rotate(-3deg)} to{transform:translateX(12px) rotate(3deg)} }
  @keyframes driftR { from{transform:translateX(8px) rotate(2deg)} to{transform:translateX(-8px) rotate(-2deg)} }

  /* Torn shreds at bottom of hero — key motif from cover */
  .shreds {
    position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2;
    height: 120px; pointer-events: none;
  }
  .shreds svg { width: 100%; height: 100%; }

  .hero-content { position: relative; z-index: 1; max-width: 680px; }

  .hero-eyebrow {
    font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(42,122,110,0.4);
  }

  .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4.5rem, 12vw, 8rem);
    font-weight: 700; line-height: 1; color: #e8f0ef;
    text-shadow: 0 0 60px rgba(42,122,110,0.2), 0 0 120px rgba(201,168,76,0.1);
    margin-bottom: 0.5rem; letter-spacing: 0.02em;
  }

  .hero-title-deco {
    display: block; width: 120px; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 1.2rem auto;
  }

  .hero-author {
    font-family: 'Playfair Display', serif;
    font-style: italic; font-size: 1.2rem;
    color: var(--gold-light); margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
  }

  .hero-quote {
    font-size: 1rem; color: var(--text-dim);
    max-width: 460px; margin: 0 auto 3rem;
    font-style: italic; line-height: 2;
    border-left: 2px solid var(--teal);
    padding-left: 1.2rem; text-align: left;
  }

  /* ── COUNTDOWN ── */
  .countdown-wrapper { margin-bottom: 3rem; }
  .countdown-label {
    font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 1rem;
  }
  .countdown { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-start; }
  .count-unit { text-align: center; }
  .count-num {
    display: block; font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700; color: #e8f0ef; line-height: 1;
    text-shadow: 0 0 30px rgba(42,122,110,0.3);
  }
  .count-lbl {
    display: block; font-size: 0.6rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--teal); margin-top: 0.4rem;
  }
  .count-sep {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; color: var(--gold); opacity: 0.4; margin-top: 0.1rem;
  }

  /* ── BUTTONS ── */
  .cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

  .btn-primary {
    background: var(--gold); color: #0b1615;
    padding: 0.9rem 2.2rem; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
    border: none; cursor: pointer; transition: background 0.25s, transform 0.15s;
    font-family: 'Inter', sans-serif;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-primary-nowrap { white-space: nowrap; }

  .btn-outline {
    background: transparent; color: var(--teal);
    padding: 0.9rem 2.2rem; font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
    border: 1px solid rgba(42,122,110,0.4); cursor: pointer;
    transition: border-color 0.25s, color 0.25s, transform 0.15s;
    font-family: 'Inter', sans-serif;
  }
  .btn-outline:hover { border-color: var(--teal); color: #5ab8a8; transform: translateY(-2px); }

  .scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  }
  .scroll-hint span { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
  .scroll-arrow {
    width: 18px; height: 18px;
    border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal);
    transform: rotate(45deg); animation: bounce 1.5s infinite;
  }
  @keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(4px)} }

  /* ── SECTION BASE ── */
  section { padding: 5rem 2rem; max-width: 920px; margin: 0 auto; position: relative; z-index: 1; }

  .section-tag {
    font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 0.8rem; display: block;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem); color: #e8f0ef;
    margin-bottom: 1.5rem; line-height: 1.2;
  }
  .section-divider {
    width: 60px; height: 1px; background: var(--gold); margin: 1.5rem 0;
  }

  /* ── GAMES SECTION ── */
  #gry { max-width: 100%; padding: 4rem 0; background: var(--dark2); position: relative; z-index: 1; }
  #gry::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.3), transparent);
  }
  #gry > .inner { max-width: 920px; margin: 0 auto; padding: 0 2rem; }

  .games-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; margin-top: 3rem;
  }

  .game-card {
    background: var(--dark3); border: 1px solid rgba(42,122,110,0.15);
    padding: 2rem; cursor: pointer; transition: border-color 0.25s, transform 0.2s;
    position: relative; overflow: hidden;
  }
  .game-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--teal), transparent);
    transform: scaleX(0); transition: transform 0.3s;
  }
  .game-card:hover { border-color: rgba(42,122,110,0.5); transform: translateY(-4px); }
  .game-card:hover::before { transform: scaleX(1); }
  .game-card:hover .game-card-arrow { opacity: 1; transform: translateX(0); }

  .game-card-num {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    color: rgba(42,122,110,0.18); line-height: 1; margin-bottom: 1rem;
  }
  .game-card-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #e8f0ef; margin-bottom: 0.8rem; }
  .game-card-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }
  .game-card-arrow {
    display: inline-block; margin-top: 1.2rem;
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--teal); opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.25s;
  }

  /* ── MODAL ── */
  .modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: rgba(11,22,21,0.94);
    overflow-y: auto;
  }
  .modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; }

  .modal {
    background: var(--dark2); border: 1px solid rgba(42,122,110,0.25);
    max-width: 620px; width: 100%; padding: 3rem; position: relative;
    margin-top: 4rem; animation: slideUp 0.3s ease;
    box-shadow: 0 0 60px rgba(42,122,110,0.08), 0 0 120px rgba(0,0,0,0.5);
  }
  .modal::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }
  @keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

  .modal-close {
    position: absolute; top: 1.2rem; right: 1.5rem;
    background: none; border: none; color: var(--text-dim);
    font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
    font-family: 'Inter', sans-serif; line-height: 1;
  }
  .modal-close:hover { color: var(--teal); }

  .modal-tag { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.8rem; }
  .modal-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #e8f0ef; margin-bottom: 0.5rem; }
  .modal-subtitle { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 2rem; }

  /* ── QUIZ ── */
  .quiz-progress { display: flex; gap: 0.4rem; margin-bottom: 2rem; }
  .quiz-progress-dot { height: 3px; flex: 1; background: rgba(42,122,110,0.2); transition: background 0.3s; }
  .quiz-progress-dot.done { background: var(--teal); }

  .quiz-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; color: #e8f0ef; margin-bottom: 1.5rem; line-height: 1.5;
  }
  .quiz-options { display: flex; flex-direction: column; gap: 0.8rem; }
  .quiz-option {
    background: var(--dark3); border: 1px solid rgba(42,122,110,0.12);
    padding: 1rem 1.2rem; cursor: pointer; text-align: left;
    color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, background 0.2s; line-height: 1.5;
  }
  .quiz-option:hover { border-color: var(--teal); background: rgba(42,122,110,0.07); }
  .quiz-option.selected { border-color: var(--teal); background: rgba(42,122,110,0.1); color: #e8f0ef; }

  .quiz-result { text-align: center; padding: 1rem 0; }
  .quiz-result-icon { font-size: 3rem; margin-bottom: 1rem; }
  .quiz-result-type { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--gold); margin-bottom: 0.8rem; }
  .quiz-result-desc { font-size: 0.9rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 2rem; }

  /* ── PUZZLE ── */
  .puzzle-moves { text-align: center; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1rem; }
  .puzzle-moves span { color: var(--teal); font-weight: 600; }

  #puzzle-grid {
    display: grid; gap: 3px;
    max-width: 380px; margin: 0 auto 1.5rem;
    user-select: none;
    border: 2px solid rgba(201,168,76,0.25);
    box-shadow: 0 0 40px rgba(42,122,110,0.1);
  }

  .puzzle-piece {
    cursor: pointer; position: relative;
    transition: transform 0.12s, box-shadow 0.12s; overflow: hidden;
    display: inline-block;
  }
  .puzzle-piece:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--teal); z-index: 2; }
  .puzzle-piece.selected { box-shadow: 0 0 0 2px var(--gold-light); z-index: 3; transform: scale(1.04); }
  .puzzle-piece.correct { box-shadow: 0 0 0 2px rgba(80,180,80,0.5); }

  /* Cover-matching teal/green tones for puzzle pieces */
  .puzzle-piece-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; position: relative;
    overflow: hidden;
  }

  /* If okladka.jpg is present, this wraps the cover slices */
  .puzzle-piece-inner img {
    position: absolute; object-fit: cover;
    /* JS will set width/height/top/left for each slice */
  }

  .puzzle-piece-label {
    position: absolute; bottom: 3px; right: 4px;
    font-size: 0.55rem; color: rgba(201,168,76,0.5); letter-spacing: 0.05em;
    z-index: 2;
  }

  .puzzle-win { display: none; text-align: center; padding: 2rem 0; }
  .puzzle-win.show { display: block; }
  .puzzle-win-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); margin-bottom: 1rem; }
  .puzzle-win-code {
    display: inline-block;
    background: rgba(201,168,76,0.08); border: 1px solid var(--gold);
    padding: 0.8rem 2rem; font-size: 1.2rem; letter-spacing: 0.2em;
    color: var(--gold-light); margin: 1rem 0; font-family: 'Playfair Display', serif;
  }

  /* ── DETECTIVE ── */
  .detective-weeks { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
  .detective-week-btn {
    padding: 0.5rem 1.2rem; background: var(--dark3);
    border: 1px solid rgba(42,122,110,0.2); color: var(--text-dim);
    font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s;
  }
  .detective-week-btn.active,
  .detective-week-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(42,122,110,0.07); }
  .detective-week-btn.locked { opacity: 0.4; cursor: not-allowed; }
  .detective-week-btn.locked:hover { border-color: rgba(42,122,110,0.2); color: var(--text-dim); background: var(--dark3); }
  .detective-week-btn.done { border-color: rgba(42,122,110,0.4); color: var(--teal); opacity: 0.75; }

  .detective-intro {
    font-size: 0.88rem; color: var(--text); line-height: 1.7;
    margin-bottom: 1.5rem; padding: 1rem 1.2rem;
    background: rgba(42,122,110,0.06);
    border-left: 3px solid rgba(42,122,110,0.3);
  }
  .clue-card {
    background: var(--dark3); border-left: 3px solid var(--teal);
    padding: 1.2rem 1.5rem; margin-bottom: 1rem;
  }
  .clue-blog-entry {
    margin-top: 0.8rem; padding: 0.9rem 1.1rem;
    background: rgba(11,22,21,0.6);
    border-left: 2px solid rgba(201,168,76,0.35);
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: 0.88rem; color: var(--text); line-height: 1.85;
  }
  .clue-img {
    display: block; max-width: 100%; margin-top: 0.8rem;
    border: 1px solid rgba(42,122,110,0.2); cursor: pointer;
  }
  .clue-audio {
    display: block; width: 100%; margin-top: 0.8rem;
  }
  .clue-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
  .clue-text { font-size: 0.9rem; color: var(--text); line-height: 1.7; }
  .clue-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }

  .detective-question {
    background: var(--red-dim); border: 1px solid rgba(184,28,28,0.35);
    padding: 1.2rem 1.5rem; margin: 1.5rem 0;
    font-family: 'Playfair Display', serif; font-size: 1rem;
    color: #d4a0a0; font-style: italic;
  }

  .detective-answers { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
  .detective-answer {
    background: var(--dark3); border: 1px solid rgba(42,122,110,0.12);
    padding: 0.9rem 1.2rem; cursor: pointer;
    color: var(--text); font-size: 0.9rem; font-family: 'Inter', sans-serif;
    text-align: left; transition: all 0.2s;
  }
  .detective-answer:hover { border-color: var(--teal); background: rgba(42,122,110,0.07); }
  .detective-answer.correct { border-color: #4a9e4a; background: rgba(74,158,74,0.08); color: #8ed98e; }
  .detective-answer.wrong { border-color: #9e4a4a; background: rgba(158,74,74,0.08); color: #d88e8e; }

  .detective-feedback {
    display: none; padding: 1rem 1.2rem;
    font-size: 0.88rem; line-height: 1.7; border-left: 3px solid;
  }
  .detective-feedback.show { display: block; }
  .detective-feedback.correct { border-color: #4a9e4a; color: #8ed98e; background: rgba(74,158,74,0.06); }
  .detective-feedback.wrong { border-color: #9e4a4a; color: #d88e8e; background: rgba(158,74,74,0.06); }

  .locked-overlay { text-align: center; padding: 3rem 1rem; display: none; }
  .locked-overlay.show { display: block; }
  .locked-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
  .locked-text { font-size: 0.88rem; color: var(--text-dim); }

  /* ── ŚWIADEK ── */
  .witness-card {
    border: 1px solid rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.04);
    margin-bottom: 1rem; overflow: hidden;
  }
  .witness-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem; border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .witness-logo {
    width: 52px; height: 52px; object-fit: contain;
    border-radius: 50%; background: rgba(11,22,21,0.6);
    border: 1px solid rgba(201,168,76,0.25); flex-shrink: 0;
    padding: 4px;
  }
  .witness-meta { flex: 1; }
  .witness-label {
    font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.2rem;
  }
  .witness-name {
    font-family: 'Playfair Display', serif; font-size: 1rem; color: #e8f0ef;
  }
  .witness-handle { font-size: 0.75rem; color: var(--teal); }
  .witness-body { padding: 0.8rem 1.2rem 1rem; }
  .witness-hint { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
  .witness-contact-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold); font-family: 'Inter', sans-serif;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    padding: 0.6rem 1.2rem; cursor: pointer; transition: all 0.25s;
    text-decoration: none;
  }
  .witness-contact-btn:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }
  .witness-input-area { padding: 0.8rem 1.2rem 1rem; border-top: 1px solid rgba(201,168,76,0.12); display: none; }
  .witness-input-area.show { display: block; }
  .witness-input-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.5rem; }
  .witness-input-row { display: flex; gap: 0; }
  .witness-code-input {
    flex: 1; background: var(--dark); border: 1px solid rgba(201,168,76,0.25);
    border-right: none; padding: 0.7rem 0.9rem; color: var(--text);
    font-family: 'Inter', sans-serif; font-size: 0.85rem; outline: none;
  }
  .witness-code-input:focus { border-color: rgba(201,168,76,0.5); }
  .witness-submit-btn {
    background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.4);
    color: var(--gold); padding: 0.7rem 1rem; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; transition: background 0.2s; white-space: nowrap;
  }
  .witness-submit-btn:hover { background: rgba(201,168,76,0.25); }
  .witness-error { font-size: 0.75rem; color: #d88e8e; margin-top: 0.5rem; display: none; }
  .witness-error.show { display: block; }
  .witness-unlocked-clue { padding: 1rem 1.2rem; border-top: 1px solid rgba(201,168,76,0.2); display: none; background: rgba(201,168,76,0.03); }
  .witness-unlocked-clue.show { display: block; }
  .witness-testimony-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
  .witness-testimony-text { font-size: 0.88rem; color: var(--text); line-height: 1.8; font-style: italic; }

  /* ── ABOUT ── */
  #opis { border-top: 1px solid rgba(42,122,110,0.12); }

  .book-info-grid {
    display: grid; grid-template-columns: 1fr 2fr; gap: 3rem;
    align-items: start; margin-top: 2.5rem;
  }
  @media(max-width:600px){ .book-info-grid { grid-template-columns: 1fr; } }

  /* Golden frame — matches cover */
  .book-cover-wrap {
    position: relative;
    box-shadow:
      0 0 0 3px  #a0762a,
      0 0 0 6px  #c9a84c,
      0 0 0 9px  #8a6020,
      0 0 0 12px #c9a84c,
      0 0 0 16px #6a4a14,
      0 0 40px rgba(201,168,76,0.2);
    margin: 1rem;
  }
  .book-cover-img {
    width: 100%; display: block;
    /* Shows real image if okladka.jpg is in folder, fallback otherwise */
  }
  .book-cover-fallback {
    aspect-ratio: 2/3;
    background: linear-gradient(160deg, #162e2a 0%, #0f2420 50%, #0b1e1c 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.8rem; padding: 2rem;
  }
  .book-cover-fallback-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; color: #d0e8e4;
    letter-spacing: 0.05em; text-align: center;
  }
  .book-cover-fallback-author { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
  .book-cover-fallback-deco { width: 40px; height: 1px; background: var(--gold); opacity: 0.5; }
  .book-cover-fallback-pub { font-size: 0.65rem; letter-spacing: 0.08em; color: rgba(201,168,76,0.4); margin-top: auto; }

  .book-hook {
    font-size: 0.95rem; color: var(--gold-light); font-style: italic;
    line-height: 1.65; margin-bottom: 1.2rem;
    padding-left: 0.9rem; border-left: 2px solid rgba(201,168,76,0.4);
  }
  .book-genre { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
  .book-desc { font-size: 0.92rem; color: var(--text-dim); line-height: 1.9; margin-bottom: 1.5rem; }

  /* ── AUTORKA ── */
  #autorka { padding: 4rem 2rem; position: relative; z-index: 1; border-top: 1px solid rgba(42,122,110,0.12); }
  #autorka .inner { max-width: 920px; margin: 0 auto; }
  .author-grid {
    display: grid; grid-template-columns: 260px 1fr;
    gap: 3rem; align-items: start; margin-top: 2rem;
  }
  .author-photo-wrap {
    position: relative;
  }
  .author-photo {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    border: 1px solid rgba(201,168,76,0.25);
    filter: sepia(15%) brightness(0.92);
  }
  .author-name {
    font-family: 'Playfair Display', serif; font-size: 2rem;
    color: var(--text); margin-bottom: 0.3rem;
  }
  .author-tagline {
    font-size: 0.85rem; letter-spacing: 0.12em; color: var(--gold);
    text-transform: uppercase; margin-bottom: 1.5rem;
  }
  .author-text {
    font-size: 0.92rem; color: var(--text-dim); line-height: 1.9; margin-bottom: 1.1rem;
  }
  .author-social {
    display: inline-block; margin-top: 0.5rem;
    font-size: 0.8rem; letter-spacing: 0.1em; color: var(--teal);
    text-decoration: none; text-transform: uppercase;
  }
  .author-social:hover { color: var(--gold); }
  @media (max-width: 680px) {
    .author-grid { grid-template-columns: 1fr; }
    .author-photo { max-width: 220px; }
  }
  .book-tag {
    display: inline-block; border: 1px solid rgba(42,122,110,0.25);
    padding: 0.3rem 0.8rem; font-size: 0.72rem; color: var(--text-dim);
    letter-spacing: 0.08em; margin: 0.2rem;
    transition: border-color 0.2s, color 0.2s;
  }
  .book-tag:hover { border-color: var(--teal); color: var(--teal); }


  /* ── CTA BANNER ── */
  #cta-banner {
    padding: 4rem 2rem; position: relative; z-index: 1;
    background: linear-gradient(135deg, rgba(42,122,110,0.12) 0%, rgba(201,168,76,0.06) 100%);
    border-top: 1px solid rgba(42,122,110,0.2);
    border-bottom: 1px solid rgba(42,122,110,0.2);
    text-align: center;
  }
  .cta-banner-inner { max-width: 600px; margin: 0 auto; }
  .cta-banner-label {
    font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 0.8rem;
  }
  .cta-banner-title {
    font-family: 'Playfair Display', serif; font-size: 2rem;
    color: var(--text); margin-bottom: 0.8rem;
  }
  .cta-banner-sub {
    font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 2rem;
  }

  /* ── FOOTER ── */
  footer {
    text-align: center; padding: 2rem 2rem; position: relative; z-index: 1;
    border-top: 1px solid rgba(42,122,110,0.12);
  }
  .footer-logo { margin-bottom: 0.8rem; }
  .footer-logo img { height: 34px; width: auto; }
  .footer-text { font-size: 0.75rem; color: var(--text-dim); }
  .footer-text a { color: var(--teal); text-decoration: none; }
  .hero-scroll-cta { opacity: 0.85; }

  .hidden { display: none !important; }
  .mt-2 { margin-top: 1.5rem; }

  /* ── KODY RABATOWE ── */
  .discount-box {
    background: rgba(201,168,76,0.05);
    border: 1px solid rgba(201,168,76,0.35);
    padding: 1.2rem 1.5rem; text-align: center; margin: 1.5rem 0;
  }
  .discount-tag {
    font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.5rem;
  }
  .discount-code {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; letter-spacing: 0.22em; color: var(--gold-light);
    margin: 0.3rem 0 0.4rem;
  }
  .discount-pct { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.8rem; }
  .discount-copy {
    font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--teal); cursor: pointer; border: none; background: none;
    font-family: 'Inter', sans-serif; transition: color 0.2s; padding: 0;
  }
  .discount-copy:hover { color: #5ab8a8; }

  .codes-vault {
    border-top: 1px solid rgba(42,122,110,0.15);
    margin-top: 1.5rem; padding-top: 1.2rem; text-align: center;
  }
  .codes-vault-label {
    font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 0.8rem;
  }
  .codes-vault-dots { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.8rem; }
  .vault-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(42,122,110,0.12); border: 1px solid rgba(42,122,110,0.3);
    transition: background 0.4s, border-color 0.4s;
  }
  .vault-dot.earned { background: var(--teal); border-color: var(--teal); }
  .vault-hint { font-size: 0.72rem; color: var(--text-dim); }
  .codes-vault { margin-bottom: 1.5rem; }

  .discount-master {
    background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.6);
    padding: 1.2rem 1.5rem; text-align: center; margin-top: 0.8rem;
    animation: vaultGlow 2.2s ease-in-out infinite;
  }
  @keyframes vaultGlow {
    0%,100% { box-shadow: 0 0 8px rgba(201,168,76,0.1); }
    50%      { box-shadow: 0 0 24px rgba(201,168,76,0.35); }
  }
  .discount-master-code {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem; letter-spacing: 0.22em; color: var(--gold);
    margin: 0.3rem 0 0.4rem;
  }

  /* Combined code area */
  .combined-area {
    background: rgba(42,122,110,0.07);
    border: 1px solid rgba(42,122,110,0.25);
    padding: 0.9rem 1.2rem; margin: 0.8rem 0;
  }
  .combined-meta {
    font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 0.5rem;
  }
  .combined-code-value {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; letter-spacing: 0.1em; color: #d4cfc9;
    word-break: break-all; margin-bottom: 0.6rem; line-height: 1.5;
  }
  .combined-code-value strong { color: var(--gold-light); }

  /* ── RECENZJE PATRONÓW ── */
  #recenzje {
    padding: 4rem 2rem;
    position: relative; z-index: 1;
    border-top: 1px solid rgba(42,122,110,0.12);
  }
  #recenzje .inner { max-width: 1020px; margin: 0 auto; }

  .recenzje-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 2rem;
  }

  .recenzja-card {
    background: var(--dark2);
    border: 1px solid rgba(42,122,110,0.12);
    padding: 0.9rem 1.2rem;
    display: flex; align-items: flex-start; gap: 1rem;
    transition: border-color 0.25s;
  }
  .recenzja-card:hover { border-color: rgba(201,168,76,0.25); }

  .recenzja-logo {
    width: 46px; height: 46px; flex-shrink: 0;
    object-fit: contain; border-radius: 50%;
    background: rgba(11,22,21,0.5);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 2px;
    transition: opacity 0.2s;
  }
  .recenzja-logo-flat {
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 0;
  }
  .recenzja-logo:hover { opacity: 0.75; }
  .recenzja-nazwa a {
    color: var(--gold); text-decoration: none;
  }
  .recenzja-nazwa a:hover { text-decoration: underline; }
  .recenzja-body { flex: 1; min-width: 0; }
  .recenzja-tekst {
    font-size: 0.8rem; color: var(--text-dim);
    line-height: 1.65; font-style: italic;
    margin-bottom: 0.35rem;
  }
  .recenzja-tekst::before { content: '\201E'; color: rgba(201,168,76,0.4); }
  .recenzja-tekst::after  { content: '\201D'; color: rgba(201,168,76,0.4); }
  .recenzja-nazwa {
    font-size: 0.7rem; color: var(--gold);
    letter-spacing: 0.06em;
  }

  /* ── PATRONATY ── */
  #patronaty {
    padding: 4rem 2rem;
    position: relative; z-index: 1;
    border-top: 1px solid rgba(42,122,110,0.12);
  }
  #patronaty .inner {
    max-width: 920px; margin: 0 auto; text-align: center;
  }
  .patronaty-logos {
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 2.5rem 3.5rem; margin-top: 2.5rem;
  }
  .patron-link {
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s, filter 0.25s;
    filter: grayscale(60%) brightness(0.85);
  }
  .patron-link:hover {
    filter: grayscale(0%) brightness(1.05);
    transform: translateY(-3px);
  }
  .patron-logo {
    max-height: 72px; max-width: 160px;
    width: auto; height: auto;
    object-fit: contain;
  }
  .patron-logo-malwix {
    max-height: 96px; max-width: 200px;
  }
  @media (max-width: 600px) {
    .patronaty-logos { gap: 2rem 2.5rem; }
    .patron-logo { max-height: 56px; max-width: 120px; }
  }

  /* ══════════════════════════════
     RESPONSIVE — MOBILE
  ══════════════════════════════ */

  @media (max-width: 768px) {

    /* Nav */
    nav { padding: 1rem 1.2rem; }
    .nav-links { gap: 1.2rem; }
    .nav-links a { font-size: 0.72rem; letter-spacing: 0.08em; }

    /* Hero */
    #hero { padding: 5rem 1.5rem 5rem; }
    .hero-content { max-width: 100%; }
    .hero-quote { font-size: 0.9rem; padding-left: 1rem; }

    /* Countdown */
    .countdown { gap: 1rem; }
    .count-num { font-size: 2.4rem; }
    .count-sep { font-size: 2rem; }

    /* CTA buttons */
    .cta-group { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 280px; text-align: center; }

    /* Games grid — single column */
    .games-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Modal */
    .modal { padding: 2rem 1.4rem; margin-top: 1rem; }
    .modal-title { font-size: 1.5rem; }

    /* Puzzle */
    #puzzle-grid { max-width: 100%; }

    /* Detective week buttons */
    .detective-weeks { gap: 0.4rem; }
    .detective-week-btn { padding: 0.4rem 0.85rem; font-size: 0.7rem; }

    /* Section */
    section { padding: 3.5rem 1.5rem; }

    /* About grid already collapses at 600px */
    .book-cover-wrap { margin: 0 0 1.5rem; }
  }

  @media (max-width: 480px) {

    /* Nav — hide links, show only logo */
    .nav-links { display: none; }
    nav { justify-content: center; }

    /* Hero */
    #hero { padding: 4rem 1rem 4rem; }
    .hero-eyebrow { font-size: 0.62rem; }
    .hero-author { font-size: 1rem; }
    .hero-quote { font-size: 0.85rem; margin-bottom: 2rem; }

    /* Countdown */
    .countdown { gap: 0.7rem; }
    .count-num { font-size: 2rem; }
    .count-lbl { font-size: 0.55rem; }
    .count-sep { display: none; }
    .countdown-wrapper { margin-bottom: 2rem; }

    /* Modal overlay — full screen */
    .modal-overlay.active { padding: 0; align-items: flex-end; }
    .modal {
      margin-top: 0; border-radius: 0;
      max-height: 92vh; overflow-y: auto;
      padding: 1.8rem 1.2rem 2.5rem;
    }
    .modal::before { display: none; }

    /* Quiz */
    .quiz-question { font-size: 1rem; }
    .quiz-option { font-size: 0.85rem; padding: 0.85rem 1rem; }

    /* Puzzle — dopasuj do ekranu */
    #puzzle-grid { max-width: calc(100vw - 2.4rem); }

    /* Games */
    #gry > .inner { padding: 0 1rem; }
    .game-card { padding: 1.5rem; }
    .game-card-num { font-size: 2rem; }

    /* Section */
    section { padding: 3rem 1rem; }
    .section-title { font-size: 1.6rem; }


  }
