/* ==================================================
   views.css — Iframe wrappers (news), games hub, crossword, maps
   Split from index.html lines 5025–5296 on 2026-04-23
   ================================================== */

  /* ================= Iframe-embed views (News) ================= */
  #newsView, #retroArcadeView, #lookyBrainView, #visionTherapyView, #oracleView { padding: 0; }
  #newsView.active, #retroArcadeView.active, #lookyBrainView.active, #visionTherapyView.active, #oracleView.active { display: flex; flex-direction: column; }
  .news-frame {
    width: 100%;
    /* Fallback height before loadNewsFrame() measures content scrollHeight
     * and sets the exact value. Same dynamic-resize pattern as #oracleFrame
     * — lets the parent page scroll (top dock + section banner scroll away)
     * instead of trapping scroll inside the iframe. Updated 2026-05-08. */
    height: 100vh;
    border: 0;
    display: block;
    background: #fff;
  }
  /* Oracle iframe scrolls WITH the parent page (top dock + section banner
   * scroll away normally) instead of locking the iframe to viewport height.
   * Height is set dynamically by loadOracleFrame() in app.js based on the
   * iframe's content scrollHeight (same-origin reads OK). */
  #oracleFrame {
    width: 100%;
    border: 0;
    display: block;
    background: #0c0420;
    height: 100vh; /* fallback before JS measures content */
  }

  /* ================= GAMES HUB ================= */
  .games-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 28px 28px;
    text-align: center;
  }
  .games-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .games-title {
    font-family: 'Roboto', -apple-system, sans-serif;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .games-title em { font-style: italic; color: var(--cyan); font-weight: 600; }
  .games-sub {
    font-family: var(--mono);
    color: var(--text-dim);
    font-size: 14px;
    margin: 0 auto;
    max-width: 560px;
  }
  .games-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 28px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .game-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.18);
  }
  .game-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow:
      0 6px 14px -4px rgba(0, 0, 0, 0.25),
      0 1px 0 rgba(255, 255, 255, 0.35) inset;
  }
  .game-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
  .game-card__badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 4px;
  }
  .game-card--coming .game-card__badge {
    color: #606060;
    background: rgba(0, 0, 0, 0.06);
  }
  .game-card__title {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .game-card__desc {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
  }
  .game-card__cta {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 8px 0 2px;
  }
  .game-card--coming .game-card__cta { color: #909090; }
  .game-card--coming { opacity: 0.82; }
  .game-card--coming:hover { opacity: 1; }

  /* ================= CROSSWORD ================= */
  .cw-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
  .cw-header { text-align: center; margin-bottom: 24px; }
  .cw-eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--cyan, #FFFC03); text-transform: uppercase; margin-bottom: 10px; }
  .cw-title { font-family: 'Roboto', -apple-system, sans-serif; font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin: 0 0 6px; }
  .cw-title em { font-style: italic; color: var(--amber, #ff9d4a); }
  .cw-sub { color: var(--text-dim, #9aa0ac); margin: 0 0 14px; font-size: 14px; }
  .cw-meta { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-dim, #9aa0ac); letter-spacing: 0.04em; }
  .cw-meta .cw-dot { opacity: 0.5; }
  .cw-stage { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
  .cw-grid-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .cw-grid {
    display: grid;
    background: #111318;
    border: 2px solid #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    user-select: none;
  }
  .cw-cell {
    position: relative;
    width: 44px; height: 44px;
    border: 1px solid #3b3f47;
    background: #fafafa;
    color: #111;
    text-align: center;
    font: 700 20px/44px 'Inter', system-ui, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
  }
  .cw-cell.cw-block { background: #0a0b0f; cursor: default; }
  .cw-cell input {
    position: absolute; inset: 0;
    border: 0; background: transparent; width: 100%; height: 100%;
    text-align: center; text-transform: uppercase;
    font: inherit; color: inherit; outline: none;
    padding: 0;
  }
  .cw-cell.cw-active { background: #ffeb99; }
  .cw-cell.cw-highlight { background: #fff3c4; }
  .cw-cell.cw-correct input { color: #0f7a3a; }
  .cw-cell.cw-wrong input { color: #c2262e; }
  .cw-cell .cw-num {
    position: absolute; top: 2px; left: 4px;
    font: 600 9px/1 'Inter', system-ui, sans-serif;
    color: #555;
  }
  .cw-toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .cw-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(160deg, #2d6bff, #0a3aa0);
    color: #fff;
    font: 600 13px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
  }
  .cw-btn:hover { filter: brightness(1.1); }
  .cw-btn-ghost { background: transparent; color: var(--text, #e8ecf1); border: 1px solid #3b3f47; }
  .cw-status { min-height: 22px; font-size: 13px; color: var(--text-dim, #9aa0ac); text-align: center; }
  .cw-status.cw-ok { color: #22c55e; font-weight: 600; }
  .cw-status.cw-err { color: #ff5c5c; }
  .cw-clues { display: grid; gap: 20px; }
  .cw-clues h3 { font-size: 12px; letter-spacing: 0.18em; color: var(--cyan, #FFFC03); text-transform: uppercase; margin: 0 0 10px; }
  .cw-clue-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
  .cw-clue-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
  }
  .cw-clue-list li:hover { background: rgba(255,255,255,0.04); }
  .cw-clue-list li .cw-clue-num { color: var(--text-dim, #9aa0ac); font-weight: 600; }
  .cw-clue-list li.cw-clue-active { background: rgba(255,235,153,0.15); }
  @media (max-width: 780px) {
    .cw-stage { grid-template-columns: 1fr; }
    .cw-cell { width: 36px; height: 36px; font-size: 17px; line-height: 36px; }
  }

  /* ================= MAPS ================= */
  .maps-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
  .maps-header { text-align: center; margin-bottom: 20px; }
  .maps-eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--cyan, #FFFC03); text-transform: uppercase; margin-bottom: 10px; }
  .maps-title { font-family: 'Roboto', -apple-system, sans-serif; font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin: 0 0 6px; }
  .maps-title em { font-style: italic; color: #22c55e; }
  .maps-sub { color: var(--text-dim, #9aa0ac); margin: 0 0 18px; font-size: 14px; }
  .maps-search {
    display: flex; gap: 8px; justify-content: center; max-width: 640px; margin: 0 auto 14px;
  }
  .maps-search-input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #3b3f47;
    background: rgba(255,255,255,0.04);
    color: var(--text, #e8ecf1);
    font-size: 15px;
  }
  .maps-search-input:focus { outline: none; border-color: #22c55e; background: rgba(34,197,94,0.08); }
  .maps-search-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(160deg, #22c55e, #0f8a4a);
    color: #fff;
    font: 700 14px/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    letter-spacing: 0.02em;
  }
  .maps-search-btn:hover { filter: brightness(1.1); }
  .maps-quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
  .maps-quick button {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #3b3f47;
    background: transparent;
    color: var(--text, #e8ecf1);
    font-size: 12px;
    cursor: pointer;
  }
  .maps-quick button:hover { background: rgba(34,197,94,0.08); border-color: #22c55e; }
  .maps-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #3b3f47; }
  .maps-frame { width: 100%; height: min(70vh, 620px); border: 0; display: block; background: #111; }
  .maps-result {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-dim, #9aa0ac);
    background: rgba(0,0,0,0.4);
    border-top: 1px solid #3b3f47;
    min-height: 18px;
  }
  .maps-result a { color: #22c55e; text-decoration: none; }
  .maps-result a:hover { text-decoration: underline; }

