/* Base */
{
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(
    to bottom,
    #0FE6E6,
    #2EC5ED,
    #338AE8
  );
}

/* Container */
.container {
  width: 90%;
  max-width: 900px;
}

/* Text */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
}
p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5em;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  padding: 15px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* User Info (Cloudflare Access) */
.user {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 25px;
}

/* Chat UI */
.chat {
  margin-bottom: 20px;
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
}
.msg {
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  max-width: 80%;
  font-size: 0.95rem;
}
.msg.user {
  background: rgba(255, 255, 255, 0.35);
  margin-left: auto;
}
.msg.ai {
  background: rgba(0, 0, 0, 0.25);
  background-color: #191970;
}

/* Input */
textarea {
  width: 100%;
  height: 90px;
  border-radius: 14px;
  border: none;
  padding: 14px;
  font-size: 1rem;
  resize: none;
  outline: none;
}

/* Small Link List (Portal用) */
.links a {
  display: block;
  margin: 12px 0;
}
