body {
  margin: 0;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background: 
    linear-gradient(45deg, #e2e2e2 25%, transparent 25%), 
    linear-gradient(-45deg, #e2e2e2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e2e2 75%),
    linear-gradient(-45deg, transparent 75%, #e2e2e2 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  background-color: #f6f6f6;
}

#chess-bg {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  height: 220px; /* Header area */
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Content starts at top now, so image shows right away */
.chess-container {
  position: relative;
  z-index: 1;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Headings and image */
h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 8px #fff, 0 2px 4px #bbb;
  letter-spacing: 1px;
  margin-top: 1.3rem;
}
.chess-image {
  max-width: 90vw;
  max-height: 60vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border: 4px solid #222;
  background: #fff;
  margin-bottom: 2.5rem;
  margin-top: 0.3rem;
}

/* Info Card */
.info-card {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
  border-radius: 14px;
  max-width: 480px;
  padding: 2rem 2rem 1.5rem 2rem;
  margin: 0 auto;
  text-align: left;
  color: #222;
  border: 2px solid #bdbdbd;
}

.info-card h2 {
  font-size: 1.4rem;
  color: #2d3748;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.byline {
  font-size: 1rem;
  color: #777;
  margin-bottom: 1rem;
}

.info-card p {
  margin-top: 0.7em;
  margin-bottom: 0.7em;
  line-height: 1.6;
}

.highlight {
  background: #f2f7ff;
  border-left: 5px solid #3b82f6;
  padding: 0.6em 1em;
  margin: 1.2em 0 1em 0;
  font-weight: 600;
  color: #1a237e;
  border-radius: 5px;
  text-align: center;
  font-size: 1.08em;
}

.star {
  color: #e8b200;
  font-size: 1.2em;
  margin: 0 0.2em;
}

.features {
  margin: 1em 0 1em 0.2em;
  padding: 0 0 0 1.2em;
  list-style: '♟ ';
  color: #444;
  font-size: 1em;
}

.features li {
  margin-bottom: 0.3em;
}

.contact {
  margin-top: 1.2em;
  font-size: 1em;
  background: #f7f7f7;
  padding: 0.8em 1em;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  word-break: break-all;
}

.contact a {
  color: #1661c9;
  text-decoration: none;
  font-weight: 500;
}
.contact a:hover {
  text-decoration: underline;
}

.tagline {
  margin-top: 1.5em;
  font-size: 1.12em;
  font-weight: 700;
  text-align: center;
  color: #116e1e;
  letter-spacing: .5px;
}

/* Install Button */
.install-btn {
  display: block;
  margin: 2.2em auto 0 auto;
  padding: 0.75em 2em;
  font-size: 1.1em;
  background: linear-gradient(90deg, #1a237e, #3b82f6 80%);
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .5px;
  transition: background 0.18s, box-shadow 0.2s;
}
.install-btn:hover {
  background: linear-gradient(90deg, #3b82f6 30%, #1a237e 100%);
  box-shadow: 0 4px 16px #0002;
}

/* Modal Styling */
.modal {
  display: none; 
  position: fixed; 
  z-index: 100; 
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  overflow: auto; 
  background-color: rgba(34,34,60,0.86);
  transition: background 0.2s;
}
.modal-content {
  background-color: #fefefe;
  margin: 4vw auto;
  padding: 2.2em 2.2em 2em 2.2em;
  border: 1px solid #888;
  width: 94vw;
  max-width: 640px;
  border-radius: 15px;
  box-shadow: 0 12px 36px #0004;
  position: relative;
  max-height: 80vh;
  overflow: auto;
  animation: modalIn 0.25s;
}
@keyframes modalIn {
  from {transform: translateY(50px); opacity: 0;}
  to {transform: none; opacity: 1;}
}
.close {
  color: #444;
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 2.1em;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 110;
}
.close:hover,
.close:focus {
  color: #b72020;
}
.install-text {
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 1.03em;
  background: #f7f8fa;
  color: #263238;
  padding: 1.4em 1em;
  border-radius: 8px;
  max-height: 66vh;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid #e3e3e3;
}