/* =========================================================
   Frame:Work Badge\Tag — Index Page Style (Mobile Fixes)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body.index {
  --bg: #000;
  --fg: #b6ff9b;
  --fg-bright: #3cff00;
  --border: #103510;
  --muted: #6fbf6f;
  --shadow: 0 0 18px rgba(60, 255, 0, 0.08);
  --glass: rgba(16, 53, 16, 0.12);
  --glass-strong: rgba(16, 53, 16, 0.28);
  --font: 'Share Tech Mono', monospace;
  color-scheme: dark; /* ensures dark-mode background on iOS */
}

/* ---------- Base ---------- */
body.index.term {
  margin: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: var(--font);
  text-shadow: var(--shadow);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dotted var(--border);
  padding-bottom: 12px;
}

.brand {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 1.25rem;
  color: var(--fg);
  text-shadow: 0 0 8px rgba(60, 255, 0, 0.1);
}

.cursor {
  display: inline-block;
  width: 0.72ch;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  0%,49%{opacity:0}50%,100%{opacity:1}
}

/* ---------- Center Menu ---------- */
.center-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* enable inertial scroll */
  padding: 2rem 1rem;
}

.intro-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 0 12px rgba(60,255,0,0.12);
}
.accent {
  color: var(--fg-bright);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ---------- Navigation ---------- */
.nav-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

.nav-vertical .link {
  width: min(90vw, 360px); /* wider buttons that scale to screen */
  padding: 12px;
  border: 1px dotted var(--border);
  border-radius: 10px;
  background: var(--glass);
  color: var(--fg-bright);
  text-decoration: none;
  transition: all 0.15s ease-in-out;
  box-shadow: inset 0 0 6px rgba(60,255,0,0.1);
  white-space: nowrap; /* prevents wrapping */
}

.nav-vertical .link:hover {
  background: var(--glass-strong);
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(60,255,0,0.25);
}
.nav-vertical .link:active { transform: translateY(1px); }

.nav-vertical .coming-soon {
  position: relative;
}
.nav-vertical .coming-soon::after {
  content: "soon";
  font-size: 0.65rem;
  color: #111;
  background: #ffd27a;
  padding: 2px 6px;
  border-radius: 999px;
  position: absolute;
  right: -34px;
  top: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px dotted var(--border);
  padding: 12px 0 1rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ---------- Scanlines ---------- */
body.index.scanline::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(60, 255, 0, 0.03),
    rgba(60, 255, 0, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ---------- Mobile Tweaks ---------- */
@media (max-height: 750px) {
  .center-menu { padding-top: 1rem; padding-bottom: 1rem; }
}
@media (max-width: 600px) {
  .intro-title { font-size: 1.6rem; }
}
