:root {
  --bg: #fff8ec;
  --panel: #ffffff;
  --panel-2: #fffaf1;
  --ink: #232733;
  --muted: #7a7f8c;
  --green: var(--jn-green, #a0e747);
  --green-deep: #4c9a1a;
  --green-dim: #edfad6;
  --coral: #ff6b6b;
  --coral-dim: #ffe4e4;
  --blue: #3ea8ff;
  --blue-dim: #e3f3ff;
  --yellow: #ffb020;
  --yellow-dim: #fff1d6;
  --soil: #b7865a;
  --juniora-h: 38px;
  --shadow: 0 14px 30px rgba(35,39,51,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--jn-font); overflow-x: hidden; }
body { padding-bottom: var(--juniora-h); position: relative; }
button { cursor: pointer; border: none; font-family: var(--jn-font); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ============ BACKGROUND BLOBS ============ */
.blob { position: fixed; border-radius: 50%; filter: blur(60px); opacity: 0.35; z-index: 0; animation: floatBlob 12s ease-in-out infinite; pointer-events: none; }
.blob-1 { width: 300px; height: 300px; background: var(--green); top: -80px; right: -60px; }
.blob-2 { width: 260px; height: 260px; background: var(--blue); top: 40vh; left: -100px; animation-delay: -4s; }
.blob-3 { width: 260px; height: 260px; background: var(--yellow); bottom: -60px; right: -60px; animation-delay: -8s; }
@keyframes floatBlob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(16px,-18px) scale(1.07); } }

/* ============ SHARED ============ */
section { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 60px 22px; }
#garden { padding-top: 54px; }
.section-title { text-align: center; font-size: clamp(21px, 4.6vw, 27px); margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.95; margin-bottom: 28px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.btn-primary {
  display: block; width: 100%;
  background: var(--ink); color: #fff; font-weight: 900; font-size: 14.5px;
  padding: 15px 28px; border-radius: 16px; box-shadow: 0 12px 26px rgba(35,39,51,0.22);
  transition: transform .18s ease, opacity .2s ease;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }
.btn-primary:disabled { opacity: .35; cursor: default; box-shadow: none; }

/* ============ GARDEN ============ */
.garden-card {
  background: var(--panel); border-radius: 28px; padding: 22px 18px 20px;
  box-shadow: var(--shadow); border: 1px solid rgba(35,39,51,0.05);
}
.seed-bank {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--muted); min-height: 34px; margin-bottom: 16px;
}
.seed-bank .seed { font-size: 24px; transition: transform .25s ease, opacity .25s ease; }
.seed-bank .seed.gone { opacity: .15; transform: scale(.7); }

