/* Simple layout for PS4 browser */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #1a1a1a;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  min-width: 100vw;
  position: relative;
}

/* Header */
.header {
  z-index: 2;
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  justify-content: left;
  pointer-events: none;
}

.header-title {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  padding: 8px 20px;
  pointer-events: auto;
  border: 2px solid #e6a020;
}

/* PS4 FW - centered at top */
#PS4FW {
  z-index: 2;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

/* Center: Cyprus button + label */
.center-btn-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.jailbreak-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.jailbreak-btn:hover {
  opacity: 0.9;
}

.jailbreak-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.jailbreak-btn-img {
  display: block;
  max-width: 180px;
  max-height: 180px;
  width: auto;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  /* blend white background with dark page so logo has no white box */
  mix-blend-mode: multiply;
  background: transparent;
}

.jailbreak-btn-svg {
  display: block;
  max-width: 180px;
  max-height: 180px;
  width: 160px;
  height: 160px;
  color: #e6a020;
}

.jailbreak-label {
  color: #e6a020;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

/* Loader */
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-circle {
  width: 44px;
  height: 44px;
  border: 4px solid #333;
  border-top-color: #e6a020;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Console */
#console {
  color: #0f0;
  background: rgba(0,0,0,0.6);
  border-radius: 8px;
  width: 94%;
  max-height: 22%;
  margin: 0 auto;
  border: 1px solid #333;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.35;
  display: none;
  position: absolute;
  bottom: 12px;
  left: 3%;
  right: 3%;
  overflow-y: auto;
  z-index: 5;
}

#console.active {
  display: block;
}

/* Menu: 5.05 + Cache */
.floating-menu {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.menu-btn {
  background: rgba(0,0,0,0.5);
  color: #e6a020;
  border: 2px solid #e6a020;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.menu-btn:hover {
  background: #e6a020;
  color: #1a1a1a;
}

.menu-btn-505 {
  font-size: 12px;
  max-width: 220px;
  text-align: center;
  line-height: 1.2;
}
