@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

body {
  margin: 0;
  font-family: 'Caveat', cursive;
  text-align: center;
  background: #f9fafb;
  color: #222;
  font-size: 1.2rem;
  line-height: 1.6;
}

header {
  padding: 24px 0 16px;
  background: white;
  color: #2c6a90;
  box-shadow: 0 2px 8px rgba(44,106,144,0.07);
  margin-bottom: 12px;
}

h1,h2 {
  color: #2c6b91;
  font-style: italic;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

nav {
  background: #eaf3fa;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #d1e3f3;
  box-shadow: 0 2px 8px rgba(44,106,144,0.05);
  position: relative;
}

nav a {
  display: inline-block;
  padding: 16px 28px;
  text-decoration: none;
  color: #2c6b91;
  font-weight: 600;
  font-size: 1.1rem;
  border-right: 1px solid #d1e3f3;
  transition: background 0.2s, color 0.2s;
}

nav a:last-child { border-right: none; }
nav a:hover { background: #2c6b91; color: #fff; }

#user-box {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 14px;
}

button {
  margin: 16px;
  padding: 12px 28px;
  font-size: 1.1rem;
  background: #2c6b91;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(44,106,144,0.08);
}

button:hover { background: #1e4d68; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.game-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.game-card a {
  display: block;
  margin-top: 8px;
  color: #2c6b91;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.game-card a:hover { color: #1e4d68; }

.game-thumb {
  width: 100%;
  height: 140px; /* restored small embed size */
  background: #eaf3fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.large-card { width: 300px; margin: 0 auto; }

.request-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: #eaf3fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,106,144,0.08);
  text-align: center;
}

.request-form h2 { color: #2c6b91; margin-bottom: 0.5em; }
.request-form form { display: flex; flex-direction: column; gap: 1em; }
.request-form textarea {
  resize: vertical;
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #2c6b91;
  background: #fff;
  font-size: 1em;
  font-family: inherit;
}
.request-form button { margin-top: 0.5em; }
#request-success, #bug-success { display: none; color: #388e3c; font-weight: bold; margin-top: 1em; }

@media (max-width: 600px) {
  nav a { padding: 12px 16px; font-size: 1rem; }
  button { padding: 10px 20px; font-size: 1rem; }
  .games-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
}
iframe {
  width: 1000px !important;
  height: 600px !important;
  max-width: 98%;
  border: 2px solid #2c6b91;
  border-radius: 12px;
  display: block;
  margin: 32px auto;
  box-shadow: 0 4px 24px rgba(44, 106, 144, 0.10);
}