.pots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pot {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--panel-2); border-radius: 20px; padding: 12px 6px 10px; text-align: center;
  border: 2px solid transparent; transition: border-color .2s ease;
}
.pot.has { border-color: rgba(35,39,51,0.1); }
.pot-name { font-size: 13px; font-weight: 900; }
.pot-note { font-size: 10.5px; color: var(--muted); line-height: 1.6; min-height: 34px; }
.pot-plant {
  height: 64px; display: flex; align-items: flex-end; justify-content: center;
  font-size: 30px; transition: transform .35s cubic-bezier(.2,1.6,.4,1);
}
.pot-plant.pop { transform: scale(1.25); }
.pot-soil { width: 70%; height: 10px; border-radius: 0 0 14px 14px; background: var(--soil); opacity: .75; }
.pot-0 .pot-soil { background: #8a8f9c; }
.pot-1 .pot-soil { background: var(--blue); }
.pot-2 .pot-soil { background: var(--green-deep); }
.pot-value { font-size: 13px; font-weight: 900; min-height: 22px; }
.pot-value.up { color: var(--green-deep); }
.pot-value.down { color: #d33b3b; }
.pot-ctrl { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pot-ctrl button {
  width: 30px; height: 30px; border-radius: 10px; background: var(--panel); font-size: 17px; font-weight: 900;
  box-shadow: 0 3px 8px rgba(35,39,51,0.1); transition: transform .12s ease;
}
.pot-ctrl button:active:not(:disabled) { transform: scale(.9); }
.pot-ctrl button:disabled { opacity: .3; cursor: default; }
.pot-ctrl .count { font-size: 14px; font-weight: 900; min-width: 14px; }

.year-track {
  position: relative; height: 28px; border-radius: 99px; background: var(--panel-2);
  margin: 18px 0 12px; overflow: hidden;
}
.year-fill { position: absolute; inset: 0 0 0 auto; width: 0; background: var(--green-dim); transition: width .5s ease; }
.year-text { position: relative; display: block; text-align: center; line-height: 28px; font-size: 12px; font-weight: 800; color: var(--muted); }

.total { text-align: center; font-size: 14px; font-weight: 900; min-height: 26px; margin-bottom: 12px; }

.think { overflow: hidden; max-height: 0; transition: max-height .45s ease; }
.think.show { max-height: 420px; }
.think-inner {
  margin-top: 16px; background: var(--yellow-dim); border-radius: 22px; padding: 18px;
  font-size: 13.5px; line-height: 1.95; color: #5c3d00;
}
.think-inner > strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.history { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.history .chips { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-right: 6px; vertical-align: middle; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.history .chip { background: var(--panel); border-radius: 10px; padding: 2px 8px; font-weight: 800; font-size: 12px; }
.history .chip.up { color: var(--green-deep); }
.history .chip.down { color: #d33b3b; }
.think .btn-primary { margin-top: 14px; }

/* ============ IDEA ============ */
#idea { padding-top: 10px; }
.idea-card {
  background: var(--panel); border-radius: 28px; padding: 30px 22px 24px; box-shadow: var(--shadow);
  border: 1px solid rgba(35,39,51,0.05); text-align: center;
}
.idea-sub { color: var(--muted); font-size: 13.5px; line-height: 1.95; margin-bottom: 22px; }
.idea-sub strong { color: var(--ink); }

.spark { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.spark-slot {
  flex: 1; max-width: 190px; min-height: 104px; border-radius: 20px; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed rgba(35,39,51,0.14); background: var(--panel-2);
  transition: background .25s ease, border-color .25s ease;
}
.spark-slot.filled { border-style: solid; }
#slotSkill.filled { background: var(--blue-dim); border-color: var(--blue); }
#slotWho.filled { background: var(--green-dim); border-color: var(--green); }
.slot-emoji { font-size: 30px; }
.slot-label { font-size: 13px; font-weight: 800; line-height: 1.6; }
.spark-slot.spin .slot-emoji { animation: spinny .12s linear infinite; }
@keyframes spinny { 50% { transform: translateY(-4px) scale(.9); } }
.spark-plus { font-size: 22px; font-weight: 900; color: var(--muted); }

.idea-qs { overflow: hidden; max-height: 0; transition: max-height .45s ease; text-align: right; }
.idea-qs.show { max-height: 520px; }
.idea-qs-title { margin-top: 20px; font-size: 14px; font-weight: 900; text-align: center; }
.q-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.q {
  display: flex; gap: 10px; align-items: flex-start; background: var(--panel-2);
  border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.9; font-weight: 700;
}
.q span:first-child { font-size: 18px; }
.idea-foot { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.9; }

.particle { position: fixed; border-radius: 50%; pointer-events: none; z-index: 60; animation: particleBurst .7s ease-out forwards; }
@keyframes particleBurst {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--px), var(--py)) scale(0.4); opacity: 0; }
}

@media (max-width: 380px) {
  .pots { gap: 6px; }
  .pot-plant { font-size: 26px; height: 56px; }
  .pot-name { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .spark-slot.spin .slot-emoji { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* ============ BRAND BAR ============ */
.juniora-overlay {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  padding: 8px 14px; background: rgba(13, 15, 19, 0.92); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.06); z-index: 1000;
}
.juniora-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #cfd6cf; font-family: var(--jn-font); font-size: 10.5px; font-weight: 600; line-height: 1; opacity: 0.9; }
.juniora-link:hover { opacity: 1; }
.juniora-logo { width: 13px; height: auto; display: block; flex-shrink: 0; }
