/* Site-wide easter-egg styling. Paired with js/tt-easter-eggs.js.
   Kept out of app.css so the eggs stay self-contained and easy to lift.
   Uses the shared design tokens from app.css (:root). */

/* --- Resize messages -------------------------------------------------------
   Testers resize obsessively. Reward the extremes. Pure CSS, no JS. */
@media (max-width: 320px) {
  body::after {
    content: "320px? You testing my layout? Fair.";
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    max-width: 92vw;
    background: var(--text, #1a1a18);
    color: var(--bg, #f8f8f6);
    font: 600 11px/1.3 var(--fm, monospace);
    text-align: center;
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    z-index: 99998;
    pointer-events: none;
  }
}

@media (min-width: 2200px) {
  body::before {
    content: "Ultra-wide? Stress-testing my breakpoints? Bold.";
    position: fixed;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
    background: var(--text, #1a1a18);
    color: var(--bg, #f8f8f6);
    font: 600 12px/1.3 var(--fm, monospace);
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    z-index: 99998;
    pointer-events: none;
  }
}

/* --- Logo oath tooltip -----------------------------------------------------
   Hover the TT logo for the tester's oath. The full oath is also in an HTML
   comment beside the logo for the View-Source crowd. */
.tt-logo-link[data-tt-oath] {
  position: relative;
}
.tt-logo-link[data-tt-oath]::after {
  content: attr(data-tt-oath);
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  white-space: nowrap;
  background: var(--text, #1a1a18);
  color: var(--bg, #f8f8f6);
  font: 600 0.72rem/1.2 var(--fm, monospace);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  z-index: 999;
}
.tt-logo-link[data-tt-oath]:hover::after,
.tt-logo-link[data-tt-oath]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* --- The Number clue -------------------------------------------------------
   A faint pointer to the unsolvable puzzle. Reveals nothing. */
.tt-egg-number-clue {
  text-align: center;
  margin-top: 0.4rem;
}
.tt-egg-number-clue a {
  color: var(--dim, #999996);
  font: 0.72rem/1.4 var(--fm, monospace);
  text-decoration: none;
  opacity: 0.7;
  transition: color .2s ease, opacity .2s ease;
}
.tt-egg-number-clue a:hover {
  color: var(--purple, #7C3AED);
  opacity: 1;
}

/* --- Offline screen --------------------------------------------------------
   Built in JS on the `offline` event, removed on `online`. */
.tt-egg-offline {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 20, 18, 0.55);
  backdrop-filter: blur(4px);
}
.tt-egg-offline-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e0e0dc);
  border-radius: var(--radius-lg, 20px);
  padding: 2.25rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.tt-egg-offline-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.tt-egg-offline-card h2 {
  margin: 0 0 0.6rem;
  font: 800 1.4rem/1.15 var(--fh, sans-serif);
  color: var(--text, #1a1a18);
}
.tt-egg-offline-card p {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted, #555552);
}
.tt-egg-offline-close {
  border: 0;
  cursor: pointer;
  background: var(--brand, linear-gradient(135deg, #185FA5, #7C3AED));
  color: #fff;
  font: 700 0.9rem var(--fb, sans-serif);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius, 14px);
}
