:root {
  --bg-cream: #fdf7e7;
  --bg-warm: #ffdca9;
  --bg-mint: #8dd7bf;
  --ink: #1f2b24;
  --accent-red: #ff5b3d;
  --accent-green: #0f8a68;
  --accent-deep: #134e4a;
  --card: rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.45), transparent 45%),
    radial-gradient(circle at 92% 30%, rgba(255, 228, 167, 0.5), transparent 38%),
    linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 46%, var(--bg-mint) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(253, 247, 231, 0.88);
  border-bottom: 1px solid rgba(20, 50, 35, 0.1);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.header-link:hover {
  border-color: rgba(23, 70, 55, 0.3);
  background: rgba(255, 255, 255, 0.65);
}

.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px 36px;
  color: #f7fff9;
  background:
    linear-gradient(125deg, rgba(11, 65, 57, 0.95), rgba(8, 125, 90, 0.9) 45%, rgba(255, 117, 60, 0.9));
  box-shadow: 0 28px 44px rgba(14, 58, 46, 0.28);
}

.hero::after,
.hero::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.12);
  right: -110px;
  top: -120px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: rgba(255, 174, 72, 0.18);
  left: -90px;
  bottom: -120px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.95;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0;
  max-width: 700px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 13px;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #ff5b3d, #ff7a2f);
  box-shadow: 0 12px 20px rgba(162, 46, 16, 0.25);
}

.btn-secondary {
  color: #eafff8;
  background: rgba(12, 90, 69, 0.55);
  border: 1px solid rgba(232, 255, 247, 0.3);
}

.btn-outline {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(19, 78, 74, 0.3);
}

.section {
  margin-top: 26px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(17, 59, 46, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 14px rgba(16, 55, 42, 0.09);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(23, 70, 55, 0.12);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(120deg, #e53f27, #ff742f);
  margin-bottom: 8px;
}

.cta-box {
  margin-top: 24px;
  border-radius: 20px;
  padding: 18px;
  background: rgba(15, 88, 68, 0.88);
  color: #e9fff7;
}

.cta-box h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.cta-box p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.creator-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 70, 55, 0.14);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 14px rgba(16, 55, 42, 0.09);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.panel h3 {
  margin: 18px 0 10px;
  font-size: 17px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #205443;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(33, 86, 68, 0.3);
  border-radius: 11px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: inherit;
  color: #17372d;
  background: #fcfffd;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.hint {
  margin: 0;
  font-size: 12px;
  color: #3e6356;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.status {
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(248, 255, 250, 0.9);
  border: 1px solid rgba(25, 101, 74, 0.24);
  font-size: 13px;
  line-height: 1.6;
}

.status.error {
  background: rgba(255, 241, 236, 0.95);
  border-color: rgba(168, 50, 18, 0.4);
}

.status.success {
  background: rgba(235, 255, 242, 0.95);
  border-color: rgba(21, 101, 68, 0.4);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(18, 63, 49, 0.18);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
  background: rgba(255, 255, 255, 0.92);
}

th,
td {
  border-bottom: 1px solid rgba(25, 67, 53, 0.15);
  padding: 8px;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #e8f9f0;
  color: #1d4f3f;
  font-size: 12px;
  text-align: left;
}

td input,
td textarea,
td select {
  width: 100%;
  border: 1px solid rgba(23, 69, 56, 0.25);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fefffe;
}

td textarea {
  min-height: 40px;
  resize: vertical;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(19, 78, 74, 0.12);
  color: #175546;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.footer-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #2f5f4d;
}

.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.75s ease forwards;
}

.fade-up.delay-1 {
  animation-delay: 0.08s;
}

.fade-up.delay-2 {
  animation-delay: 0.16s;
}

.fade-up.delay-3 {
  animation-delay: 0.24s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 14px 14px 36px;
  }

  .hero {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 10px 14px;
  }

  .brand {
    font-size: 30px;
  }

  .highlight-content {
    flex-direction: column;
    text-align: center;
  }

  .solo-section {
    flex-direction: column;
    text-align: center;
  }

  .badge-row {
    flex-direction: column;
    align-items: center;
  }

  .header-links {
    gap: 6px;
  }

  .header-link {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* Language toggle */
.lang-toggle {
  background: rgba(19, 78, 74, 0.12);
  color: var(--accent-deep);
  font-family: inherit;
  cursor: pointer;
}

.lang-toggle:hover {
  background: rgba(19, 78, 74, 0.22);
}

/* Feature highlight cards */
.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.feature-highlight {
  background: linear-gradient(135deg, rgba(255, 91, 61, 0.12), rgba(255, 122, 47, 0.08));
  border-color: rgba(255, 91, 61, 0.25);
}

.feature-highlight-alt {
  background: linear-gradient(135deg, rgba(15, 138, 104, 0.12), rgba(141, 215, 191, 0.15));
  border-color: rgba(15, 138, 104, 0.25);
}

/* Highlight section (buzzer-only) */
.highlight-section {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(15, 88, 68, 0.08), rgba(141, 215, 191, 0.15));
  border: 1px solid rgba(15, 138, 104, 0.2);
}

.highlight-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.highlight-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.highlight-text h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.highlight-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Solo section */
.solo-section {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border: 1px solid rgba(17, 59, 46, 0.12);
  border-radius: 18px;
  padding: 24px;
}

.solo-text {
  flex: 1;
}

