:root{
  --bg-dark:#0a0e1a;
  --grid-line:rgba(0,0,0,0.5);
  --blue1:#0583F2;
  --blue2:#1F82BF;
  --blue3:#2BB9D9;
  --blue4:#30C8D9;
  --radius:12px;
  --font:Inter, Arial, sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
html{ scroll-padding-top: 70px; }
body{
  font-family:var(--font);
  background:var(--bg-dark);
  color:#fff;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  scroll-behavior:smooth;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:40px 40px;
}

.site-header {
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.35);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.header-text {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.top-nav{
  display:flex;
  gap:12px;
}
.top-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  padding:6px 10px;
  border-radius:8px;
}
.top-nav a:hover{ color:var(--blue4); background:rgba(255,255,255,0.03) }

.hero{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100vh;
  padding:2rem;
  margin-top:60px;
}
.hero-inner{
  display:flex;
  gap:2rem;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:1200px;
}

.hero-left{ flex:1; display:flex; align-items:center; justify-content:flex-start; }
.play-btn {
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2BB9D9, #0583F2);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(5, 131, 242, 0.8), 
              0 0 30px rgba(43, 185, 217, 0.6);
  transition: transform 0.25s ease, 
              box-shadow 0.25s ease, 
              background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.play-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #30C8D9, #1F82BF);
  box-shadow: 0 0 20px rgba(48, 200, 217, 0.9), 
              0 0 40px rgba(31, 130, 191, 0.7);
}

.play-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 10px rgba(5, 131, 242, 0.7);
}

.hero-right{ flex:1; text-align:center; padding:0 1rem; }
.logo-square{
  width:140px;
  height:140px;
  margin:0 auto 1rem;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(2,10,30,0.5);
}
.logo-square img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.logo{ font-size:2.4rem; margin-bottom:6px }
.about{ max-width:480px; margin:0 auto; line-height:1.5; opacity:0.95 }

.games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:1rem;
  padding:2rem;
  width:100%;
}

.game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-radius: 16px;
  border: 3px solid transparent;   
  background: linear-gradient(145deg, #0583F2, #2BB9D9);
  color: #fff;
  aspect-ratio: 1/1;
  min-height: 100px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5), 0 0 10px rgba(5,131,242,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}
.game-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.7), 0 0 20px rgba(5,131,242,0.8);
  border: 3px solid #30C8D9;
  background: linear-gradient(145deg, #30C8D9, #1F82BF);
}

.about-section {
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}
.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blue4);
}

.comments-section {
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  width:90%;
  max-width:800px;
  margin:2rem auto;
  color:#fff;
}

#comments-list {
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.comment-item {
  background: rgba(5,131,242,0.1);
  padding:0.8rem 1rem;
  border-radius: var(--radius);
}

.comment-item strong {
  color: var(--blue4);
}

.comments-form {
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}

.comments-form input,
.comments-form textarea {
  padding:0.7rem 1rem;
  border-radius:var(--radius);
  border:1px solid #fff;
  background: rgba(255,255,255,0.05);
  color:#fff;
  font-family:var(--font);
  font-size:1rem;
  resize:none;
}

.comments-form button {
  padding:0.7rem 1rem;
  border:none;
  border-radius:var(--radius);
  background:linear-gradient(180deg,var(--blue2),var(--blue1));
  color:#fff;
  font-size:1rem;
  cursor:pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.comments-form button:hover {
  transform:translateY(-2px);
  filter: brightness(1.05);
}


.site-footer {
  margin-top:2rem;
  padding:1.5rem 2rem;
  background:rgba(0,0,0,0.35);
  text-align:center;
  color:#fff;
}

@media (max-width:880px){
  .hero-inner{ flex-direction:column-reverse; text-align:center; padding-top:1rem }
  .hero-left{ justify-content:center; margin-bottom:1rem }
  .logo-square{ width:110px; height:110px }
  .games-grid{ padding:1rem; gap:.75rem }
  .header-logo img{ width:30px; height:30px }
  .header-text{ font-size:0.9rem }
}

.about-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 1000;
}

.about-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-dark); 
  color: #fff; 
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr; 
  grid-gap: 20px;
  max-width: 900px;
  width: 90%;
}

.block {
  background: rgba(5, 131, 242, 0.1); 
  border-radius: 12px;
  height: 200px;
}

.block-bottom {
  grid-column: 1 / 3; 
  width: 70%; 
  justify-self: center; 
}


.about-section {
  width: 100%;
  margin: 2rem 0;
  padding: 0; 
}

.about-bar {
  position: relative;
  width: 100vw; 
  max-width: 100vw;
  left: 0;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.about-bar span {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}
.about-bar:hover {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.7), 0 0 30px rgba(96, 165, 250, 0.5);
}

.header-text-wrapper {
  display: flex;
  flex-direction: column;
}

.header-text {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.header-slogan {
  color: #aaa; 
  font-size: 0.65rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 2px;
}

.modal-text, .modal-info {
  background: rgba(5,131,242,0.1);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  line-height: 1.5;
}

.modal-text h2 {
  color: var(--blue4);
  margin-bottom: 0.8rem;
}

.modal-info h3 {
  color: var(--blue3);
  margin-bottom: 0.6rem;
}

.modal-info ul {
  list-style: none;
  padding-left: 0;
}

.modal-info li {
  margin: 0.4rem 0;
  opacity: 0.9;
}
