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

body {
  background: #000;
  color: #fff;
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.header {
  text-align: center;
  padding: 6px 0 2px;
  width: 100%;
}
.header h1 {
  font-size: 20px;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-weight: bold;
}
.header .subtitle {
  font-size: 9px;
  color: #888;
  letter-spacing: 2px;
  margin-top: 1px;
}
.header .credit {
  font-size: 8px;
  color: #555;
  margin-top: 1px;
}

.vortex-msg {
  font-size: 9px;
  color: #555;
  font-style: italic;
  letter-spacing: 1px;
  text-align: center;
  margin: 1px 0 4px;
}

.game-container {
  width: 100%;
  max-width: 1400px;
  flex: 1;
  padding: 0 12px;
}

.screen { display: none; }
.screen.active { display: flex; flex-direction: column; }

.btn {
  display: inline-block;
  padding: 8px 20px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  border: 1px solid #666;
  background: #000;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  transition: border-color 0.15s;
}
.btn:hover { border-color: #fff; }
.btn:disabled { opacity: 0.3; cursor: default; }
.btn:disabled:hover { border-color: #666; }
.btn-primary { border-color: #fff; }
.btn-center { display: block; margin: 18px auto 0; }

.footer-chrome {
  width: 100%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  padding: 4px 20px;
  font-size: 9px;
  color: #444;
}
.footer-chrome .recur-stack span { display: block; }
.footer-chrome .recur-stack span:nth-child(2) { margin-left: 10px; font-size: 8px; }
.footer-chrome .recur-stack span:nth-child(3) { margin-left: 20px; font-size: 7px; }
.footer-chrome .level-k { font-size: 12px; letter-spacing: 3px; align-self: flex-end; }

.footer-bottom {
  text-align: center;
  padding: 4px 0 10px;
  font-size: 10px;
  color: #444;
}
.footer-bottom .opus { font-style: italic; margin-bottom: 2px; }

.fullscreen-btn {
  position: fixed;
  top: 6px;
  right: 6px;
  z-index: 100;
  padding: 3px 6px;
  font-size: 9px;
  background: #000;
  border: 1px solid #333;
  color: #666;
  cursor: pointer;
  font-family: inherit;
}
.fullscreen-btn:hover { border-color: #fff; color: #fff; }

/* Panel shared styles */
.panel {
  max-width: 480px;
  margin: 20px auto;
  border: 1px solid #444;
  padding: 28px;
}
.panel h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.panel-wide {
  max-width: 600px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.form-row label { font-size: 11px; color: #aaa; }
.form-row input, .form-row select {
  background: #000;
  border: 1px solid #444;
  color: #fff;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 11px;
  width: 180px;
  text-align: center;
}
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: #fff;
}

.error-msg {
  color: #ff4444;
  font-size: 10px;
  text-align: center;
  margin: 8px 0;
  min-height: 14px;
}

.link-btn {
  background: none;
  border: none;
  color: #888;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.link-btn:hover { color: #fff; }
