.module {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px 24px 26px;
  box-shadow: 0 10px 24px rgba(37, 48, 85, 0.12);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.module-header h2 {
  font-size: 22px;
}

.module-header p {
  color: #5a6aa0;
}

.module-body {
  display: grid;
  gap: 18px;
}

.module-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.submit-hint {
  color: #6b7bb5;
  font-size: 14px;
}

.task-zone h3 {
  font-size: 18px;
  color: #2c3c70;
}

.task-list {
  display: grid;
  gap: 12px;
  min-height: 120px;
}

.week-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.week-day {
  background: #f6f8ff;
  border-radius: 18px;
  padding: 12px;
  border: 2px dashed #dde3ff;
  min-height: 180px;
}

.week-title {
  font-weight: 600;
  color: #2c3c70;
  margin-bottom: 10px;
}

.day-reward {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff3c4;
  color: #7a5a00;
  font-size: 13px;
  display: none;
}

.day-reward.show {
  display: block;
}

.task-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f7ff;
  border: 2px solid #e0e7ff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  cursor: grab;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: none;
  user-select: none;
}

.task-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-icon {
  font-size: 22px;
  line-height: 1;
}

.drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 9999;
  transform: rotate(-2deg);
  box-shadow: 0 10px 22px rgba(37, 48, 85, 0.25);
}

.task-card:active {
  cursor: grabbing;
}

.task-title {
  font-size: 16px;
  font-weight: 600;
}

.task-meta {
  font-size: 13px;
  color: #6a7cc0;
}

.task-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.score-btn {
  border: none;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
  background: #e9edff;
  color: #2f56ff;
  cursor: pointer;
}

.score-btn.active {
  background: #2f56ff;
  color: #fff;
}

.drop-zone {
  padding: 6px;
  border-radius: 18px;
  background: #f9fbff;
  border: 2px dashed transparent;
}

.drop-zone.highlight {
  border-color: #ffd06b;
  background: #fff8e6;
}

.hint-card {
  background: #fff4d9;
  border-radius: 18px;
  padding: 16px;
  color: #6d5112;
}

.wish-body {
  display: grid;
  gap: 24px;
}

.gacha-box {
  display: grid;
  gap: 16px;
}

.gacha-machine {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ff4f7a;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.5);
}

.gacha-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.gacha-ball {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffd36b;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.gacha-controls {
  display: grid;
  gap: 10px;
}

.gacha-controls input {
  border: 2px solid #e2e8ff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 15px;
}

.gacha-note {
  color: #8a97c8;
}

.wish-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.wish-list li {
  background: #f4f7ff;
  padding: 10px 14px;
  border-radius: 14px;
}

.mc-wish {
  background: #d3e6a6;
  border: 3px solid #2b3f1f;
  box-shadow: 0 8px 0 #7aa35a;
}

.mc-wish-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.mc-column {
  display: grid;
  gap: 16px;
}

.mc-panel {
  background: #c6d987;
  border: 3px solid #2b3f1f;
  padding: 14px;
  box-shadow: inset 0 -4px 0 #7aa35a;
}

.mc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mc-panel-header h3 {
  margin: 0;
}

.mc-panel h3 {
  margin-bottom: 12px;
  color: #20321b;
}

.mc-item-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.mc-item-card {
  background: #e2f0c7;
  border: 3px solid #2b3f1f;
  padding: 10px;
  text-align: center;
  box-shadow: inset 0 -3px 0 #a2c27b;
}

.mc-item-img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.mc-item-title {
  font-weight: 700;
  color: #1e2f1a;
  margin-top: 6px;
}

.mc-item-points {
  font-size: 12px;
  color: #3b5a2c;
  margin-bottom: 6px;
}

.mc-mini-button {
  border: 3px solid #1f2a16;
  background: #7fb069;
  color: #132010;
  padding: 6px 8px;
  font-weight: 700;
  cursor: pointer;
}

.mc-mini-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mc-pool-list {
  display: grid;
  gap: 10px;
}

.mc-pool-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #e2f0c7;
  border: 3px solid #2b3f1f;
  padding: 8px;
}

.mc-pool-info {
  display: grid;
  gap: 2px;
}

.mc-empty {
  color: #3b5a2c;
  font-size: 14px;
}

.mc-video-panel {
  width: 600px;
  text-align: center;
}

.mc-video {
  width: 100%;
  max-width: 520px;
  min-height: 300px;
  border: 4px solid #2b3f1f;
  background: #000;
}

.mc-note {
  margin-top: 8px;
  color: #2a3d1f;
}

.mc-button {
  border: 4px solid #1f2a16;
  background: #7fb069;
  color: #132010;
  font-size: 18px;
  font-weight: 800;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 #5a8e4a;
}

.mc-button:active {
  transform: translateY(2px);
}

.mc-button.secondary {
  background: #e2f0c7;
}

.mc-result {
  min-height: 140px;
  display: grid;
  place-items: center;
  gap: 6px;
  background: #e2f0c7;
  border: 3px dashed #2b3f1f;
  padding: 10px;
}

.mc-result.empty {
  color: #3b5a2c;
}

.complete-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.complete-left h3,
.complete-right h3 {
  font-size: 18px;
  color: #2c3c70;
  margin-bottom: 12px;
}

.complete-days-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.complete-day-block {
  background: #f6f8ff;
  border-radius: 16px;
  padding: 12px;
  border: 2px solid #e0e7ff;
}

.complete-day-title {
  font-weight: 600;
  color: #2c3c70;
  margin-bottom: 8px;
}

.complete-day-tasks {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  color: #4a5a90;
}

.complete-day-tasks li {
  padding: 4px 0;
}

.complete-day-reward {
  font-size: 12px;
  color: #7a5a00;
  background: #fff3c4;
  padding: 6px 8px;
  border-radius: 10px;
  display: none;
}

.complete-day-reward.show {
  display: block;
}

.complete-today-label {
  color: #5a6aa0;
  margin-bottom: 12px;
}

.complete-today-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.complete-task-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f7ff;
  border: 2px solid #e0e7ff;
}

.complete-task-card .task-actions {
  margin-top: 10px;
}

.complete-points-wrap {
  margin-bottom: 12px;
}

.complete-points-wrap .score-value {
  font-size: 22px;
  font-weight: 700;
  color: #2f56ff;
}

.complete-incentive {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff3c4;
  color: #5c4a00;
  font-weight: 600;
}

@media (min-width: 860px) {
  .module-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .complete-layout {
    grid-template-columns: 1fr 1fr;
  }
  .mc-wish-layout {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
  .wish-body {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}