.solo-text h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.solo-text p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
}

.solo-preview {
  flex-shrink: 0;
}

.sound-btn {
  font-size: 18px;
  padding: 16px 24px;
}

/* Download section */
.download-section {
  text-align: center;
  padding: 32px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(253, 247, 231, 0.9));
  border: 1px solid rgba(17, 59, 46, 0.12);
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn-ios {
  color: #fff;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  box-shadow: 0 8px 16px rgba(26, 26, 46, 0.3);
}

.store-btn-android {
  color: #fff;
  background: linear-gradient(135deg, #0f8a68, #0d7a5f);
  box-shadow: 0 8px 16px rgba(15, 138, 104, 0.3);
}

.store-icon {
  font-size: 24px;
}

/* Question card editor */
.question-cards {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 63, 49, 0.18);
  border-radius: 14px;
  padding: 14px;
  transition: box-shadow 0.15s ease;
}

.q-card:hover {
  box-shadow: 0 4px 12px rgba(16, 55, 42, 0.1);
}

.q-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.q-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(120deg, #0f8a68, #0d7a5f);
  flex-shrink: 0;
}

.q-card-header select {
  border: 1px solid rgba(23, 69, 56, 0.25);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fefffe;
  color: #17372d;
}

.q-card-delete {
  margin-left: auto;
}

.q-card-question {
  margin-bottom: 10px;
}

.q-card-question textarea {
  width: 100%;
  border: 1px solid rgba(23, 69, 56, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fefffe;
  min-height: 52px;
  resize: vertical;
  line-height: 1.5;
}

.q-card-row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.q-card-row-2 {
  grid-template-columns: 1fr 1fr;
}

.q-card-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

.q-card-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #3e6356;
}

.q-card-field input,
.q-card-field textarea {
  width: 100%;
  border: 1px solid rgba(23, 69, 56, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
  background: #fefffe;
}

.q-card-field textarea {
  min-height: 36px;
  resize: vertical;
}

.q-card-advanced-toggle {
  appearance: none;
  border: none;
  background: none;
  color: #3e6356;
  font-size: 12px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.q-card-advanced-toggle:hover {
  color: #0f8a68;
}

.q-card-advanced {
  display: none;
  margin-top: 8px;
}

.q-card-advanced.open {
  display: block;
}

.q-card-row-3 {
  grid-template-columns: 2fr 2fr 1fr;
}

.q-card-empty {
  text-align: center;
  padding: 24px;
  color: #2f5f4d;
  font-size: 14px;
}

@media (max-width: 720px) {
  .q-card-row-4 {
    grid-template-columns: 1fr 1fr;
  }

  .q-card-row-3 {
    grid-template-columns: 1fr;
  }

  .q-card-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Checkbox field for creator */
.field-checkbox {
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #205443;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-green);
  cursor: pointer;
}

/* ============================
   Board page styles
   ============================ */

.board-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.board-card {
  background: var(--card);
  border: 1px solid rgba(17, 59, 46, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 14px rgba(16, 55, 42, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.board-card:hover {
  box-shadow: 0 12px 24px rgba(16, 55, 42, 0.14);
  transform: translateY(-2px);
}

.board-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.board-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #3e6356;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3e6356;
}

.board-card-author {
  font-weight: 700;
  color: var(--accent-deep);
}

.board-card-date {
  color: #5a8a78;
}

.board-card-types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.board-card-type-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(19, 78, 74, 0.1);
  color: #175546;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.board-card-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.board-card-code {
  font-family: "Bebas Neue", monospace;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  background: rgba(19, 78, 74, 0.08);
  padding: 6px 12px;
  border-radius: 10px;
  flex-shrink: 0;
}

.board-card-copy-btn {
  appearance: none;
  border: 1px solid rgba(19, 78, 74, 0.3);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.board-card-copy-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.board-card-copy-btn.copied {
  background: rgba(235, 255, 242, 0.95);
  border-color: rgba(21, 101, 68, 0.4);
  color: var(--accent-green);
}

.board-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.board-filter-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: 2px solid rgba(19, 78, 74, 0.25);
  background: transparent;
  color: var(--ink);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.board-filter-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.board-filter-btn.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}
.board-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.board-card-lang-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.board-card-lang-badge.lang-ja {
  background: #fff0f0;
  color: #c0392b;
}
.board-card-lang-badge.lang-en {
  background: #eef4ff;
  color: #2563eb;
}

.board-status {
  text-align: center;
  padding: 40px 20px;
  color: #3e6356;
  font-size: 16px;
  line-height: 1.7;
}

.board-load-more {
  margin-top: 20px;
  text-align: center;
}

.board-cta-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.board-cta-card {
  background: var(--card);
  border: 1px solid rgba(17, 59, 46, 0.12);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 14px rgba(16, 55, 42, 0.09);
}

.board-cta-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.board-cta-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #3e6356;
}

.board-card-count {
  font-weight: 800;
  color: var(--accent-green);
}

/* Community section on LP */
.community-section {
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 91, 61, 0.06), rgba(255, 220, 169, 0.2));
  border: 1px solid rgba(255, 91, 61, 0.15);
}

.community-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.community-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.community-text h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.community-text p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .board-grid {
    grid-template-columns: 1fr;
  }

  .board-cta-row {
    grid-template-columns: 1fr;
  }

  .community-content {
    flex-direction: column;
    text-align: center;
  }
}

