
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #292929;
  color: #222;
  line-height: 1.6;
}

header {
  background: #fff;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  margin: 0;
  padding: 0.5rem 0;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 5rem;
  }

  header h1 {
    font-size: 1.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .btn-group {
    display: flex;
    gap: 10px;
  }
}

nav a {
  color: #66ccff;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.95rem;
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  background: #292929;
  color: #fff;
}

h1, h2 {
  margin-bottom: 1rem;
}

.intro img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

.features {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.feature {
  background: #f1f5f9;
  padding: 1rem;
  border-left: 4px solid #3b82f6;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  margin: 0 8px;
  border: 2px solid red;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  color: red;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  background-color: red;
  color: #fff;
}

.btn-primary {
  background-color: red;
  color: #fff;
}

.btn-primary:hover {
  background-color: #e80000;
  border-color: #e80000;
}

footer {
  background: #252127;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.footer-links a {
  color: #66ccff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .footer-links a {
    margin: 0 0.5rem;
  }
}

main section {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

main section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #d48623;
  font-weight: 600;
}

main section h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}

main section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.features {
  background: #e0f2fe;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.feature {
  background: #fff;
  flex: 1 1 45%;
  padding: 1.5rem 1.8rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #0369a1;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.feature p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .features {
    flex-direction: column;
    padding: 1rem;
  }

  .feature {
    flex: 1 1 100%;
  }
}

.how-to-play {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}

.how-to-play ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.how-to-play li {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #065f46;
}

.why-choose {
  background: #fdf2f8;
  border-left: 4px solid #db2777;
}

.why-choose ul {
  list-style: none;
  padding-left: 0;
}

.why-choose li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  font-weight: 500;
  color: #9d174d;
  position: relative;
}

.why-choose li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #db2777;
  font-weight: bold;
}

@media (max-width: 768px) {
  main section {
    padding: 1rem;
  }
}

.highlight {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.highlight h2 {
  font-size: 1.4rem;
  color: #166534;
  margin-bottom: 1rem;
  font-weight: 600;
}

.highlight p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .highlight {
    padding: 1rem;
  }
}

.login-section,
.register-section {
  background: #f1f5f9;
  padding: 1.8rem;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.login-section h2,
.register-section h2 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.login-section p,
.register-section p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .login-section,
  .register-section {
    padding: 1.2rem;
  }

  .login-section h2,
  .register-section h2 {
    font-size: 1.4rem;
  }

  .login-section p,
  .register-section p {
    font-size: 0.95rem;
  }
}

.internal-nav {
  background: #fef3c7;
  padding: 0.75rem 1rem;
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
  margin: 1rem auto;
  text-align: center;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.internal-nav a {
  color: #ca8a04;
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.internal-nav a:hover,
.internal-nav a:focus {
  color: #5e51d6;
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

figure {
  margin: 1.5rem 0;
  padding: 0;
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: transparent;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-bottom: none; 
  background-color: transparent; 
}

figure img.screenshot-img {
  max-width: 300px;
}

figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background-color: transparent;
  font-style: italic;
}

p.links {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

p.links a {
  color: var(--secondary); 
  text-decoration: none;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
}

p.links a:hover,
p.links a:focus {
  color: var(--text); 
  text-decoration: underline;
}

