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

html, body {
  max-width: 100vw;
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

.top-bar {
  background: linear-gradient(to right, #111, #222);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar .logo {
  height: 36px;
}

.fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1100;
}

.fullscreen-btn:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.fullscreen-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.game-container {
  display: flex;
  justify-content: center;
  padding: 20px;
  width: 100%;
  overflow: visible;
  height: auto;
}

.frame-wrapper {
  width: 414px;
  max-width: 100%;
  padding: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  flex: 1;
}

.game-frame {
  width: 100%;
  height: 675px;
  border: none;
  border-radius: 16px;
  overflow: auto;
  background-color: #000;
  display: block;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

.bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #111;
  padding: 24px 16px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.bottom-bar img {
  height: 32px;
  margin-bottom: 10px;
}

.copyright {
  font-size: 14px;
  color: #999;
}

::-webkit-scrollbar {
  display: none;
}
