/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f5f5;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.site-header,
.site-footer {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
  margin: 1.5rem auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #111;
}

.site-title {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Status card */
.status-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.04);
}

.status-card h1 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.answer {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none; /* allow normal case for sentences */
  margin-bottom: 0.75rem;
}

.answer-no {
  color: #e53935;
}

.days-line {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.days-line span {
  font-weight: 600;
}

.subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.2rem;
}

/* Stats */
.stats {
  margin-bottom: 1.5rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  gap: 0.75rem;
}

.stat-label {
  color: #555;
  flex: 1;
}

.stat-value {
  font-weight: 600;
  white-space: nowrap;
}

.stat-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.6rem;
}

/* Buttons row */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.monster-button,
.replyall-button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #111;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #111;
  background: #fafafa;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background-color 0.08s ease;
  cursor: pointer;
}

.monster-button:hover,
.replyall-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

/* Subscribe section */
.subscribe-section {
  border-top: 1px solid #eee;
  padding-top: 1.4rem;
}

.subscribe-section h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.subscribe-text {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.subscribe-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-size: 0.85rem;
}

.subscribe-button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fafafa;
  font-size: 0.85rem;
  cursor: pointer;
}

.subscribe-button:hover {
  background: #ffffff;
}

.subscribe-note {
  font-size: 0.8rem;
  color: #888;
}

/* Right side panel */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-section,
.thought-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.video-section h2,
.thought-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

/* Portrait video wrapper (Sora) */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 260px;      /* mobile size */
  margin: 0 auto;
  aspect-ratio: 9 / 16;  /* portrait phone shape */
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Thought section */
.thought-section p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.75rem;
  color: #777;
  line-height: 1.5;
}

/* Generic popup modal */
.monster-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
}

.monster-modal {
  background: #ffffff;
  border-radius: 18px;
  max-width: 360px;
  width: 100%;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.monster-modal h2 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.monster-modal p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.monster-modal-close {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fafafa;
  font-size: 0.85rem;
  cursor: pointer;
}

.monster-modal-close:hover {
  background: #ffffff;
}

/* Responsive behavior */
@media (min-width: 768px) {
  .main {
    flex-direction: row;
    align-items: stretch;
  }

  .status-card {
    flex: 1.1;
  }

  .side-panel {
    flex: 0.9;
  }

  .status-card h1 {
    font-size: 1.9rem;
  }

  .answer {
    font-size: 3.4rem;
  }

  .video-wrapper {
    max-width: 320px; /* slightly bigger on desktop */
  }
}

@media (max-width: 480px) {
  .page {
    padding: 1.2rem;
  }

  .status-card {
    padding: 1.5rem 1.1rem;
  }

  .status-card h1 {
    font-size: 1.4rem;
  }

  .answer {
    font-size: 3.2rem;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-button {
    width: 100%;
    text-align: center;
  }
}
