    html { -webkit-text-size-adjust: 100%; }
    /* ====== Existing page chrome (unchanged) ====== */
    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body { height: 100%; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

    #page-container { display: flex; flex-direction: column; min-height: 100vh; }

    /* ===== Header / Nav (shared) ===== */
    header.site-header{
      background:#111;
      color:#fff;
    }
    .site-header .nav{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:16px;
      max-width:1200px;
      margin:0 auto;
      padding:12px 16px;
    }
    .brand{
      display:flex;
      align-items:center;
      gap:10px;
      text-decoration:none;
      color:#fff;
    }
    .brand-mark{
      font-family:"Shojumaru", system-ui;
      font-size:28px;
      letter-spacing:.5px;
      white-space:nowrap;
    }
    .primary-nav{
      display:flex;
      align-items:center;
      gap:20px;
      list-style:none;
      margin:0;
      padding:0;
    }
    .primary-nav a{
      color:#fff;
      text-decoration:none;
      padding:8px 10px;
      border-radius:6px;
    }
    .primary-nav a:hover{ background:#222; }

    /* Dropdown */
    .has-submenu{ position:relative; }
    .submenu{
      display:none;
      position:absolute;
      top:100%;
      left:0;
      background:#1b1b1b;
      list-style:none;
      padding:8px 0;
      margin:6px 0 0;
      min-width:200px;
      border:1px solid #2c2c2c;
      border-radius:8px;
      z-index:50;
    }
    .submenu a{ display:block; padding:8px 12px; }
    .has-submenu:hover .submenu{ display:block; }


    main {
      flex: 1; display: flex; align-items: center; justify-content: center;
      text-align: center; background-color: #f4f4f4; padding: 2rem;
    }

    .description {
      text-align: center;
    }


    /* ====== iSpy app (scoped) ====== */
    :root { --accent:#ffcc00; --good:#25a244; --bad:#e03131; }

    #ispy-app { width: 100%; max-width: 1400px; margin: 0 auto; text-align: left; }

    #ispy-app .iSpyTitle{
      text-align: center;
      font-family: Shojumaru, system-ui;
      font-size: 36px;
      color: white;
      text-shadow:
        -5px -5px 0 #000,  5px -5px 0 #000,
        -5px  5px 0 #000,  5px  5px 0 #000,
         0px -5px 0 #000,  0px  5px 0 #000,
        -5px  0px 0 #000,  5px  0px 0 #000;
      margin: 8px 0 16px;
    }

    #ispy-app .wrap{ padding:12px; background:#f7f7f7; border-radius:12px; width: 100%; }

    #ispy-app .meta{
      display:flex; gap:12px; flex-wrap:wrap; justify-content:space-between; align-items:center; margin:8px 0 12px
    }
    #ispy-app .metaLeft{ display:flex; gap:10px; flex-wrap:wrap; align-items:center }
    #ispy-app .pill{ background:#fff; border:1px solid #ddd; border-radius:999px; padding:6px 10px; font-weight:700 }
    #ispy-app .btn{ padding:8px 12px; border:1px solid #ccc; border-radius:8px; background:#fff; cursor:pointer; font-weight:700 }
    #ispy-app .btn:disabled{ opacity:.5; cursor:not-allowed }
    #ispy-app .btn:hover:not(:disabled){ background:#f5f5f5 }
    #ispy-app .btn.primary{ background:var(--accent); border-color:#dcb800 }
    #ispy-app .select{ padding:8px 12px; border:1px solid #ccc; border-radius:8px; background:#fff; font-weight:700 }
    #ispy-app .select:disabled{ opacity:.6; cursor:not-allowed }

    /* Board where images live */
    #ispy-app .board{
      position:relative; width:100%;
      height:75vh; min-height:420px;
      background:#eaeaea; border:1px solid #ddd; border-radius:12px; overflow:hidden;
    }
    #ispy-app .logo{
      position:absolute; user-select:none; cursor:pointer;
      transition:outline-color .12s ease, outline-width .12s ease;
      outline:0 solid transparent; will-change:left,top,transform;
    }
    #ispy-app .logo.hint{ outline:4px solid var(--bad) }
    #ispy-app .logo.found{ outline:4px solid var(--good) }

    /* Resize mode animation */
    @keyframes pulseSize{0%{transform:scale(1)}50%{transform:scale(1.5)}100%{transform:scale(1)}}
    #ispy-app.mode-resize .logo{ animation:pulseSize var(--dur,3s) ease-in-out infinite; }

    /* List BELOW the board */
    #ispy-app .listWrap{ margin-top:14px }
    #ispy-app .list{ border:8px solid #eee; border-radius:8px; background:#fff; padding:10px }
    #ispy-app .row{ display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:6px }
    #ispy-app .row:hover{ background:#f7f7f7 }
    #ispy-app .dot{ width:10px; height:10px; border-radius:50%; background:#bbb; flex:0 0 auto }
    #ispy-app .row.found .dot{ background:var(--good) }
    #ispy-app .row.found .label{ text-decoration:line-through; color:#2d7a34 }
    #ispy-app .row .spacer{ flex:1 1 auto }
    #ispy-app .row button{ padding:4px 8px; border:1px solid #ccc; border-radius:6px; background:#fff; cursor:pointer }
    #ispy-app .row button:hover{ background:#f0f0f0 }
    /* iSpy targets list — remove bullets and spacing */
    #list .targets {
      list-style: none;      /* no bullets */
      padding-left: 0;       /* remove default left indent */
      margin: 0;             
    }

    /* Each row uses flex: text on the left, button on the far right */
    #list .target {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 10px;
      border-bottom: 1px solid #eee;  /* optional row divider */
    }

    /* Make the label take remaining space so the button sits at the far right */
    #list .target > span {
      flex: 1 1 auto;
    }

    /* The “Show” button stays on the right */
    #list .target .show-btn {
      margin-left: auto;     /* pushes button to the far right */
    }

    /* When found, strike through the label (keep button styling intact) */
    #list .target.found > span {
      color: #2e7d32;
      text-decoration: line-through;
      font-weight: 600;
    }

    /* Optional: make the list look cleaner on wide screens */
    #list {
      max-width: 1200px;
      margin: 12px auto;
    }

    /* Spotlight overlay (dims the whole page; logo sits above it) */
    #ispy-app .overlay{
      position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; z-index:3000; pointer-events:none;
    }
    #ispy-app .overlay.show{ display:block }

    #ispy-app .toast{
      position:fixed; inset:auto 16px 16px auto; background:#111; color:#fff; padding:10px 12px; border-radius:8px; display:none; z-index:4000
    }
    #ispy-app .toast.show{ display:block }
    /* Dim the play area + show a prompt until a mode is chosen & Start Game is clicked */
    #ispy-app .board.faded::before{
      
      position:absolute; inset:0;
      display:flex; align-items:center; justify-content:center;
      background:rgba(0,0,0,0.45);
      color:#fff; font-size:24px; font-weight:800; text-align:center;
      z-index:2;
    }
    /* ===== Footer (2 columns) ===== */
