:root {
  --bg: #f5f6f8;
  --fg: #1a1a2e;
  --accent: #3a6ff0;
  --border: #e0e2e8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

.landing { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.site-main h1 { font-size: 22px; margin-bottom: 8px; }
.hint { color: #666; margin-bottom: 24px; font-size: 14px; }

.input-row { display: flex; gap: 8px; width: 100%; max-width: 320px; }

#code-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
}

#submit-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

#submit-btn:disabled { background: #b7c3e0; cursor: not-allowed; }

.error { margin-top: 16px; color: #d33; font-size: 14px; }
.loading { margin-top: 16px; color: #666; font-size: 14px; }

.site-footer { padding: 16px; text-align: center; color: #999; font-size: 12px; }

.frame-container {
  position: fixed;
  inset: 0;
  background: #000;
}

.content-frame {
  width: 100%;
  height: 100%;
  border: none;
}
