/* ============================================================
   V20 — TILED HOMEPAGE, SLIM ABOUT TOP, FINGERPRINT PAGE.
   Green-on-black, same as the rest of the site. Nothing here
   changes how anything works — only how it is laid out.
   ============================================================ */

/* ---------- 1. HOMEPAGE TILES ---------- */
/* The homepage is now a tidy tile dashboard instead of a stack
 * of full-width bands. Two columns on desktop, one on phones.
 * Tiles all share one card style (same border/shadow as the
 * site's .mm-card), sized to their content. */
.mm-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px 24px;
}
/* Wide screens: keep clear of the fixed side rails (92px a side),
 * same rule as the V19 game pages: 220px narrower than the
 * viewport, up to 1160px. */
@media (min-width: 1280px) {
    .mm-tiles { max-width: min(1160px, calc(100vw - 220px)); }
}
.mm-tile {
    border: 1px solid var(--accent);
    background: #000;
    box-shadow: 0 0 12px rgba(0, 255, 102, .18);
    padding: 16px 18px;
    min-width: 0;
}
.mm-tile-wide { grid-column: span 2; }
.mm-tile-head {
    font-size: .95em;
    letter-spacing: 2px;
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent);
    margin: 0 0 10px;
}
/* The panels that live inside tiles give up their own outer
 * card — the tile IS the card now. Their inner structure
 * (headings, terminal output, input row) is untouched. */
.mm-tiles .welcome-box,
.mm-tiles .mm-lab-intro,
.mm-tiles .mm-v7-panel,
.mm-tiles .mm-interactive {
    margin: 0;
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.mm-tiles .mm-lab-intro h2 { text-align: center; margin: 0 0 4px; }
.mm-tiles .mm-lab-intro p { margin: 0 0 4px; }
.mm-tiles .mm-v7-panel h2 { margin: 0 0 10px; }
.mm-tiles .mm-interactive-hint { max-width: none; margin: 10px 0 0; }
/* Terminal tiles keep their tall terminal windows — the two
 * panels line up because grid rows stretch to the tallest. */
.mm-tiles .terminal-panel { margin: 0; }
/* Phones: one column, wide tiles go full width. */
@media (max-width: 900px) {
    .mm-tiles { grid-template-columns: 1fr; gap: 14px; }
    .mm-tile-wide { grid-column: auto; }
}

/* ---------- 2. ABOUT PAGE — SLIM TOP ---------- */
/* The story used to start ~900px down: a 3-mutant row with
 * captions AND empty speech bubbles, then a boot panel that
 * typed all 16 motd lines. Now the row is small tubes with
 * captions but no speech bubbles, the h1 is tightened, and
 * the boot panel is a slim two-line strip. The story itself
 * (.mm-card) is untouched. */
.mm-about h1 { margin: 6px 0 2px; }
.mm-about .mm-tube-row { margin: 8px auto 12px; }
.mm-boot-strip {
    border: 1px solid var(--accent);
    background: #000;
    box-shadow: 0 0 10px rgba(0, 255, 102, .18);
    padding: 10px 14px;
    margin: 0 0 18px;
    font-family: monospace;
    line-height: 1.6;
    color: var(--text);
}
.mm-boot-strip .mm-boot-line { display: block; white-space: pre-wrap; word-break: break-word; }
.mm-boot-strip .mm-boot-prompt { color: var(--accent); margin-right: 6px; }
.mm-boot-cursor {
    display: inline-block;
    width: 9px;
    height: 1em;
    background: var(--accent);
    vertical-align: -0.15em;
    animation: mm-boot-blink 1s steps(1) infinite;
}
@keyframes mm-boot-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-boot-cursor { animation: none; } }

/* ---------- 3. BROWSER FINGERPRINT PAGE ---------- */
.mm-fp-note {
    border: 1px dashed var(--accent);
    padding: 12px 14px;
    margin: 14px 0 18px;
    line-height: 1.6;
    opacity: .95;
}
.mm-fp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.mm-fp-card { margin: 0; }
.mm-fp-card h2 { font-size: 1.1em; margin: 0 0 10px; letter-spacing: 1px; }
.mm-fp-row {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(0, 255, 102, .25);
    line-height: 1.5;
}
.mm-fp-row:last-child { border-bottom: 0; }
.mm-fp-row dt {
    flex: 0 0 150px;
    color: var(--accent);
    text-shadow: 0 0 6px var(--accent);
}
.mm-fp-row dd { margin: 0; min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
.mm-fp-copy { margin: 0 0 8px; }
.mm-fp-copy-note { font-size: .9em; opacity: .8; min-height: 1.4em; }
@media (max-width: 700px) {
    .mm-fp-grid { grid-template-columns: 1fr; }
    .mm-fp-row { flex-direction: column; gap: 0; }
    .mm-fp-row dt { flex: none; }
}
