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

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: #08080f;
  min-height: 100vh;
  color: #fff;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 60px;
}

header {
  text-align: center;
  padding: 40px 0 30px;
}

.icon {
  font-size: 60px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 12px 0 8px;
  color: #fff;
}

.subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #00d4ff;
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.06);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0055ff, #00d4ff);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

.hidden {
  display: none !important;
}

.result {
  margin-top: 30px;
}

.loading {
  text-align: center;
  padding: 60px 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 212, 255, 0.15);
  border-top-color: #00d4ff;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.loading p {
  color: #666;
  line-height: 1.8;
  font-size: 0.95rem;
}

.result-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.countdown-box {
  background: rgba(255, 34, 68, 0.07);
  border: 2px solid rgba(255, 34, 68, 0.45);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s;
}

.countdown-label {
  font-size: 0.9rem;
  color: #ff8888;
  margin-bottom: 12px;
}

.days-number {
  font-size: 5rem;
  font-weight: 900;
  color: #ff2244;
  text-shadow: 0 0 40px rgba(255, 34, 68, 0.7);
  line-height: 1;
  transition: all 0.3s;
}

.days-unit {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff6688;
  margin-top: 6px;
}

.extinction-date {
  font-size: 0.85rem;
  color: #666;
  margin-top: 14px;
}

.comment-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid #00d4ff;
  border-radius: 0 12px 12px 0;
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ccc;
  white-space: pre-wrap;
}

.safe-skills {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  padding: 20px;
}

.safe-skills-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #00cc66;
  margin-bottom: 12px;
}

.safe-skills ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.safe-skills ul li {
  font-size: 0.9rem;
  color: #bbb;
  padding-left: 22px;
  position: relative;
}

.safe-skills ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #00cc66;
  font-weight: 700;
}

.share-area {
  text-align: center;
}

.share-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

.tweet-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #000;
  color: #fff;
  border: 1px solid #444;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}

.tweet-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.affiliate-box {
  background: rgba(255, 165, 0, 0.07);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.affiliate-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffaa00;
  margin-bottom: 14px;
}

.affiliate-link {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ff8800, #ffcc00);
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.affiliate-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 170, 0, 0.4);
}

.made-with {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #555;
}

.note-link {
  color: #41c9b4;
  text-decoration: none;
}

.note-link:hover {
  text-decoration: underline;
}

.retry-btn {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #666;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .days-number { font-size: 4rem; }
}
