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

html, body {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 400px;
  min-height: 100dvh;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hidden {
  display: none !important;
}

/* --- 前日の開花エリア --- */
.bloom-area {
  text-align: center;
  animation: fadeIn 1.5s ease;
}

.bloom-label {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.3rem;
}

.bloom-info {
  font-size: 1rem;
  line-height: 1.6;
}

.flower-link {
  color: #a8d8a8;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 600;
}

.flower-link:hover {
  color: #c8f0c8;
}

.bloom-meaning {
  color: #aaa;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

/* --- 広さ表示 --- */
.size-area {
  text-align: center;
}

.size-main {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c8e6c9;
}

.size-sub {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0.2rem;
}

.plant-breakdown {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.3rem;
}

/* --- 操作エリア --- */
.action-area {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.soil {
  position: relative;
  width: 120px;
  height: 60px;
  cursor: pointer;
  z-index: 1;
}

.soil:focus-visible {
  outline: 2px solid #a8d8a8;
  outline-offset: 4px;
  border-radius: 4px;
}

.soil-mound {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 40px;
  background: #5d4037;
  border-radius: 50% 50% 40% 40%;
  transition: background 0.5s ease;
}

.soil-mound.wet {
  background: #3e2723;
}

.soil.disabled {
  cursor: default;
  pointer-events: none;
}

/* --- ジョウロ --- */
.watering-can {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  z-index: 2;
  animation: canDrop 0.3s ease-out forwards;
}

.drops {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.drop {
  font-size: 0.8rem;
  animation: dropFall 0.5s ease-in forwards;
  opacity: 0;
}

.drop:nth-child(1) { animation-delay: 0s; }
.drop:nth-child(2) { animation-delay: 0.15s; }
.drop:nth-child(3) { animation-delay: 0.3s; }

/* --- 発芽 --- */
.sprout {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: #66bb6a;
  border-radius: 2px;
  z-index: 2;
}

.sprout.grow {
  animation: sproutGrow 0.8s ease-out forwards;
}

.sprout::before,
.sprout::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 6px;
  background: #81c784;
  border-radius: 50%;
}

.sprout::before {
  left: -6px;
  transform: rotate(-30deg);
}

.sprout::after {
  right: -6px;
  transform: rotate(30deg);
}

/* --- メッセージ --- */
.action-message {
  position: absolute;
  bottom: -30px;
  width: 200px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}

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

.today-message {
  font-size: 0.9rem;
  color: #b0b0b0;
  animation: fadeIn 0.8s ease;
}

/* --- フッター --- */
.footer-link {
  margin-top: auto;
  padding-top: 2rem;
}

.footer-link a {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  border-bottom: 1px dotted #555;
}

.footer-link a:hover {
  color: #999;
}

/* --- アニメーション --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes canDrop {
  from { top: -60px; opacity: 0; }
  to { top: -20px; opacity: 1; }
}

@keyframes dropFall {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(30px); }
}

@keyframes sproutGrow {
  0% { height: 0; }
  100% { height: 22px; }
}
