:root {
  --main-bg: #fffbe6;
  --accent: #ffd600;
  --board-bg: #fffde7;
  --peg: #222;
  --peg-shadow: #ffe082;
  --empty: #f9fbe7;
  --selected: #ffd600;
  --btn-bg: #ffd600;
  --btn-hover: #fff59d;
  --text: #222;
  --footer-bg: #222;
  --footer-text: #ffe082;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--main-bg);
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
  align-items: center;
}
header {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 2rem 0 1rem 0;
  text-align: center;
}

.board-select {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.board-thumb {
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--board-bg);
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  width: 90px;
  min-width: 90px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 2px 8px #ffd60044;
  padding: 0.5rem 0.2rem 0.4rem 0.2rem;
  position: relative;
}
.board-thumb.selected {
  border: 3px solid var(--accent);
  box-shadow: 0 4px 16px #ffd60099;
}
.board-mini {
  margin: 0.3rem 0 0.4rem 0;
  display: grid;
  background: var(--main-bg);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.board-mini .peg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--peg);
  margin: 1px;
  display: inline-block;
}
.board-mini .peg-empty-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--empty);
  border: 1px dashed #ffd600;
  margin: 2px;
  display: inline-block;
}
.board-mini .peg-inactive-dot {
  width: 10px;
  height: 10px;
  background: none;
  margin: 1px;
  display: inline-block;
}
.board-thumb-label {
  text-align: center;
  font-size: 0.92rem;
  color: #222;
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-weight: 600;
  letter-spacing: 0.2px;
  word-break: break-word;
}
.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.2rem;
  width: 100%;
  max-width: 420px;
}
.brainvita-board {
  background: var(--board-bg);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 2px 18px #ffd60044;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.1rem;
  min-width: 260px;
  min-height: 260px;
  transition: box-shadow 0.2s;
  position: relative;
}
.board-header-for-screenshot {
  width: 100%;
  text-align: center;
  margin-bottom: 0.7rem;
}
.board-header-for-screenshot h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  color: #222;
  letter-spacing: 1px;
}
.board-header-for-screenshot .timer,
.board-header-for-screenshot .peg-count {
  display: inline-block;
  margin: 0 1.1rem 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  background: #fffde7;
  padding: 0.12rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #ffd600;
}
.board-grid {
  display: grid;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  touch-action: manipulation;
}
.peg-cell {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.peg-marble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe082 60%, #ffd600 90%, #222 100%);
  box-shadow: 0 2px 8px #ffd60099, 0 0 0 2px #2222;
  border: 2px solid #222;
  transition: transform 0.25s cubic-bezier(.45,1.8,.45,1), box-shadow 0.2s;
  cursor: pointer;
  z-index: 2;
}
.peg-marble.selected {
  box-shadow: 0 0 0 4px var(--selected), 0 2px 8px #ffd60099;
  border: 2px solid #222;
  transform: scale(1.12);
}
.peg-empty {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--empty);
  border: 2px dashed #ffd600;
  opacity: 0.7;
  cursor: pointer;
  z-index: 1;
  transition: box-shadow 0.2s;
}
.peg-cell.inactive {
  background: none;
  pointer-events: none;
}
.peg-marble.animating {
  z-index: 10;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.45,1.8,.45,1), box-shadow 0.2s;
}
.game-info {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
  font-weight: 500;
}
.peg-count {
  font-weight: 600;
  font-size: 1.15rem;
  transition: color 0.3s;
}
.peg-count.bold {
  color: #d50000;
  font-size: 1.25rem;
  font-weight: 700;
}
.timer {
  font-family: monospace;
  font-size: 1.1rem;
  background: #fffde7;
  padding: 0.2rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #ffd600;
  box-shadow: 0 1px 3px #ffd60033;
}
.game-controls {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  justify-content: center;
  align-items: center;
}
.btn {
  background: var(--btn-bg);
  color: var(--text);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  box-shadow: 0 1px 4px #ffd60077;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn:hover, .btn:focus {
  background: var(--btn-hover);
  box-shadow: 0 2px 8px #ffd60099;
}
.btn:active {
  background: #fffde7;
}
.congrats {
  font-size: 1.3rem;
  font-weight: 700;
  color: #388e3c;
  margin: 0.7rem 0 0.5rem 0;
  text-align: center;
  letter-spacing: 1px;
}
.howtoplay-section {
  background: #fffde7;
  border-radius: 12px;
  box-shadow: 0 1px 6px #ffd60033;
  padding: 1.2rem 1.2rem 1.5rem 1.2rem;
  margin: 1.2rem 0 0.8rem 0;
  width: 100%;
  max-width: 430px;
  text-align: left;
  font-size: 1.04rem;
  position: relative;
}
.howtoplay-heading {
  margin-top: 0;
  font-size: 1.3rem;
  color: #222;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  text-align: center;
}
.howtoplay-section ul {
  margin: 0.5rem 0 0.7rem 1.2rem;
  padding: 0;
  font-size: 1rem;
}
.thankyou {
  text-align: center;
  font-size: 1.2rem;
  margin: 1.2rem 0 0.5rem 0;
  color: #222;
  font-weight: 500;
  letter-spacing: 0.5px;
}
footer {
  width: 100vw;
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.1rem 0 1.1rem 0;
  margin-top: auto;
  letter-spacing: 1px;
  box-shadow: 0 -2px 12px #ffd60033;
}
@media (max-width: 600px) {
  header { font-size: 1.7rem; margin: 1.2rem 0 0.7rem 0; }
  .brainvita-board { padding: 0.5rem; min-width: 180px; min-height: 180px; }
  .board-thumb { width: 56px; min-width: 56px; min-height: 76px; }
  .board-mini { gap: 0.5px; }
  .peg-cell { width: 24px; height: 24px; }
  .peg-marble { width: 20px; height: 20px; }
  .peg-empty { width: 12px; height: 12px; }
  .howtoplay-section { padding: 0.7rem 0.4rem 1.1rem 0.4rem; }
  .thankyou { font-size: 1rem; }
  .game-info { font-size: 1rem; gap: 1.1rem; }
  .btn { font-size: 0.97rem; padding: 0.4rem 0.7rem; }
  .board-header-for-screenshot h1 { font-size: 1.1rem; }
  }
  /* Social Links Bar in Footer */
/* Your original 300+ lines CSS remains fully intact */

/* Social Links Refinements */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.social-links .icon {
  width: 28px;
  height: 28px;
  transition: filter 0.25s ease-in-out, transform 0.25s ease-in-out;
}

/* Hover & Focus Effects */
.social-links a:hover .icon,
.social-links a:focus .icon {
  filter: drop-shadow(0 0 6px rgba(255, 214, 0, 0.9)) brightness(1.3);
  transform: scale(1.2);
}

/* Blog Section Styling */
.blog-section {
  background: var(--main-bg);
  padding: 1.2rem;
  margin: 1.2rem 0;
  text-align: center;
  box-shadow: 0 2px 12px #ffd60033;
}
