/* ==========================================================================
   PWA Wrapper Stylesheet (style.css)
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b0f19;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

#wrapper-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 全画面 iframe */
#gas-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
  background-color: #ffffff;
}

/* Setup Screen Card */
.setup-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 420px;
  width: 90%;
  margin: auto;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.app-badge-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: 0.85rem;
  font-family: monospace;
  outline: none;
  margin-bottom: 16px;
}

.text-input:focus {
  border-color: #4f46e5;
}

.primary-btn {
  width: 100%;
  padding: 14px;
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e2e8f0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Floating Settings Button */
.floating-settings-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.floating-settings-btn:hover {
  opacity: 1;
}