.site-footer{ background:#111; color:#fff; padding:32px 16px 12px; }
.site-footer a{ color:#fff; text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }

.footer-inner.two-col{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px 28px; align-items:start;
}

/* Left column */
.footer-left{
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.footer-logo{
  font-family:"Shojumaru", system-ui, sans-serif;
  font-size:32px; line-height:1; margin:0;
}
.footer-tag{ margin-top:20px; opacity:.9; line-height:1.35; max-width:560px; }

/* 25px space BEFORE links list/socials block */
.links-block{ margin-top:25px; width:100%; }

/* Links list (inline + centered) */
.about-col ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:14px 18px; flex-wrap:wrap; justify-content:center;
}
.about-col li{ display:inline-flex; }
.about-col a{ padding:4px 0; opacity:.95; }

/* Socials under links, tighter gap than before */
.socials{
  list-style:none; margin:14px 0 0; padding:0;
  display:flex; justify-content:center; align-items:center; gap:12px; flex-wrap:wrap;
}
.socials li{ display:inline-flex; }
.socials a{ display:inline-flex; padding:6px; }

/* Right column (contact) */
.contact-col{ text-align:center; max-width:420px; justify-self:center; width:100%; }
.contact-col h4{ margin:0 0 10px; font-size:18px; }
#footer-contact{ display:flex; flex-direction:column; gap:10px; }
#footer-contact input, #footer-contact textarea{
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid #2a2a2a;
  background:#1b1b1b; color:#fff; resize:vertical;
}
#footer-contact button{
  padding:10px 12px; border-radius:8px; border:1px solid #2a2a2a;
  background:#fff; color:#111; font-weight:600; cursor:pointer;
}
#footer-contact button:hover{ background:#e9e9e9; }
.fineprint{ font-size:.9rem; opacity:.8; }

/* Bottom bar */
.footer-bottom{
  max-width:1200px; margin:22px auto 0;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  border-top:1px solid #222; padding-top:12px;
}
.footer-bottom p{ margin:0 auto; text-align:center; flex:1; }
.back-to-top{ white-space:nowrap; }

.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; border:0; padding:0;
  clip:rect(0 0 0 0); overflow:hidden;
}

/* Responsive */
@media (max-width: 900px){
  .footer-inner.two-col{ grid-template-columns:1fr; }
  .contact-col{ justify-self:center; }
  .footer-bottom{ flex-direction:column; gap:10px; }
}
/* keep existing rules; add this */
.has-submenu.open .submenu { display: block; }
#ispy-app .board{
  position:relative; width:100%;
- height:75vh; min-height:420px;
+ height:75svh; min-height:420px; /* iOS Safari safe */
  background:#eaeaea; border:1px solid #ddd; border-radius:12px; overflow:hidden;
}
@media (max-width: 640px){
  #ispy-app .grid { grid-template-columns: repeat(2, 1fr); }
  #ispy-app .meta { gap: 8px; }
  #ispy-app .select, #ispy-app .btn { font-size: 16px; } /* avoid iOS zoom-on-focus */
}
/* === Mobile fit & touch tweaks for iSpy === */
#ispy-app .iSpyTitle{font-size: clamp(32px, 7vw, 72px);}

/* Use small-viewport units to avoid iOS Safari’s toolbar jump */
#ispy-app .board{
  height: 75svh;          /* replaces 75vh on small devices */
  min-height: 360px;
}

/* Avoid iOS zoom when focusing controls */
#ispy-app .select, #ispy-app .btn{ font-size: 16px; }

@media (max-width: 640px){
  #ispy-app .meta{ gap: 8px; }
}