html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0a0a1a;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
  padding: 8px 20px !important;
  flex-shrink: 0;
}

.logo h1 {
  font-size: 22px !important;
}

.back-btn {
  color: #00f0ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 14px;
  border: 1px solid #00f0ff44;
  border-radius: 20px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.back-btn:hover {
  background: #00f0ff11;
  border-color: #00f0ff;
  box-shadow: 0 0 15px #00f0ff33;
}

.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  background: #0d0d24;
  border-bottom: 1px solid #ffffff0a;
  flex-shrink: 0;
}

.play-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-icon {
  font-size: 26px;
}

.play-info h2 {
  font-size: 17px;
  color: #fff;
  margin: 0;
}

.play-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00f0ff;
  padding: 1px 8px;
  border-radius: 10px;
  background: #00f0ff11;
  border: 1px solid #00f0ff33;
}

.play-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.high-score-display {
  color: #ffdd00;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.play-actions .share-btn {
  background: none;
  border: 1px solid #ffffff0a;
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.play-actions .share-btn:hover {
  border-color: #00f0ff44;
  background: #00f0ff11;
}

.play-main {
  flex: 1;
  display: flex;
  padding: 6px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 0;
}

.game-frame-wrap {
  flex: 1;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  overflow: hidden;
  background: #0d0d24;
}

.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.play-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
  border-top: 1px solid #ffffff0a;
  background: #0d0d24;
  flex-shrink: 0;
}

.play-footer .score-save {
  display: flex;
  gap: 6px;
  align-items: center;
}

.play-footer .score-save input {
  width: 110px;
  padding: 4px 10px;
  background: #0d0d24;
  border: 1px solid #ffffff0a;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.play-footer .score-save input:focus {
  border-color: #00f0ff44;
}

.play-footer .score-save button {
  padding: 4px 14px;
  background: #00ff88;
  color: #0a0a1a;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.play-footer .score-save button:hover {
  box-shadow: 0 0 15px #00ff8866;
}

.ad-container {
  max-width: 728px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  flex-shrink: 0;
}

footer {
  text-align: center;
  padding: 4px;
  color: #444;
  font-size: 11px;
  flex-shrink: 0;
  border-top: none;
  margin-top: 0;
}

@media (max-width: 768px) {
  .play-header {
    padding: 4px 10px;
    gap: 4px;
  }
  .play-info h2 {
    font-size: 14px;
  }
  .play-icon {
    font-size: 22px;
  }
  .play-main {
    padding: 4px;
  }
  .play-footer {
    padding: 4px 10px;
  }
  .play-footer .score-save input {
    width: 80px;
  }
  .play-actions .share-btn {
    font-size: 11px;
    padding: 3px 8px;
  }
  .high-score-display {
    font-size: 11px;
  }
}
